Example #1
0
 @Override
 public boolean supports(final WidgetModel model) {
   return super.supports(model)
       && model.isText()
       && !model.isMultipleChoice()
       && !model.isMessage();
 }
Example #2
0
  @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();
  }
Example #3
0
  @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();
 }
Example #5
0
 @Override
 public boolean supports(final WidgetModel model) {
   return super.supports(model) && model.isType(Date.class);
 }
Example #6
0
 @Override
 public boolean isCompatible(final WidgetModel model) {
   return super.isCompatible(model) && model.isText() && model.isMultipleChoice();
 }