Search in sources :

Example 1 with Resources

use of org.gwtproject.user.cellview.client.DataGrid.Resources in project gwtproject by treblereel.

the class DataGridTest method testDataGridWidgetStyle.

/**
 * Test if the dataGridWidget style is applied.
 */
public void testDataGridWidgetStyle() {
    Resources res = new DataGrid_ResourcesImpl();
    DataGrid<String> dataGrid = new DataGrid<String>(20, res);
    String dataGridWidgetStyle = res.dataGridStyle().dataGridWidget();
    TableElement tableElem = dataGrid.getElement().cast();
    assertTrue(tableElem.getClassName().contains(dataGridWidgetStyle));
}
Also used : Resources(org.gwtproject.user.cellview.client.DataGrid.Resources) TableElement(org.gwtproject.dom.client.TableElement)

Aggregations

TableElement (org.gwtproject.dom.client.TableElement)1 Resources (org.gwtproject.user.cellview.client.DataGrid.Resources)1