All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.core.WizardLeaf
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.sun.wizards.core.WizardComponent
|
+----com.sun.wizards.core.WizardLeaf
- public class WizardLeaf
- extends WizardComponent
WizardLeaf implements the default behavior common
to all WizardComponents that have no children.
The wizard client panel tree consists of an arrangement
of panels (subclassed from WizardLeaf) and nodes
(subclassed from WizardComposite). The arrangement
of the tree determines the order in which the panels
will be visited by the wizard. Nodes can affect the
traversal of the panels, which allows advanced panels
to be skipped for users that do not wish to use them.
"Leaf" was chosen as a name for this class from
the book "Design Patterns".
-
BACK_BUTTON
- A value identifying the back button.
-
CANCEL_BUTTON
- A value identifying the cancel button.
-
EXIT_BUTTON
- A value identifying the exit button.
-
NEXT_BUTTON
- A value identifying the next button.
-
WizardLeaf()
- Creates a WizardLeaf with a route to the root of the
server object tree.
-
WizardLeaf(String, Route, WizardTreeManager)
- Creates a WizardComponent with the specified name, the specified
route and wizard manager.
-
WizardLeaf(WizardState, String)
- Creates a WizardLeaf with the specified name.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this WizardComponent.
-
createUI()
- This method creates the user interface.
-
getButtonMask()
- Returns information suggesting which buttons should be
displayed for this panel.
-
getHeaderPanel()
- Returns the header panel object that appears at the top
of the wizard panel.
-
getNextChild(WizardComponent)
- Get the child that follows the specified child in the
WizardComponent tree.
-
getPreviousChild(WizardComponent)
- Get the child that precedes the specified child in the
WizardComponent tree.
-
next()
- Get the next WizardComponent in the tree.
-
previous()
- Get the previous WizardComponent in the tree.
BACK_BUTTON
public static final int BACK_BUTTON
- A value identifying the back button.
NEXT_BUTTON
public static final int NEXT_BUTTON
- A value identifying the next button.
CANCEL_BUTTON
public static final int CANCEL_BUTTON
- A value identifying the cancel button.
EXIT_BUTTON
public static final int EXIT_BUTTON
- A value identifying the exit button.
WizardLeaf
public WizardLeaf()
- Creates a WizardLeaf with a route to the root of the
server object tree.
WizardLeaf
public WizardLeaf(WizardState wizardState,
String name)
- Creates a WizardLeaf with the specified name.
- Parameters:
- wizardState - The buildtime WizardState.
- name - The name for this WizardLeaf.
WizardLeaf
public WizardLeaf(String name,
Route route,
WizardTreeManager wizardManager)
- Creates a WizardComponent with the specified name, the specified
route and wizard manager.
- Parameters:
- name - The name for this WizardComponent.
- route - The route to the appropriate server side object.
- wizardManager - The wizardManager responsible for this component.
createUI
public void createUI()
- This method creates the user interface.
- Overrides:
- createUI in class WizardComponent
getNextChild
protected WizardComponent getNextChild(WizardComponent currentChild)
- Get the child that follows the specified child in the
WizardComponent tree. Applications should use
next.
- Parameters:
- currentChild - The child in the tree that comes before
the desired sibling.
- Returns:
- The next child in the tree.
- Overrides:
- getNextChild in class WizardComponent
next
public WizardComponent next()
- Get the next WizardComponent in the tree.
- Returns:
- The next child in the tree.
- Overrides:
- next in class WizardComponent
getPreviousChild
public WizardComponent getPreviousChild(WizardComponent currentChild)
- Get the child that precedes the specified child in the
WizardComponent tree. Applications should use
previous.
- Parameters:
- currentChild - The child in the tree that comes after
the desired sibling.
- Returns:
- The previous child in the tree.
- Overrides:
- getPreviousChild in class WizardComponent
previous
public WizardComponent previous()
- Get the previous WizardComponent in the tree.
- Returns:
- The previous child in the tree.
- Overrides:
- previous in class WizardComponent
getButtonMask
public int getButtonMask()
- Returns information suggesting which buttons should be
displayed for this panel.
- Returns:
- A button mask identifying valid navigation buttons.
getHeaderPanel
protected HeaderPanel getHeaderPanel()
- Returns the header panel object that appears at the top
of the wizard panel.
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Get the runtime classes required by this WizardComponent.
- Parameters:
- resourceVector - The vector containing resources that this method will add to.
- Overrides:
- addRuntimeResources in class WizardComponent
All Packages Class Hierarchy This Package Previous Next Index