use of org.eclipse.scout.rt.client.ui.basic.cell.ICell in project scout.rt by eclipse.
the class AbstractColumnTest method testInitialDecoration.
@Test
public void testInitialDecoration() {
TestVetoTable table = new TestVetoTable();
table.addRowsByArray(new String[] { "decorate" });
ICell c0 = table.getCell(0, 0);
assertEquals("decorated", c0.getCssClass());
assertEquals(1, table.getValidateTestColumn().getDecorateCount());
}
use of org.eclipse.scout.rt.client.ui.basic.cell.ICell in project scout.rt by eclipse.
the class AbstractColumnTest method testDecoration_SetValue.
@Test
public void testDecoration_SetValue() {
TestVetoTable table = new TestVetoTable();
table.addRowsByArray(new String[] { "b" });
table.getValidateTestColumn().setValue(0, "decorate");
ICell c0 = table.getCell(0, 0);
assertEquals("decorated", c0.getCssClass());
assertEquals(2, table.getValidateTestColumn().getDecorateCount());
}
use of org.eclipse.scout.rt.client.ui.basic.cell.ICell in project scout.rt by eclipse.
the class AbstractColumnTest method testInvalidColumnVisible.
/**
* A displayable invalid column should become visible after validation
*/
@Test
public void testInvalidColumnVisible() {
TestTable testTable = new TestTable();
testTable.getValidateTestColumn().setVisible(false);
testTable.addRowsByArray(new String[] { INVALID });
ICell c0 = testTable.getCell(0, 0);
assertErrorStatus(c0);
assertTrue(testTable.getValidateTestColumn().isVisible());
}
Aggregations