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.Object
This 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 void
addScreen(WizardScreen aWS)
Adds a wizard screen to this wizard.boolean
finish()
Does finish.java.lang.String
getCategory()
Returns the category name for this wizard.RMDataSource
getDataSource()
Returns the datasource for this wizard's wizard panel's document's datasource.RMDataSource
getDataSourceDefault()
Returns the default datasource to be used when document doesn't have one.java.lang.String
getDescription()
Returns the description for this wizard.protected RMShape[]
getFinishShapes()
Returns an array of finish shapes.java.lang.String
getListKey()
Returns the list key for this wizard.int
getMaxSelectedPanelIndex()
Returns the max selected panel index.java.lang.String
getName()
Returns the name for this wizard.RJPanel
getPanel(int anIndex)
Returns the specific panel at the given index.int
getPanelCount()
Returns the number of screens in this Wizard.java.lang.String
getPrettyName()
Returns the name for this wizard.WizardScreen
getScreen(int anIndex)
Returns the specific wizard screen at the given index.RJPanel
getSelectedPanel()
Returns the currently selected screen.int
getSelectedPanelIndex()
Returns the currently selected screen index.javax.swing.Icon
getThumbnailImage()
Returns the image for this wizard.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.protected void
prepareFinishShapes()
Does initialization prior to get finish shapes.void
removeScreen(WizardScreen aWS)
Removes a wizard screen from this wizard.void
resetUI()
Updates UI.void
respondUI(java.lang.Object anObj)
Responds to UI.void
setCategory(java.lang.String aName)
Sets the category name for this wizard.void
setListKey(java.lang.String aKey)
Sets the list key for this wizard.void
setMaxSelectedPanelIndex(int anIndex)
Sets the max selected panel index.void
setName(java.lang.String aName)
Sets the name for this wizard.void
setSelectedPanelIndex(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.
-
-