Search in sources :

Example 1 with P_ListBox

use of org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox in project scout.rt by eclipse.

the class FormFieldEnabledTest method testListBoxFilterBoxEnabled.

/**
 * Tests that the listbox-filterbox stays enabled even if the parent listbox gets disabled (filter should always be
 * usable).
 */
@Test
public void testListBoxFilterBoxEnabled() {
    ICompositeField field = createFixture();
    P_ListBox listBox = field.getFieldByClass(P_ListBox.class);
    listBox.setEnabled(false);
    Assert.assertFalse(listBox.isEnabled());
    Assert.assertTrue(listBox.getListBoxFilterBox().isEnabled());
    Assert.assertTrue(listBox.getListBoxFilterBox().getActiveStateRadioButtonGroup().getFieldByClass(ActiveButton.class).isEnabled());
}
Also used : P_ListBox(org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox) Test(org.junit.Test)

Aggregations

P_ListBox (org.eclipse.scout.rt.client.ui.form.fields.FormFieldEnabledTest.P_GroupBox.P_TabBox.Tab2.P_ListBox)1 Test (org.junit.Test)1