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();
}
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();
}
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;
}
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();
}
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();
}
Aggregations