use of org.jowidgets.api.widgets.IFrame in project jo-client-platform by jo-source.
the class BeanProxyImplTest method createPersonBeanForm.
private IBeanForm<IPerson> createPersonBeanForm(final ValueHolder<IInputControl<String>> nameControl, final ValueHolder<IInputControl<String>> lastNameControl, final ValueHolder<IValidationResultLabel> nameValidationlabel, final ValueHolder<IValidationResultLabel> lastnameValidationlabel) {
final IFrame rootFrame = Toolkit.createRootFrame(BPF.frame());
final IBeanFormBluePrint<IPerson> beanFormBp = CapUiToolkit.bluePrintFactory().beanForm(IPerson.class, personAttributes.getAttributes());
beanFormBp.setEditModeLayouter(createPersonBeanFormLayouter(nameControl, lastNameControl, nameValidationlabel, lastnameValidationlabel));
final IBeanForm<IPerson> result = rootFrame.add(beanFormBp);
rootFrame.setVisible(true);
return result;
}
use of org.jowidgets.api.widgets.IFrame in project jo-client-platform by jo-source.
the class BeanDialogFactory method create.
@Override
public IBeanDialog<Object> create(final Object parentUiReference, final IBeanDialogBluePrint<Object> beanDialogBp) {
final IDialogBluePrint dialogBp = BPF.dialog();
dialogBp.setSetup(beanDialogBp);
final IFrame dialog = Toolkit.getWidgetFactory().create(parentUiReference, dialogBp);
return new BeanDialogImpl<Object>(dialog, beanDialogBp);
}
use of org.jowidgets.api.widgets.IFrame in project jo-client-platform by jo-source.
the class BeanTableSettingsDialogFactory method create.
@Override
public IBeanTableSettingsDialog create(final Object parentUiReference, final IBeanTableSettingsDialogBluePrint setup) {
final IBluePrintFactory bpf = Toolkit.getBluePrintFactory();
final IDialogBluePrint dialogBp = bpf.dialog().setCloseable(false);
final IFrame frame = Toolkit.getWidgetFactory().create(parentUiReference, dialogBp);
return new BeanTableSettingsDialogImpl(frame, setup);
}
use of org.jowidgets.api.widgets.IFrame in project jo-client-platform by jo-source.
the class ExecutionTaskDialogFactory method create.
@Override
public IExecutionTaskDialog create(final Object parentUiReference, final IExecutionTaskDialogBluePrint bluePrint) {
final IDialogBluePrint dialogBp = BPF.dialog();
dialogBp.setSetup(bluePrint);
final IFrame dialog = Toolkit.getWidgetFactory().create(dialogBp);
return new ExecutionTaskDialogImpl(dialog, bluePrint);
}
Aggregations