Пример #1
0
 @Override
 public List<FormFrame> visit(Questionnaire questionnaire) {
   List<FormFrame> formViews = new ArrayList<FormFrame>();
   for (Form form : questionnaire.getForms()) {
     formViews.add((FormFrame) form.accept(this));
   }
   return formViews;
 }
Пример #2
0
 @Override
 public FormFrame visit(Form form) {
   widgetListener = new WidgetListener(formView);
   form.getBlock().accept(this);
   JButton button = new JButton("Done");
   formView.addDoneButton(button);
   button.addActionListener(new DoneButtonListener(widgetListener.getEvaluator()));
   formView.setFrameVisible(true);
   return formView;
 }