All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.core.WizardConsole

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.sun.wizards.core.WizardConsole

public class WizardConsole
extends Panel
implements WindowListener, AppConsole, Runnable
WizardConsole is the panel that contains the entire wizard user interface. WizardConsole is a client-side object.

Graphic of a simple wizard, illustrating the WizardConsole.

In the above illustration, the WizardConsole is the panel that contains all of the components of the wizard. The WizardConsole uses the WizardConsoleLayout layout manager to place the image panel, the wizard panel, and the navigation panel.

The WizardConsole is used if the wizard is executed in graphics mode. The CommandLineConsole is used if the wizard is executed in command line mode. The WizardConsole object is the interface between the user and the client environment.


Constructor Index

 o WizardConsole(Frame, WizardState)
Creates a WizardConsole with the specified frame and the specified WizardState.

Method Index

 o displayQuery(Object, String, String, String[], String[])
Display a query to the user.
 o displayQuery(Object, String, String[], String[])
Display a query to the user.
 o exit()
Exit the applet/application. Deprecated.
 o exit(int)
Exit the applet/application with the specified exit status.
 o getWizardSize()
Gets the size of the wizard frame.
 o getWizardState()
Returns the state of the wizard frame.
 o hasGUI()
The WizardConsole has a gui.
 o main(String[])
This main method is only provided for testing outside of the wizard archive.
 o removeImagePanel()
 o run()
Initialize the wizard console in a separate thread.
 o setFrameTitle(String)
Sets the title of the containing Frame
 o setIconImage(Image)
Sets the icon for the wizard.
 o setWizardSize(Dimension)
Sets the size of the wizard frame.
 o setWizardState(WizardState)
Sets the WizardState reference of the wizard console
 o windowActivated(WindowEvent)
Invoked when a window is activated.
 o windowClosed(WindowEvent)
Invoked when a window has been closed.
 o windowClosing(WindowEvent)
Invoked when a window is in the process of being closed.
 o windowDeactivated(WindowEvent)
Invoked when a window is de-activated.
 o windowDeiconified(WindowEvent)
Invoked when a window is de-iconified.
 o windowIconified(WindowEvent)
Invoked when a window is iconified.
 o windowOpened(WindowEvent)
Invoked when a window has been opened.

Constructors

 o WizardConsole
 public WizardConsole(Frame wizardFrame,
                      WizardState wizardState)
Creates a WizardConsole with the specified frame and the specified WizardState.

Parameters:
wizardFrame - The Frame object that this WizardConsole will be displayed within.
wizardState - The connection to the server.

Methods

 o run
 public void run()
Initialize the wizard console in a separate thread. This frees the WizardState constructor.

 o setFrameTitle
 public void setFrameTitle(String title)
Sets the title of the containing Frame

 o setIconImage
 public void setIconImage(Image icon)
Sets the icon for the wizard.

Parameters:
icon - The icon image to be displayed.
 o setWizardSize
 public void setWizardSize(Dimension size)
Sets the size of the wizard frame.

Parameters:
size - The new size for the wizard frame.
 o getWizardSize
 public Dimension getWizardSize()
Gets the size of the wizard frame.

 o windowOpened
 public void windowOpened(WindowEvent e)
Invoked when a window has been opened.

 o removeImagePanel
 public void removeImagePanel()
 o windowClosing
 public void windowClosing(WindowEvent e)
Invoked when a window is in the process of being closed. The close operation can be overridden at this point.

 o windowClosed
 public void windowClosed(WindowEvent e)
Invoked when a window has been closed.

 o windowIconified
 public void windowIconified(WindowEvent e)
Invoked when a window is iconified.

 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
Invoked when a window is de-iconified.

 o windowActivated
 public void windowActivated(WindowEvent e)
Invoked when a window is activated.

 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
Invoked when a window is de-activated.

 o exit
 public void exit()
Note: exit() is deprecated. Programs should now use exit(int).

Exit the applet/application.

 o exit
 public void exit(int status)
Exit the applet/application with the specified exit status. By convention, a non-zero status indicates abnormal termination. This method never returns.

Parameters:
status - The exit status.
 o displayQuery
 public void displayQuery(Object target,
                          String title,
                          String message,
                          String buttons[],
                          String methods[])
Display a query to the user. When a selection is made, the corresponding method will be called on the target.

Parameters:
target - The object to call when a selection from the dialog is made.
title - The title of the displayed query.
message - The message to be displayed to the user.
buttons - The buttons (button labels) offered to the user to select from.
methods - A list of methods (in the same order as the list of buttons) that will be called when a dialog selection is made.
 o displayQuery
 public void displayQuery(Object target,
                          String message,
                          String buttons[],
                          String methods[])
Display a query to the user. When a selection is made, the corresponding method will be called on the target.

Parameters:
target - The object to call when a selection from the dialog is made.
title - The title of the displayed query.
message - The message to be displayed to the user.
buttons - The buttons (button labels) offered to the user to select from.
methods - A list of methods (in the same order as the list of buttons) that will be called when a dialog selection is made.
 o setWizardState
 public void setWizardState(WizardState state)
Sets the WizardState reference of the wizard console

Parameters:
state - The new state for the wizard console.
 o getWizardState
 public WizardState getWizardState()
Returns the state of the wizard frame.

 o hasGUI
 public boolean hasGUI()
The WizardConsole has a gui. Indicate that images should be created.

 o main
 public static void main(String args[])
This main method is only provided for testing outside of the wizard archive. This should be removed before FCS.


All Packages  Class Hierarchy  This Package  Previous  Next  Index