Search in sources :

Example 1 with IItemModelFactory

use of org.jowidgets.api.model.item.IItemModelFactory in project jo-client-platform by jo-source.

the class BeanTableValidationLabel method createValidationLabelItemModel.

private ICheckedItemModel createValidationLabelItemModel() {
    final IItemModelFactory modelFactory = Toolkit.getModelFactoryProvider().getItemModelFactory();
    final ICheckedItemModelBuilder builder = modelFactory.checkedItemBuilder();
    final String text = Messages.getString("BeanTableValidationLabel.show_validation_label_text");
    final String tooltip = Messages.getString("BeanTableValidationLabel.show_validation_label_tooltip");
    builder.setText(text).setToolTipText(tooltip);
    return builder.build();
}
Also used : ICheckedItemModelBuilder(org.jowidgets.api.model.item.ICheckedItemModelBuilder) IItemModelFactory(org.jowidgets.api.model.item.IItemModelFactory)

Example 2 with IItemModelFactory

use of org.jowidgets.api.model.item.IItemModelFactory in project jo-client-platform by jo-source.

the class BeanTableFilterToolbar method createItemModel.

private ICheckedItemModel createItemModel() {
    final IItemModelFactory modelFactory = Toolkit.getModelFactoryProvider().getItemModelFactory();
    final ICheckedItemModelBuilder builder = modelFactory.checkedItemBuilder();
    final String text = Messages.getString("BeanTableFilterToolbar.show_filter_toolbar_text");
    builder.setText(text).setToolTipText(itemTooltip);
    return builder.build();
}
Also used : ICheckedItemModelBuilder(org.jowidgets.api.model.item.ICheckedItemModelBuilder) IItemModelFactory(org.jowidgets.api.model.item.IItemModelFactory)

Example 3 with IItemModelFactory

use of org.jowidgets.api.model.item.IItemModelFactory in project jo-client-platform by jo-source.

the class BeanTableImpl method createAutoUpdateItemModel.

private ICheckedItemModel createAutoUpdateItemModel() {
    final IItemModelFactory modelFactory = Toolkit.getModelFactoryProvider().getItemModelFactory();
    final ICheckedItemModelBuilder builder = modelFactory.checkedItemBuilder();
    final String text = Messages.getString("BeanTableImpl.auto_update_text");
    final String tooltip = Messages.getString("BeanTableImpl.auto_update_tooltip");
    builder.setText(text).setToolTipText(tooltip);
    final ICheckedItemModel result = builder.build();
    result.addItemListener(new IItemStateListener() {

        @Override
        public void itemStateChanged() {
            if (result.isSelected()) {
                startAutoUpdateModeImpl();
            } else {
                stopAutoUpdateModeImpl();
            }
        }
    });
    return result;
}
Also used : ICheckedItemModelBuilder(org.jowidgets.api.model.item.ICheckedItemModelBuilder) ICheckedItemModel(org.jowidgets.api.model.item.ICheckedItemModel) IItemModelFactory(org.jowidgets.api.model.item.IItemModelFactory) IItemStateListener(org.jowidgets.common.widgets.controller.IItemStateListener)

Example 4 with IItemModelFactory

use of org.jowidgets.api.model.item.IItemModelFactory in project jo-client-platform by jo-source.

the class BeanTableSearchFilterToolbar method createSearchFilterItemModel.

private ICheckedItemModel createSearchFilterItemModel() {
    final IItemModelFactory modelFactory = Toolkit.getModelFactoryProvider().getItemModelFactory();
    final ICheckedItemModelBuilder builder = modelFactory.checkedItemBuilder();
    final String text = Messages.getString("BeanTableSearchFilterToolbar.show_searchfilter_text");
    builder.setText(text).setToolTipText(searchFilterItemTooltip);
    return builder.build();
}
Also used : ICheckedItemModelBuilder(org.jowidgets.api.model.item.ICheckedItemModelBuilder) IItemModelFactory(org.jowidgets.api.model.item.IItemModelFactory)

Example 5 with IItemModelFactory

use of org.jowidgets.api.model.item.IItemModelFactory in project jo-client-platform by jo-source.

the class BeanTableStatusBar method createStatusBarItemModel.

private ICheckedItemModel createStatusBarItemModel() {
    final IItemModelFactory modelFactory = Toolkit.getModelFactoryProvider().getItemModelFactory();
    final ICheckedItemModelBuilder builder = modelFactory.checkedItemBuilder();
    final String text = Messages.getString("BeanTableStatusBar.show_statusbar_text");
    final String tooltip = Messages.getString("BeanTableStatusBar.show_statusbar_tooltip");
    builder.setText(text).setToolTipText(tooltip);
    return builder.build();
}
Also used : ICheckedItemModelBuilder(org.jowidgets.api.model.item.ICheckedItemModelBuilder) IItemModelFactory(org.jowidgets.api.model.item.IItemModelFactory)

Aggregations

ICheckedItemModelBuilder (org.jowidgets.api.model.item.ICheckedItemModelBuilder)5 IItemModelFactory (org.jowidgets.api.model.item.IItemModelFactory)5 ICheckedItemModel (org.jowidgets.api.model.item.ICheckedItemModel)1 IItemStateListener (org.jowidgets.common.widgets.controller.IItemStateListener)1