/** Calls iterator's instantiate. It is called when user selects * a option which is not CANCEL_OPTION or CLOSED_OPTION. * @throws IOException if the instantiation fails * @return set of data objects that have been created (should contain * at least one) */ protected java.util.Set handleInstantiate() throws IOException { return iterator.getIterator ().instantiate (this); }
/** Move to the previous panel. * I.e. decrement its index, need not actually change any GUI itself. * @exception NoSuchElementException if the panel does not exist */ public void previousPanel() { if (getIterator ().hasPrevious ()) { getIterator ().previousPanel (); } else { showingPanel = true; } }
/** Test whether there is a next panel. * @return <code>true</code> if so */ public boolean hasNext() { return showingPanel || getIterator ().hasNext(); }
/** Move to the next panel. * I.e. increment its index, need not actually change any GUI itself. * @exception NoSuchElementException if the panel does not exist */ public void nextPanel() { if (showingPanel) { showingPanel = false; } else { getIterator ().nextPanel (); } }
/** Get the name of the current panel. * @return the name */ public String name() { return showingPanel ? "" : getIterator ().name (); // NOI18N }
/** Get the current panel. * @return the panel */ public WizardDescriptor.Panel current() { return showingPanel ? firstPanel () : getIterator ().current (); }