mixconfig.wizard.ConfigWizardPanel Class Reference

Inherits javax::swing::JPanel, javax::swing::event::ChangeListener, and JAPHelpContext::IHelpContext.

List of all members.

Public Member Functions

 ConfigWizardPanel () throws IOException
void checkAndForward ()
void doForward ()
void back ()
String getHelpContext ()
Container getCurrentPage ()
int getState ()
void finish ()
void addChangeListener (ChangeListener cl)
void removeChangeListener (ChangeListener cl)
void stateChanged (ChangeEvent e)
Vector< String > check ()
int getCurrentPageNr ()
int getPageCount ()
MixConfigPanel getPage (int a_number)
Container getHelpExtractionDisplayContext ()

Static Public Attributes

static final int STATE_GO = 0
static final int STATE_BEGIN = 1
static final int STATE_END = 2
static final int STATE_STOP = 4
static final int STATE_FINISHED = 8 | STATE_BEGIN | STATE_END
static final int STATE_READY_TO_FINISH = STATE_END | STATE_GO

Protected Member Functions

void fireStateChanged ()
int getNewState ()
void load ()
void reset ()
void setConfiguration (MixConfiguration m) throws IOException

Private Member Functions

void checkState ()

Private Attributes

int m_currentPage = 0
CardLayout m_layout = new CardLayout(4, 4)
MixConfigPanel m_pages []
Vector< ChangeListener > m_changeListener = new Vector<ChangeListener>()
int m_state = STATE_BEGIN
String[] m_errors = new String[0]


Detailed Description

A class that represents a wizard. Note: This class is based on a part of ronin's wizard API.
Author:
ronin <ronin2@web.de>

renner


Constructor & Destructor Documentation

mixconfig.wizard.ConfigWizardPanel.ConfigWizardPanel (  )  throws IOException


Member Function Documentation

void mixconfig.wizard.ConfigWizardPanel.checkAndForward (  ) 

void mixconfig.wizard.ConfigWizardPanel.doForward (  ) 

void mixconfig.wizard.ConfigWizardPanel.back (  ) 

String mixconfig.wizard.ConfigWizardPanel.getHelpContext (  ) 

Container mixconfig.wizard.ConfigWizardPanel.getCurrentPage (  ) 

Gets the current page of the wizard.

Returns:
the container currently displayed as a page in the wizard.

References mixconfig.wizard.ConfigWizardPanel.m_currentPage, and mixconfig.wizard.ConfigWizardPanel.m_pages.

Referenced by mixconfig.wizard.ConfigWizard.getCurrentPageClass().

int mixconfig.wizard.ConfigWizardPanel.getState (  ) 

Gets the current state of the wizard. This method also calls checkState().

Returns:
the current state of the wizard

References mixconfig.wizard.ConfigWizardPanel.checkState(), and mixconfig.wizard.ConfigWizardPanel.m_state.

Referenced by mixconfig.wizard.ConfigWizard.actionPerformed().

void mixconfig.wizard.ConfigWizardPanel.finish (  ) 

Finishes the wizard. The object that is displaying this wizard should call this method when it wants this wizard to conclude and perform the operation that it has prepared.
This implementation sets the state to STATE_FINISHED and calls fireStateChanged().
Subclasses should override this method to implement their own way of finishing the wizard. The overridden method should call this method, or set the wizard's state to STATE_FINISHED and call fireStateChanged().

References mixconfig.wizard.ConfigWizardPanel.fireStateChanged(), mixconfig.wizard.ConfigWizardPanel.m_state, and mixconfig.wizard.ConfigWizardPanel.STATE_BEGIN.

Referenced by mixconfig.wizard.ConfigWizard.actionPerformed().

void mixconfig.wizard.ConfigWizardPanel.addChangeListener ( ChangeListener  cl  ) 

Adds a ChageListener to receive ChangeEvents.

Parameters:
cl the ChangeListener to be added

References mixconfig.wizard.ConfigWizardPanel.m_changeListener.

Referenced by mixconfig.wizard.ConfigWizard.ConfigWizard().

void mixconfig.wizard.ConfigWizardPanel.removeChangeListener ( ChangeListener  cl  ) 

Removes the specified ChageListener from the list of ChangeListeners registered with this component.

Parameters:
cl the ChangeListener to be removed

References mixconfig.wizard.ConfigWizardPanel.m_changeListener.

void mixconfig.wizard.ConfigWizardPanel.stateChanged ( ChangeEvent  e  ) 

Called when the state of this wizard changes. This implementation calls fireStateChanged() to re-cast the event.

Parameters:
e a ChangeEvent

References mixconfig.wizard.ConfigWizardPanel.fireStateChanged().

Referenced by mixconfig.wizard.ConfigWizardPanel.fireStateChanged().

Vector<String> mixconfig.wizard.ConfigWizardPanel.check (  ) 

void mixconfig.wizard.ConfigWizardPanel.fireStateChanged (  )  [protected]

int mixconfig.wizard.ConfigWizardPanel.getNewState (  )  [protected]

void mixconfig.wizard.ConfigWizardPanel.load (  )  [protected]

void mixconfig.wizard.ConfigWizardPanel.reset (  )  [protected]

void mixconfig.wizard.ConfigWizardPanel.checkState (  )  [private]

void mixconfig.wizard.ConfigWizardPanel.setConfiguration ( MixConfiguration  m  )  throws IOException [protected]

Set the specified configuration object. If the object is null, the object returned by mixconfig.MixConfig.getMixConfiguration() is set instead.
This method will also call the setConfiguration(MixConfiguration) method of all contained mixconfig.MixConfigPanel instances.

Parameters:
m A MixConfiguration object to be edited in the wizard
Exceptions:
IOException If an I/O error occurs while setting the configuration

References mixconfig.wizard.ConfigWizardPanel.m_pages.

Referenced by mixconfig.wizard.ConfigWizardPanel.ConfigWizardPanel(), and mixconfig.wizard.ConfigWizard.setConfiguration().

int mixconfig.wizard.ConfigWizardPanel.getCurrentPageNr (  ) 

Get the current page number within the wizard

Returns:
the current page number of the wizard

References mixconfig.wizard.ConfigWizardPanel.m_currentPage.

Referenced by mixconfig.wizard.ConfigWizard.getCurrentPageNr(), and mixconfig.wizard.ConfigWizardPanel.load().

int mixconfig.wizard.ConfigWizardPanel.getPageCount (  ) 

Get the total amount of pages in this wizard

Returns:
int

References mixconfig.wizard.ConfigWizardPanel.m_pages.

Referenced by mixconfig.wizard.ConfigWizard.getPageCount().

MixConfigPanel mixconfig.wizard.ConfigWizardPanel.getPage ( int  a_number  ) 

Container mixconfig.wizard.ConfigWizardPanel.getHelpExtractionDisplayContext (  ) 


Member Data Documentation

indicates a state in which the wizard may continue to the next page

Referenced by mixconfig.wizard.ConfigWizardPanel.getNewState().

indicates that the wizard cannot continue to the next page

Referenced by mixconfig.wizard.ConfigWizardPanel.checkAndForward(), and mixconfig.wizard.ConfigWizardPanel.getNewState().

indicates that the wizard is finished

indicates that the wizard may be finished now

Referenced by mixconfig.wizard.ConfigWizardPanel.getNewState().

CardLayout mixconfig.wizard.ConfigWizardPanel.m_layout = new CardLayout(4, 4) [private]

Vector<ChangeListener> mixconfig.wizard.ConfigWizardPanel.m_changeListener = new Vector<ChangeListener>() [private]

String [] mixconfig.wizard.ConfigWizardPanel.m_errors = new String[0] [private]


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:48 2009 for MixConfig by  doxygen 1.5.6