All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.nodes.LoopNode
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.sun.wizards.core.WizardComponent
|
+----com.sun.wizards.core.WizardComposite
|
+----com.sun.wizards.nodes.PanelNode
|
+----com.sun.wizards.nodes.LoopNode
- public class LoopNode
- extends PanelNode
The LoopNode allows a group of panels to be displayed
repeatedly. The LoopNode is instantiated with a data
key, which will be used to determine when to exit the
loop. The iteration count (starting from 1) will be
set by the LoopNode into another data key, which is
also specified in the constructor.
-
LoopNode()
- This default constructor is used for deserialization.
-
LoopNode(String, Route, WizardTreeManager)
- Creates a LoopNode with the specified name, the specified
route and wizard manager.
-
LoopNode(String, Route, WizardTreeManager, String, String)
- Creates a LoopNode with the specified name, the specified
route and wizard manager.
-
LoopNode(WizardState, String, String, String)
- Creates a LoopNode with the specified exit data key
and the specified iteration data key.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this Node.
-
beginDisplay()
- This method is called when the first child panel of this node is entered.
-
breakLoop()
- Break out of the loop node immediately.
-
continueLoop()
- Continue with the next loop iteration.
-
deserialize(DataInput)
- Deserialize this node from the specified input stream.
-
getNextChild(WizardComponent)
- Get the child that follows the specified child in the
WizardComponent tree.
-
isDisplayComplete()
- This method is called when the last child panel of this node is exited
successfully.
-
serialize(DataOutput)
- Serialize this node to the specified output stream.
LoopNode
public LoopNode()
- This default constructor is used for deserialization.
LoopNode
public LoopNode(WizardState wizardState,
String name,
String exitKey,
String iterationKey)
- Creates a LoopNode with the specified exit data key
and the specified iteration data key.
- Parameters:
- wizardState - The buildtime WizardState.
- name - The name of this LoopNode.
- exitKey - The data key for exit status.
- iterationKey - The data key used to reference the iteration count.
LoopNode
public LoopNode(String name,
Route route,
WizardTreeManager wizardManager)
- Creates a LoopNode with the specified name, the specified
route and wizard manager.
- Parameters:
- name - The name for this LoopNode.
- route - The route to the appropriate server side object.
- wizardManager - The wizard manager responsible for this component.
LoopNode
public LoopNode(String name,
Route route,
WizardTreeManager wizardManager,
String exitKey,
String iterationKey)
- Creates a LoopNode with the specified name, the specified
route and wizard manager. Can be used at runtime to dynamically create
a LoopNode.
- Parameters:
- name - The name for this LoopNode.
- route - The route to the appropriate server side object.
- wizardManager - The wizard manager responsible for this component.
- exitKey - The data key for exit status.
- iterationKey - The data key used to reference the iteration count.
beginDisplay
public void beginDisplay()
- This method is called when the first child panel of this node is entered.
- Overrides:
- beginDisplay in class PanelNode
isDisplayComplete
public boolean isDisplayComplete()
- This method is called when the last child panel of this node is exited
successfully.
- Overrides:
- isDisplayComplete in class WizardComponent
serialize
protected void serialize(DataOutput out)
- Serialize this node to the specified output stream.
- Parameters:
- out - The output stream to which this panel
will be serialized.
- Overrides:
- serialize in class WizardComposite
getNextChild
protected WizardComponent getNextChild(WizardComponent currentChild)
- Get the child that follows the specified child in the
WizardComponent tree.
The LoopNode overrides this method to accomplish repeating
a set of panels.
- Parameters:
- currentChild - The child that comes before the
desired child in the wizard tree.
- Returns:
- The next child in the wizard tree or null if
no children follow the specified child in the tree.
- Overrides:
- getNextChild in class WizardComposite
breakLoop
public void breakLoop()
- Break out of the loop node immediately. Invocation of this
method causes the panel after the LoopNode to be visited.
continueLoop
public void continueLoop()
- Continue with the next loop iteration.
deserialize
protected void deserialize(DataInput in)
- Deserialize this node from the specified input stream.
- Parameters:
- in - The input stream from which this node will
be deserialized.
- Overrides:
- deserialize in class WizardComposite
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Get the runtime classes required by this Node.
- Parameters:
- resourceVector - The vector containing all runtime resources for this wizard.
- Overrides:
- addRuntimeResources in class PanelNode
All Packages Class Hierarchy This Package Previous Next Index