@Override public boolean supports(final WidgetModel model) { return super.supports(model) && model.isText() && !model.isMultipleChoice() && !model.isMessage(); }
@Override public void set(final WidgetModel model) { super.set(model); final int columns = model.getItem().getColumnCount(); textField = new TextField("", columns); textField.addTextListener(this); getComponent().add(textField, BorderLayout.CENTER); refreshWidget(); }
@Override public void initialize(final WidgetModel model) { super.initialize(model); final String[] items = model.getChoices(); listButton = new ListButton(); listButton.setListData(new ArrayList<String>(items)); getComponent().add(listButton); refreshWidget(); }
@Override public boolean isCompatible(final WidgetModel model) { return super.isCompatible(model) && model.isBoolean(); }
@Override public boolean supports(final WidgetModel model) { return super.supports(model) && model.isType(Date.class); }
@Override public boolean isCompatible(final WidgetModel model) { return super.isCompatible(model) && model.isText() && model.isMultipleChoice(); }