Class WizardSupport.GameSetupPanels
java.lang.Object
org.netbeans.spi.wizard.WizardPanelProvider
VASSAL.build.module.WizardSupport.GameSetupPanels
- All Implemented Interfaces:
org.netbeans.spi.wizard.WizardPage.WizardResultProducer
- Enclosing class:
WizardSupport
public static class WizardSupport.GameSetupPanels
extends org.netbeans.spi.wizard.WizardPanelProvider
implements org.netbeans.spi.wizard.WizardPage.WizardResultProducer
Wizard pages for starting a new game. One page will be added for each unfinished
GameSetupStep- Author:
- rkinney
- See Also:
-
Field Summary
Fields inherited from interface org.netbeans.spi.wizard.WizardPage.WizardResultProducer
NO_OP -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled if the user invokes cancel.protected JComponentcreatePanel(org.netbeans.spi.wizard.WizardController controller, String id, Map settings) Create a panel that represents a named step in the wizard.Instantiate whatever object (if any) the wizard creates from its gathered data.newInstance(boolean forcePwd) org.netbeans.spi.wizard.WizardvoidsetForcePwd(boolean forcePwd) Methods inherited from class org.netbeans.spi.wizard.WizardPanelProvider
createWizard, getLongDescription, indexOfStep, recycleExistingPanel, toString
-
Method Details
-
setForcePwd
public void setForcePwd(boolean forcePwd) -
newInstance
-
newInstance
-
createPanel
protected JComponent createPanel(org.netbeans.spi.wizard.WizardController controller, String id, Map settings) Description copied from class:org.netbeans.spi.wizard.WizardPanelProviderCreate a panel that represents a named step in the wizard. This method will be called exactly once in the life of a wizard. The panel should retain the passed settings Map, and add/remove values from it as the user enters information, callingsetProblem()andsetCanFinish()as appropriate in response to user input.- Specified by:
createPanelin classorg.netbeans.spi.wizard.WizardPanelProvider- Parameters:
controller- - the object which controls whether the Next/Finish buttons in the wizard are enabled, and what instructions are displayed to the user if they are notid- The name of the step, one of the array of steps passed in the constructorsettings- A Map containing settings from earlier steps in the wizard. It is safe to retain a reference to this map and put values in it as the user manipulates the UI; the reference should be refreshed whenever this method is called again.- Returns:
- A JComponent that should be displayed in the center of the wizard
-
cancel
Description copied from class:org.netbeans.spi.wizard.WizardPanelProviderCalled if the user invokes cancel. The default impl returns true.- Specified by:
cancelin interfaceorg.netbeans.spi.wizard.WizardPage.WizardResultProducer- Overrides:
cancelin classorg.netbeans.spi.wizard.WizardPanelProvider- Returns:
- false to abort cancellation (almost all implementations will want to return true - this is really only applicable in cases such as an OS installer or such).
-
finish
Description copied from class:org.netbeans.spi.wizard.WizardPanelProviderInstantiate whatever object (if any) the wizard creates from its gathered data. The default implementation is a no-op that returns null.If an instance of
Summaryis returned from this method, the UI shall display it on a final page and disable all navigation buttons except the Close/Cancel button.If an instance of
DeferredWizardResultis returned from this method, the UI shall display some sort of progress bar while the result is computed in the background. If thatDeferredWizardResultproduces aSummaryobject, that summary shall be displayed as described above.The default implementation returns the settings map it is passed.
- Specified by:
finishin interfaceorg.netbeans.spi.wizard.WizardPage.WizardResultProducer- Overrides:
finishin classorg.netbeans.spi.wizard.WizardPanelProvider- Parameters:
wizardData- The settings map, now fully populated with all settings needed to complete the wizard (this method will only be called ifsetProblem(null)andsetCanFinish(true)have been called on theWizardControllerpassed tocreatePanel().- Returns:
- an object composed based on what the user entered in the wizard -
somethingmeaningful to whatever code invoked the wizard, or null. Note
special handling if an instance of
DeferredWizardResultorSummaryis returned from this method. - Throws:
org.netbeans.spi.wizard.WizardException
-
newWizard
-