Exemplo n.º 1
0
  public wPanel getCreatorPanel() {
    wPanel p;
    wButton update;

    p = new wPanel();
    p.setLayout(new WizardLayout());
    cObject = new LabeledChoice("Object to use for interactive input");
    clJumpto =
        new ChoiceList("Select the page to jump to, when the #th option is selected...", false);
    update = new wButton(" Update Interactive data ");

    cObject.add("None - don't use interactivity");
    clJumpto.insertPage(" Next Page ", 0);
    setValuesToObjects();

    cObject.select((linkObject == -1) ? 0 : linkObject);
    for (int i = 0; i < links.size(); i++) {
      clJumpto.addEntry(i, new pageEntry((String) links.elementAt(i)));
    }
    clJumpto.deleteEntry(
        links.size()); // by default, DoubleList has an entry already (now the last one)
    clJumpto.displayEntry(0);

    p.add(cObject);
    p.add(clJumpto);
    p.add(update);
    update.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent ev) {
            recalculateDisplay();
          }
        });
    return p;
  }