Search in sources :

Example 1 with IFrame

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;
}
Also used : IPerson(org.jowidgets.cap.ui.impl.beans.IPerson) IFrame(org.jowidgets.api.widgets.IFrame)

Example 2 with IFrame

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);
}
Also used : IFrame(org.jowidgets.api.widgets.IFrame) IDialogBluePrint(org.jowidgets.api.widgets.blueprint.IDialogBluePrint)

Example 3 with IFrame

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);
}
Also used : IFrame(org.jowidgets.api.widgets.IFrame) IBluePrintFactory(org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory) IDialogBluePrint(org.jowidgets.api.widgets.blueprint.IDialogBluePrint)

Example 4 with IFrame

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);
}
Also used : IFrame(org.jowidgets.api.widgets.IFrame) IDialogBluePrint(org.jowidgets.api.widgets.blueprint.IDialogBluePrint)

Aggregations

IFrame (org.jowidgets.api.widgets.IFrame)4 IDialogBluePrint (org.jowidgets.api.widgets.blueprint.IDialogBluePrint)3 IBluePrintFactory (org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory)1 IPerson (org.jowidgets.cap.ui.impl.beans.IPerson)1