All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.nodes.EventPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.sun.wizards.core.WizardComponent
|
+----com.sun.wizards.core.WizardLeaf
|
+----com.sun.wizards.nodes.EventPanel
- public class EventPanel
- extends WizardLeaf
The EventPanel is a panel that sends events to its parent
node. This panel is only meant to be used with the PanelNode.
An Event panel is added to the PanelNode before and after
all of the "real" panels managed by that PanelNode.
The first EventPanel sends the beginDisplay, abortDisplay, and
createUI messages to the PanelNode. The last EventPanel sends
the isDisplayComplete message to the PanelNode.
The EventPanel is never seen. As soon as the beginDisplay method
is called and the PanelNode is notified, the EventPanel calls for
the next panel to be displayed.
-
EventPanel()
- Creates an EventPanel with a route to the root of
the server object tree.
-
EventPanel(String, Route, WizardTreeManager)
- Creates an EventPanel with the specified name, the specified
route and wizard manager.
-
EventPanel(WizardState, String)
- Creates an EventPanel with the specified name and WizardState.
-
abortDisplay()
- This method is called when this EventPanel is being displayed,
and the user presses the "back" button.
-
addRuntimeResources(Vector)
- Set the runtime classes required by this panel.
-
beginDisplay()
- This method is called when the EventPanel is displayed.
-
createUI()
- This method creates the user interface.
-
isDisplayComplete()
- Returns true if this EventPanel is finished displaying.
EventPanel
public EventPanel()
- Creates an EventPanel with a route to the root of
the server object tree.
EventPanel
public EventPanel(WizardState wizardState,
String name)
- Creates an EventPanel with the specified name and WizardState.
- Parameters:
- wizardState - The buildtime WizardState.
- name - The name for this EventPanel.
EventPanel
public EventPanel(String name,
Route route,
WizardTreeManager wizardManager)
- Creates an EventPanel with the specified name, the specified
route and wizard manager.
- Parameters:
- name - The name for this EventPanel.
- route - The route to the appropriate server side object.
- wizardManager - The wizardManager responsible for this component.
beginDisplay
public void beginDisplay()
- This method is called when the EventPanel is displayed.
EventPanel overrides this method to call its parent's
beginDisplay method.
- Overrides:
- beginDisplay in class WizardComponent
abortDisplay
public void abortDisplay()
- This method is called when this EventPanel is being displayed,
and the user presses the "back" button. This method provides an
opportunity for this WizardComponent to do cleanup before exiting.
This method is used when the user presses the "back" button, and
the
isDisplayComplete method is used when the user
presses the "next" button.
The EventPanel overrides this method to call its parent's
abortDisplay method.
- Overrides:
- abortDisplay in class WizardComponent
createUI
public void createUI()
- This method creates the user interface.
The EventPanel overrides this method to call its parent's
createUI method.
- Overrides:
- createUI in class WizardLeaf
isDisplayComplete
public boolean isDisplayComplete()
- Returns true if this EventPanel is finished displaying.
This method can be used to verify user input.
The EventPanel overrides this method to call its parent's
isDisplayComplete method.
- Returns:
- true if the display of this WizardComponent is
complete; false otherwise.
- Overrides:
- isDisplayComplete in class WizardComponent
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Set the runtime classes required by this panel.
- Parameters:
- resourceVector - The vector containing all runtime resources for this wizard.
- Overrides:
- addRuntimeResources in class WizardLeaf
All Packages Class Hierarchy This Package Previous Next Index