Search in sources :

Example 1 with ListBox

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());
}
Also used : ITable(org.eclipse.scout.rt.client.ui.basic.table.ITable) IListBox(org.eclipse.scout.rt.client.ui.form.fields.listbox.IListBox) ListBox(org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_BoxWithListBox.ListBox) AbstractListBox(org.eclipse.scout.rt.client.ui.form.fields.listbox.AbstractListBox) P_ListBox(org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox) Test(org.junit.Test)

Aggregations

ITable (org.eclipse.scout.rt.client.ui.basic.table.ITable)1 ListBox (org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_BoxWithListBox.ListBox)1 P_ListBox (org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox)1 AbstractListBox (org.eclipse.scout.rt.client.ui.form.fields.listbox.AbstractListBox)1 IListBox (org.eclipse.scout.rt.client.ui.form.fields.listbox.IListBox)1 Test (org.junit.Test)1