Examples of WizardController


Examples of com.eteks.sweethome3d.viewcontroller.WizardController

public class WizardControllerTest extends TestCase {
  public void testWizardController()
      throws NoSuchFieldException, IllegalAccessException, ComponentSearchException {
    // 1. Create a wizard controller test waiting for finish call
    final boolean [] finished = {false};
    WizardController controller = new ControllerTest(new DefaultUserPreferences(), new SwingViewFactory()) {
      @Override
      public void finish() {
        finished [0] = true;
      }
    };
    WizardPane view = (WizardPane)controller.getView();
    // Retrieve view back and next buttons
    final JButton backOptionButton = (JButton)TestUtilities.getField(view, "backOptionButton");
    final JButton nextFinishOptionButton = (JButton)TestUtilities.getField(view, "nextFinishOptionButton");
    String nextFinishOptionButtonText = nextFinishOptionButton.getText();
    // Check view displays first step view
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.WizardController

    String[] keys = getColsChoiceKeys(ureq)
    String[] selectedKeys = getFirstN(keys, 4);
    colsChoiceController = new ChoiceController(ureq, getWindowControl(), keys, getTranslatedKeys(propertyHandlerTranslator,keys), selectedKeys, singleSelection, layoutVertical, "next");   
    this.listenTo(colsChoiceController);
       
    wizardController = new WizardController(ureq, wControl, wizardSteps);   
    this.listenTo(wizardController);
    wizardController.setWizardTitle(translate("memberlistwizard.title"));   
    if (GROUPS_MEMBERS.equals(wizardType)) {
      wizardController.setNextWizardStep(translate("memberlistwizard.groupchoice"), groupsOrAreaChoice);
    } else if (AREAS_MEMBERS.equals(wizardType)) {
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.WizardController

    bulkStep1Form = new BulkStep1Form(ureq, wControl, bulkActions);
    listenTo(bulkStep1Form);
   
    step1VC.put("step1Form", bulkStep1Form.getInitialComponent());
   
    wc = new WizardController(ureq, wControl, steps);   
    listenTo(wc);
    wc.setWizardTitle(translate("wizard.step1.title"));
    wc.setNextWizardStep(translate("wizard.step1.howto"), step1VC);
    main.setContent(wc.getInitialComponent());   
    putInitialPanel(main);
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.WizardController

        CMD_SELECT_NODE, ureq.getLocale()));
   
    nodeTableModel = new NodeTableDataModel(nodesTableObjectArrayList, getTranslator());
    nodeListCtr.setTableDataModel(nodeTableModel);
   
    wc = new WizardController(ureq, wControl, 2);
    listenTo(wc);
    wc.setWizardTitle(getTranslator().translate("wizard.nodechoose.title"));
    wc.setNextWizardStep(getTranslator().translate("wizard.nodechoose.howto"), nodeListCtr.getInitialComponent());
    putInitialPanel(wc.getInitialComponent());
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.WizardController

    super(wControl);
    this.bulkActions = bulkActions;
    trans = new PackageTranslator(PACKAGE, ureq.getLocale());
    sepValVC = new VelocityContainer("inout", VELOCITY_ROOT + "/inout.html", trans, this);
   
    wc = new WizardController(ureq, wControl, steps);
    wc.addControllerListener(this);
    sepValInForm = new SeparatedValueInputForm("sepvalin", trans);
    sepValInForm.addListener(this);
    wc.setWizardTitle(trans.translate("wizard.step1.title"));
    wc.setNextWizardStep(trans.translate("wizard.step1.howto"), sepValInForm);
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.WizardController

   
    nodeTableModel = new NodeTableDataModel(nodesTableObjectArrayList, getTranslator());
    nodeListCtr.setTableDataModel(nodeTableModel);
    nodeChooseVC.put("nodeTable", nodeListCtr.getInitialComponent());
   
    wc = new WizardController(ureq, wControl, steps);
    wc.addControllerListener(this);
    wc.setWizardTitle(getTranslator().translate("wizard.nodechoose.title"));
    wc.setNextWizardStep(getTranslator().translate("wizard.nodechoose.howto"), nodeChooseVC);
    main.setContent(wc.getInitialComponent());
    putInitialPanel(main);
View Full Code Here

Examples of org.onebusaway.quickstart.bootstrap.gui.wizard.WizardController

      throws IOException, Exception {

    final GuiQuickstartDataModel model = new GuiQuickstartDataModel();
    loadModel(model);

    WizardController controller = new WizardController();
    controller.addPanel(WelcomeWizardPanelController.class,
        new WelcomeWizardPanelController());
    controller.addPanel(TransitDataBundlePathWizardPanelController.class,
        new TransitDataBundlePathWizardPanelController(model, controller));
    controller.addPanel(QuickStartTypeWizardPanelController.class,
        new QuickStartTypeWizardPanelController(model));
    controller.addPanel(GtfsPathWizardPanelController.class,
        new GtfsPathWizardPanelController(model, controller));
    controller.addPanel(GtfsRealtimePathsWizardPanelController.class,
        new GtfsRealtimePathsWizardPanelController(model));
    controller.addPanel(RunWizardPanelController.class,
        new RunWizardPanelController(model));
    controller.setCurrentPanel(WelcomeWizardPanelController.class);

    WizardDialog dialog = new WizardDialog(controller);
    dialog.setModal(true);
    dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    dialog.setVisible(true);

    saveModel(model);

    if (controller.getCompletionState() == ECompletionState.CANCELLED)
      System.exit(0);

    String path = model.getTransitDataBundlePath();
    new File(path).mkdirs();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.