Search in sources :

Example 6 with IBooleanField

use of org.eclipse.scout.rt.client.ui.form.fields.booleanfield.IBooleanField in project scout.rt by eclipse.

the class AbstractBooleanColumnWithTriStateTest method testPrepareEditInternal.

@Test
public void testPrepareEditInternal() {
    AbstractBooleanColumn column = new AbstractBooleanColumn() {
    };
    column.setMandatory(true);
    ITableRow row = Mockito.mock(ITableRow.class);
    IBooleanField field = (IBooleanField) column.prepareEditInternal(row);
    assertEquals("mandatory property to be progagated to field", column.isMandatory(), field.isMandatory());
}
Also used : IBooleanField(org.eclipse.scout.rt.client.ui.form.fields.booleanfield.IBooleanField) ITableRow(org.eclipse.scout.rt.client.ui.basic.table.ITableRow) Test(org.junit.Test)

Aggregations

IBooleanField (org.eclipse.scout.rt.client.ui.form.fields.booleanfield.IBooleanField)6 ITableRow (org.eclipse.scout.rt.client.ui.basic.table.ITableRow)4 Test (org.junit.Test)4 IClientSession (org.eclipse.scout.rt.client.IClientSession)1 IKeyStroke (org.eclipse.scout.rt.client.ui.action.keystroke.IKeyStroke)1 IMenu (org.eclipse.scout.rt.client.ui.action.menu.IMenu)1 IViewButton (org.eclipse.scout.rt.client.ui.action.view.IViewButton)1 CalendarComponent (org.eclipse.scout.rt.client.ui.basic.calendar.CalendarComponent)1 ICalendar (org.eclipse.scout.rt.client.ui.basic.calendar.ICalendar)1 IFileChooser (org.eclipse.scout.rt.client.ui.basic.filechooser.IFileChooser)1 IPlanner (org.eclipse.scout.rt.client.ui.basic.planner.IPlanner)1 ITable (org.eclipse.scout.rt.client.ui.basic.table.ITable)1 IBooleanColumn (org.eclipse.scout.rt.client.ui.basic.table.columns.IBooleanColumn)1 IAggregateTableControl (org.eclipse.scout.rt.client.ui.basic.table.controls.IAggregateTableControl)1 IFormTableControl (org.eclipse.scout.rt.client.ui.basic.table.controls.IFormTableControl)1 ITableControl (org.eclipse.scout.rt.client.ui.basic.table.controls.ITableControl)1 ITree (org.eclipse.scout.rt.client.ui.basic.tree.ITree)1 IDesktop (org.eclipse.scout.rt.client.ui.desktop.IDesktop)1 IDesktopNotification (org.eclipse.scout.rt.client.ui.desktop.notification.IDesktopNotification)1 IOutline (org.eclipse.scout.rt.client.ui.desktop.outline.IOutline)1