|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openbp.swing.components.wizard.WizardImpl
public class WizardImpl
Wizard component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
WizardImpl()
Constructor. |
|
WizardImpl(ResourceCollection wizardResourceCollection)
Constructor. |
|
WizardImpl(ResourceCollection wizardResourceCollection,
javax.swing.ImageIcon defaultWizardImage)
Constructor. |
|
WizardImpl(ResourceCollection wizardResourceCollection,
javax.swing.ImageIcon defaultWizardImage,
javax.swing.ImageIcon defaultBackgroundImage)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAndLinkPage(java.lang.String name,
java.awt.Component page)
Adds a page to the wizard and links it into the sequence manager's list. |
void |
addPage(java.lang.String name,
java.awt.Component page)
Adds a page to the wizard, but does not link it into the sequence manager's list. |
void |
addWizardListener(WizardListener listener)
Adds a wizard event listener. |
boolean |
canCancel()
Determines if we can cancel the wizard dialog at this point. |
void |
cancel()
Cancels the wizard. |
boolean |
canFinish()
Determines if we can finish the wizard dialog at this point. |
boolean |
canMoveBackward()
Determines if we can return to the previous page. |
boolean |
canMoveForward()
Determines if we can advance to the next page. |
void |
clearPages()
Clears the wizard pages. |
void |
close()
Closes the wizard. |
void |
displayBack()
Displays the previous page. |
void |
displayFirst()
Displays the first page in the sequence. |
void |
displayNext()
Displays the next page. |
void |
displayPage(java.lang.String name)
Shows a particular page and updates the navigator. |
void |
finish()
Finishes the wizard. |
boolean |
fireWizardEvent(int eventType)
Fires a wizard event using the given event code. |
protected boolean |
fireWizardEvent(WizardEvent event)
Fires a wizard event. |
WizardDataModel |
getDataModel()
Gets the data collection model holding the data of the pages. |
javax.swing.ImageIcon |
getDefaultBackgroundImage()
Gets the default background image. |
javax.swing.ImageIcon |
getDefaultWizardImage()
Gets the default wizard image. |
SequenceManager |
getManager()
Gets the page sequence manager. |
java.awt.Component |
getPage(java.lang.String name)
Gets a page by its name. |
java.util.Iterator |
getPageNames()
Gets the list of page names. |
java.lang.String |
getPageResourcePrefix()
Gets the optional resource prefix for wizard page resources. |
java.lang.String |
getPageResourceString(java.lang.String pageName,
java.lang.String suffix)
Gets a text resource for the specified page from the wizard resource. |
java.util.Iterator |
getPages()
Gets the list of pages. |
ResourceCollection |
getResource()
Gets the wizard resource. |
java.lang.String |
getResultPageName()
Gets the wizard result page name. |
boolean |
hasBackward()
Determines if there is a previous page. |
boolean |
hasForward()
Determines if there is a next page. |
void |
hideWizard()
Hides the window the wizard is contained in. |
void |
removePage(java.lang.String name)
Removes a page from the wizard and the sequence manager. |
void |
removeWizardListener(WizardListener listener)
Removes a wizard event listener. |
void |
setDataModel(WizardDataModel dataModel)
Sets the data collection model holding the data of the pages. |
void |
setDefaultBackgroundImage(javax.swing.ImageIcon defaultBackgroundImage)
Sets the default background image. |
void |
setDefaultWizardImage(javax.swing.ImageIcon defaultWizardImage)
Sets the default wizard image. |
void |
setManager(SequenceManager manager)
Sets the page sequence manager. |
void |
setPageResourcePrefix(java.lang.String pageResourcePrefix)
Sets the optional resource prefix for wizard page resources. |
void |
setResultPage(java.lang.String resultPageName,
java.awt.Component page)
Adds a result page to the wizard. |
void |
setResultPageName(java.lang.String resultPageName)
Sets the wizard result page name. |
void |
setShowHelp(boolean showHelp)
Sets the show help. |
void |
setWizardResource(ResourceCollection wizardResourceCollection)
Sets the wizard resource. |
void |
stateChanged(javax.swing.event.ChangeEvent event)
Called if the state of the model changed. |
void |
updateNavigator()
Updates the navigation bar. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WizardImpl()
public WizardImpl(ResourceCollection wizardResourceCollection)
wizardResourceCollection - The resource that contains texts and images for the wizard's navigator
public WizardImpl(ResourceCollection wizardResourceCollection,
javax.swing.ImageIcon defaultWizardImage)
wizardResourceCollection - The resource that contains texts and images for the wizard's navigatordefaultWizardImage - Default wizard image
public WizardImpl(ResourceCollection wizardResourceCollection,
javax.swing.ImageIcon defaultWizardImage,
javax.swing.ImageIcon defaultBackgroundImage)
wizardResourceCollection - The resource that contains texts and images for the wizard's navigatordefaultWizardImage - Default wizard imagedefaultBackgroundImage - Default background image| Method Detail |
|---|
public void addAndLinkPage(java.lang.String name,
java.awt.Component page)
addAndLinkPage in interface Wizardname - Name of the page. Use this name for any sequence
manager operations (see getManager()).page - page to add.
The page should be a subclass of WizardPage
public void addPage(java.lang.String name,
java.awt.Component page)
getManager()) to
define the order the pages will appear.
addPage in interface Wizardname - Name of the page. Use this name for any sequence
manager operations (see getManager()).page - page to add.
The page should be a subclass of WizardPagepublic void removePage(java.lang.String name)
removePage in interface Wizardname - Name of the pagepublic java.awt.Component getPage(java.lang.String name)
getPage in interface Wizardname - Name of the page or null for the current page
WizardPage)public java.util.Iterator getPageNames()
getPageNames in interface Wizardpublic java.util.Iterator getPages()
getPages in interface Wizardpublic java.lang.String getResultPageName()
addPage(java.lang.String, java.awt.Component) method.
getResultPageName in interface Wizardpublic void setResultPageName(java.lang.String resultPageName)
addPage(java.lang.String, java.awt.Component) method.
setResultPageName in interface WizardresultPageName - The name of the result page or null for no result page
public void setResultPage(java.lang.String resultPageName,
java.awt.Component page)
addPage(java.lang.String, java.awt.Component) + setResultPageName(java.lang.String)
setResultPage in interface WizardresultPageName - The name of the result page or null for no result pagepage - Page component to add (usually a WizardPage)public void clearPages()
clearPages in interface Wizardpublic void displayFirst()
displayFirst in interface Wizardpublic void displayBack()
displayBack in interface Wizardpublic void displayNext()
displayNext in interface Wizardpublic void finish()
finish in interface Wizardpublic void cancel()
cancel in interface Wizardpublic void close()
close in interface Wizardpublic boolean canMoveBackward()
canMoveBackward in interface Wizardpublic boolean hasBackward()
hasBackward in interface Wizardpublic boolean canMoveForward()
canMoveForward in interface Wizardpublic boolean hasForward()
hasForward in interface Wizardpublic boolean canFinish()
canFinish in interface Wizardpublic boolean canCancel()
canCancel in interface Wizardpublic void displayPage(java.lang.String name)
displayPage in interface Wizardname - Name of the page to show or null for the current onepublic void updateNavigator()
setDataModel(WizardDataModel)) has changed its status and wants to update the state of the navigation
bar buttons accordingly.
updateNavigator in interface Wizardpublic void hideWizard()
public void addWizardListener(WizardListener listener)
addWizardListener in interface Wizardlistener - Listenerpublic void removeWizardListener(WizardListener listener)
removeWizardListener in interface Wizardlistener - Listenerpublic boolean fireWizardEvent(int eventType)
eventType - Event code to fire
protected boolean fireWizardEvent(WizardEvent event)
event - Event to fire
public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged in interface javax.swing.event.ChangeListenerevent - Eventpublic WizardDataModel getDataModel()
getDataModel in interface Wizardpublic void setDataModel(WizardDataModel dataModel)
setDataModel in interface Wizardpublic SequenceManager getManager()
getManager in interface Wizardpublic void setManager(SequenceManager manager)
setManager in interface Wizardpublic ResourceCollection getResource()
getResource in interface Wizardpublic void setWizardResource(ResourceCollection wizardResourceCollection)
setWizardResource in interface Wizardpublic java.lang.String getPageResourcePrefix()
getPageResourcePrefix in interface Wizardpublic void setPageResourcePrefix(java.lang.String pageResourcePrefix)
setPageResourcePrefix in interface Wizardpublic void setShowHelp(boolean showHelp)
setShowHelp in interface Wizardpublic javax.swing.ImageIcon getDefaultWizardImage()
getDefaultWizardImage in interface Wizardpublic void setDefaultWizardImage(javax.swing.ImageIcon defaultWizardImage)
setDefaultWizardImage in interface Wizardpublic javax.swing.ImageIcon getDefaultBackgroundImage()
getDefaultBackgroundImage in interface Wizardpublic void setDefaultBackgroundImage(javax.swing.ImageIcon defaultBackgroundImage)
setDefaultBackgroundImage in interface Wizard
public java.lang.String getPageResourceString(java.lang.String pageName,
java.lang.String suffix)
getPageResourceString in interface WizardpageName - Name of the wizard pagesuffix - Suffix to use for the the resource item name generation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||