Search in sources :

Example 6 with IBluePrintFactory

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();
}
Also used : IOperator(org.jowidgets.cap.common.api.filter.IOperator) IObjectStringConverter(org.jowidgets.api.convert.IObjectStringConverter) IBluePrintFactory(org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory)

Example 7 with IBluePrintFactory

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

Example 8 with IBluePrintFactory

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

Aggregations

IBluePrintFactory (org.jowidgets.api.widgets.blueprint.factory.IBluePrintFactory)8 IComposite (org.jowidgets.api.widgets.IComposite)3 IObjectStringConverter (org.jowidgets.api.convert.IObjectStringConverter)2 Dimension (org.jowidgets.common.types.Dimension)2 MigLayoutDescriptor (org.jowidgets.common.widgets.layout.MigLayoutDescriptor)2 ITableLayoutBuilder (org.jowidgets.api.layout.tablelayout.ITableLayoutBuilder)1 IFrame (org.jowidgets.api.widgets.IFrame)1 IDialogBluePrint (org.jowidgets.api.widgets.blueprint.IDialogBluePrint)1 IInputContentContainer (org.jowidgets.api.widgets.content.IInputContentContainer)1 IInputContentCreator (org.jowidgets.api.widgets.content.IInputContentCreator)1 IOperator (org.jowidgets.cap.common.api.filter.IOperator)1 IUiConfigurableFilter (org.jowidgets.cap.ui.api.filter.IUiConfigurableFilter)1 IAttributeFilterControl (org.jowidgets.cap.ui.api.widgets.IAttributeFilterControl)1 ICapApiBluePrintFactory (org.jowidgets.cap.ui.api.widgets.ICapApiBluePrintFactory)1