|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--oracle.bali.ewt.painter.PaintContextComponent | +--oracle.bali.ewt.LWComponent | +--oracle.bali.ewt.wizard.BaseWizard | +--oracle.bali.ewt.wizard.Wizard | +--oracle.ide.panels.FSMWizard
STILL IN DEVELOPMENT -- API IS UNSTABLE.
This class integrates the notion of an FSM-drive wizard with the support of the Bali Wizard framework.
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class oracle.bali.ewt.wizard.BaseWizard |
MNEMONIC_APPLY, MNEMONIC_CANCEL, MNEMONIC_FINISH, MNEMONIC_HELP, MNEMONIC_NEXT, MNEMONIC_PREVIOUS |
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 | |
FSMWizard(FSM fsm,
Namespace data)
Creates an instance of FSMWizard using the specified
FSM to drive the sequence of panels and the specified
Namespace as the backing storage for the TraversableContext that is passed to the panels in their
onEntry(...) and onExit(...) methods. |
Method Summary | |
void |
addCommitListener(CommitListener commitListener)
Adds an CommitListener that will be called when the
user applies or cancels changes. |
protected void |
doCancel()
|
protected void |
doFinish()
|
protected void |
doNext()
|
protected void |
doPrevious()
|
oracle.bali.ewt.wizard.WizardDialog |
getDialog(java.awt.Frame parent)
This method returns an instance of WizardDialog that is
initialized to interact with the FSMWizard . |
boolean |
getShowStepNumber()
Returns true if the FSMWizard has been set to show step numbers in the page title, false otherwise. |
static FSMWizard |
newFSMWizard(Step[] steps,
Namespace data)
|
static FSMWizard |
newFSMWizard(java.lang.String[] panels,
Namespace data)
Creates a straight-through FSMWizard using the
specified sequence of panels. |
void |
removeCommitListener(CommitListener commitListener)
Removes a previously added CommitListener so that it
no longer receives notification when the user applies or cancels
changes. |
void |
setDialog(oracle.bali.ewt.wizard.WizardDialog dialog)
This method takes an instance of WizardDialog and
associates it with the FSMWizard so that
WizardCallback messages coming from the individual
panels will be routed to the WizardDialog . |
void |
setFinishPageAdded(boolean pageAdded)
Sets whether or not a finish page has been added to the FSMWizard |
void |
setShowStepNumber(boolean showStepNumber)
|
void |
setWelcomePageAdded(boolean pageAdded)
Sets whether or not a welcome page has been added to the FSMWizard |
void |
setWizardTitle(java.lang.String wizardTitle)
|
void |
updateImage(java.awt.Image newImage)
Sets the large wizard image that is shown on the left side of the wizard. |
Methods inherited from class oracle.bali.ewt.wizard.Wizard |
addPage, dispose, getMustFinish, pagePropertyChange, removeAllPages, removePage, setMustFinish, setSelectedPage, updateUI |
Methods inherited from class oracle.bali.ewt.wizard.BaseWizard |
addCustomButton, addImpl, addNotify, addPage, addPageImpl, addPages, addWizardListener, disable, doApply, doHelp, enable, enableButtons, getAccessibleContext, getButtonMnemonic, getCanAdvance, getCanApply, getCanGoBack, getCurrentPageIndex, getFinishMnemonic, getFinishText, getNextPage, getPageAt, getPageCount, getPreferredSize, getPreviousPage, getReservedButtonSpaces, getSelectedPage, getUIClassID, isHelpAvailable, paramString, processEventImpl, processWizardEvent, removeCustomButton, removeWizardListener, resetFocus, restart, selectPage, selectPage, setCanApply, setCurrentPageIndex, setFinishMnemonic, setFinishText, setHelpAvailable, setLocale, setReservedButtonSpaces, updateReadingDirection, validateSelectedPage |
Methods inherited from class oracle.bali.ewt.LWComponent |
clipToParents, freezeRepaints, getActualAlignment, getActualReadingDirection, getAlignment, getBorderInsets, getDocumentSize, getFill, getPageBounds, getPrintPaintContext, isFocusTraversable, paintChildren, paintComponent, paintImmediateInterior, paintImmediateInterior, paintImmediately, paintOverChildren, printPage, processEvent, repaint, repaintInterior, repaintInterior, setAlignment, setFill, unfreezeRepaints |
Methods inherited from class oracle.bali.ewt.painter.PaintContextComponent |
getBorderContext, getPaintContext, getPaintData, getPaintState, getUIDefaults, setUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FSMWizard(FSM fsm, Namespace data)
FSMWizard
using the specified
FSM
to drive the sequence of panels and the specified
Namespace
as the backing storage for the TraversableContext
that is passed to the panels in their
onEntry(...)
and onExit(...)
methods.Method Detail |
public static FSMWizard newFSMWizard(java.lang.String[] panels, Namespace data)
FSMWizard
using the
specified sequence of panels. Each panel is specified using its
fully qualified class name.public static FSMWizard newFSMWizard(Step[] steps, Namespace data)
public void setWizardTitle(java.lang.String wizardTitle)
public void setShowStepNumber(boolean showStepNumber)
public boolean getShowStepNumber()
public void setWelcomePageAdded(boolean pageAdded)
public void setFinishPageAdded(boolean pageAdded)
public void addCommitListener(CommitListener commitListener)
CommitNotifier
CommitListener
that will be called when the
user applies or cancels changes.addCommitListener
in interface CommitNotifier
public void removeCommitListener(CommitListener commitListener)
CommitNotifier
CommitListener
so that it
no longer receives notification when the user applies or cancels
changes.removeCommitListener
in interface CommitNotifier
public void updateImage(java.awt.Image newImage)
public oracle.bali.ewt.wizard.WizardDialog getDialog(java.awt.Frame parent)
WizardDialog
that is
initialized to interact with the FSMWizard
. This
method will return the same WizardDialog
instance on
subsequent invocations, even if the specified Frame
is
different.public void setDialog(oracle.bali.ewt.wizard.WizardDialog dialog)
WizardDialog
and
associates it with the FSMWizard
so that
WizardCallback
messages coming from the individual
panels will be routed to the WizardDialog
. This method
only needs to be used if the WizardDialog
needs to be
created or initialized in some custom way before displaying the
FSMWizard
.
If the specified WizardDialog
is null
, then
any currently associated dialog will be unassociated.
protected void doFinish()
doFinish
in class oracle.bali.ewt.wizard.BaseWizard
protected void doNext()
doNext
in class oracle.bali.ewt.wizard.BaseWizard
protected void doPrevious()
doPrevious
in class oracle.bali.ewt.wizard.BaseWizard
protected void doCancel()
doCancel
in class oracle.bali.ewt.wizard.BaseWizard
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |