use of org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_BoxWithListBox.ListBox in project scout.rt by eclipse.
the class FormFieldEnabledTest method testListBoxInheritance.
@Test
public void testListBoxInheritance() {
P_BoxWithListBox box = new P_BoxWithListBox();
ListBox listBox = box.getFieldByClass(ListBox.class);
ITable table = listBox.getTable();
box.setEnabled(false);
Assert.assertFalse(box.isEnabled());
Assert.assertFalse(listBox.isEnabledIncludingParents());
Assert.assertTrue(listBox.isEnabled());
Assert.assertFalse(table.isEnabled());
}
Aggregations