Package com.reportmill.wizard
Class Wizard
- java.lang.Object
-
- com.reportmill.wizard.Wizard
-
- Direct Known Subclasses:
FormsBasic,GraphsBar,TablesBasic
public class Wizard extends java.lang.ObjectThis class manages a specific wizard, like "Form 1040EZ" or "Table with Groupings"
-
-
Constructor Summary
Constructors Constructor Description Wizard()Creates a new wizard for the given name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScreen(WizardScreen aWS)Adds a wizard screen to this wizard.booleanfinish()Does finish.java.lang.StringgetCategory()Returns the category name for this wizard.RMDataSourcegetDataSource()Returns the datasource for this wizard's wizard panel's document's datasource.RMDataSourcegetDataSourceDefault()Returns the default datasource to be used when document doesn't have one.java.lang.StringgetDescription()Returns the description for this wizard.protected RMShape[]getFinishShapes()Returns an array of finish shapes.java.lang.StringgetListKey()Returns the list key for this wizard.intgetMaxSelectedPanelIndex()Returns the max selected panel index.java.lang.StringgetName()Returns the name for this wizard.RJPanelgetPanel(int anIndex)Returns the specific panel at the given index.intgetPanelCount()Returns the number of screens in this Wizard.java.lang.StringgetPrettyName()Returns the name for this wizard.WizardScreengetScreen(int anIndex)Returns the specific wizard screen at the given index.RJPanelgetSelectedPanel()Returns the currently selected screen.intgetSelectedPanelIndex()Returns the currently selected screen index.javax.swing.IcongetThumbnailImage()Returns the image for this wizard.static WizardgetWizard(java.lang.String aName, java.lang.String aCategory, WizardPanel aWizardPanel)Returns an instance of the wizard for the given category and name.protected voidprepareFinishShapes()Does initialization prior to get finish shapes.voidremoveScreen(WizardScreen aWS)Removes a wizard screen from this wizard.voidresetUI()Updates UI.voidrespondUI(java.lang.Object anObj)Responds to UI.voidsetCategory(java.lang.String aName)Sets the category name for this wizard.voidsetListKey(java.lang.String aKey)Sets the list key for this wizard.voidsetMaxSelectedPanelIndex(int anIndex)Sets the max selected panel index.voidsetName(java.lang.String aName)Sets the name for this wizard.voidsetSelectedPanelIndex(int anIndex)Sets the currently selected screen index.
-
-
-
Method Detail
-
getWizard
public static Wizard getWizard(java.lang.String aName, java.lang.String aCategory, WizardPanel aWizardPanel)
Returns an instance of the wizard for the given category and name.
-
getName
public java.lang.String getName()
Returns the name for this wizard.
-
setName
public void setName(java.lang.String aName)
Sets the name for this wizard.
-
getCategory
public java.lang.String getCategory()
Returns the category name for this wizard.
-
setCategory
public void setCategory(java.lang.String aName)
Sets the category name for this wizard.
-
getPrettyName
public java.lang.String getPrettyName()
Returns the name for this wizard.
-
getDescription
public java.lang.String getDescription()
Returns the description for this wizard.
-
getThumbnailImage
public javax.swing.Icon getThumbnailImage()
Returns the image for this wizard.
-
getPanelCount
public int getPanelCount()
Returns the number of screens in this Wizard.
-
getScreen
public WizardScreen getScreen(int anIndex)
Returns the specific wizard screen at the given index.
-
addScreen
public void addScreen(WizardScreen aWS)
Adds a wizard screen to this wizard.
-
removeScreen
public void removeScreen(WizardScreen aWS)
Removes a wizard screen from this wizard.
-
getPanel
public RJPanel getPanel(int anIndex)
Returns the specific panel at the given index.
-
getSelectedPanelIndex
public int getSelectedPanelIndex()
Returns the currently selected screen index.
-
setSelectedPanelIndex
public void setSelectedPanelIndex(int anIndex)
Sets the currently selected screen index.
-
getSelectedPanel
public RJPanel getSelectedPanel()
Returns the currently selected screen.
-
getMaxSelectedPanelIndex
public int getMaxSelectedPanelIndex()
Returns the max selected panel index.
-
setMaxSelectedPanelIndex
public void setMaxSelectedPanelIndex(int anIndex)
Sets the max selected panel index.
-
getDataSource
public RMDataSource getDataSource()
Returns the datasource for this wizard's wizard panel's document's datasource.
-
getDataSourceDefault
public RMDataSource getDataSourceDefault()
Returns the default datasource to be used when document doesn't have one.
-
getListKey
public java.lang.String getListKey()
Returns the list key for this wizard.
-
setListKey
public void setListKey(java.lang.String aKey)
Sets the list key for this wizard.
-
resetUI
public void resetUI()
Updates UI.
-
respondUI
public void respondUI(java.lang.Object anObj)
Responds to UI.
-
finish
public boolean finish()
Does finish.
-
prepareFinishShapes
protected void prepareFinishShapes()
Does initialization prior to get finish shapes.
-
getFinishShapes
protected RMShape[] getFinishShapes()
Returns an array of finish shapes.
-
-