Search in sources :

Example 1 with P_InnerField

use of org.eclipse.scout.rt.client.extension.ui.form.MoveFormFieldTest.P_GroupBoxWithOneField.P_InnerField in project scout.rt by eclipse.

the class MoveFormFieldTest method testMoveToEmptyBox.

@Test
public void testMoveToEmptyBox() {
    P_GroupBoxWithOneField source = new P_GroupBoxWithOneField();
    P_InnerField fieldToMove = source.getFieldByClass(P_InnerField.class);
    ICompositeField target = new AbstractGroupBox() {
    };
    // hidden because it is empty
    assertFalse(target.isVisible());
    source.moveFieldTo(fieldToMove, target);
    // visible now because the execCalculateVisible() is true now
    assertTrue(target.isVisible());
}
Also used : AbstractGroupBox(org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox) P_InnerField(org.eclipse.scout.rt.client.extension.ui.form.MoveFormFieldTest.P_GroupBoxWithOneField.P_InnerField) ICompositeField(org.eclipse.scout.rt.client.ui.form.fields.ICompositeField) Test(org.junit.Test)

Aggregations

P_InnerField (org.eclipse.scout.rt.client.extension.ui.form.MoveFormFieldTest.P_GroupBoxWithOneField.P_InnerField)1 ICompositeField (org.eclipse.scout.rt.client.ui.form.fields.ICompositeField)1 AbstractGroupBox (org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox)1 Test (org.junit.Test)1