use of org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory in project jo-client-platform by jo-source.
the class AttributeFilterControlImpl method comboBoxOperatorBp.
private static IComboBoxSelectionBluePrint<IOperator> comboBoxOperatorBp() {
final IBluePrintFactory bpf = Toolkit.getBluePrintFactory();
final IObjectStringConverter<IOperator> converter = new IObjectStringConverter<IOperator>() {
@Override
public String convertToString(final IOperator value) {
if (value != null) {
return value.getLabelLong();
} else {
return null;
}
}
@Override
public String getDescription(final IOperator value) {
if (value != null) {
return value.getDescription();
} else {
return null;
}
}
};
return bpf.comboBoxSelection(converter).autoSelectionOn();
}
use of org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory 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.blueprint.factory.IBluePrintFactory in project jo-client-platform by jo-source.
the class SingleBeanFormFactory method create.
@Override
public ISingleBeanForm<Object> create(final Object parentUiReference, final ISingleBeanFormBluePrint<Object> bluePrint) {
final IBluePrintFactory bpf = Toolkit.getBluePrintFactory();
final IComposite composite = Toolkit.getWidgetFactory().create(parentUiReference, bpf.composite());
return new SingleBeanFormImpl<Object>(composite, bluePrint);
}
Aggregations