mixconfig.ConfigFrame Class Reference

Inherits javax::swing::JPanel.

List of all members.

Public Member Functions

 ConfigFrame (JFrame parent) throws IOException

Protected Member Functions

void load ()
void setActivePanel (Class a_panelClass)
void reset ()
void setConfiguration (MixConfiguration m) throws IOException
String[] check () throws IOException

Private Attributes

JTabbedPane m_tabbedPane
MixConfigPanel[] m_panels


Detailed Description

The Frame of the MixConfig Application.

Constructor & Destructor Documentation

mixconfig.ConfigFrame.ConfigFrame ( JFrame  parent  )  throws IOException


Member Function Documentation

void mixconfig.ConfigFrame.load (  )  [protected]

Call the load-method of each Panel This is necessary if you change the view (expert|wizard)

References mixconfig.panels.MixConfigPanel.load(), mixconfig.ConfigFrame.m_panels, mixconfig.ConfigFrame.m_tabbedPane, and mixconfig.ConfigFrame.reset().

Referenced by mixconfig.Menu.actionPerformed().

void mixconfig.ConfigFrame.setActivePanel ( Class  a_panelClass  )  [protected]

Decision which panel active at the moment Necessary if you change from Wizard -> Expert view

References mixconfig.ConfigFrame.m_panels, and mixconfig.ConfigFrame.m_tabbedPane.

Referenced by mixconfig.Menu.actionPerformed().

void mixconfig.ConfigFrame.reset (  )  [protected]

Clears all data in the panels and restarts with a new configuration object.

Exceptions:
IOException If a communication error occurs
XMLParseException If an XML error occurs

References mixconfig.ConfigFrame.m_panels, and mixconfig.ConfigFrame.m_tabbedPane.

Referenced by mixconfig.Menu.actionPerformed(), mixconfig.ConfigFrame.load(), and mixconfig.Menu.reset().

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

Notifies the configuration panels about a possibly new underlying configuration object and makes them load the config data from the configuration object into their controls.

Parameters:
m The configuration object to be set
Exceptions:
IOException If an error occurs while loading data from the config object into a panel

References mixconfig.ConfigFrame.m_panels, and mixconfig.panels.MixConfigPanel.setConfiguration().

Referenced by mixconfig.Menu.actionPerformed(), mixconfig.ConfigFrame.check(), mixconfig.ConfigFrame.ConfigFrame(), and mixconfig.Menu.reset().

String [] mixconfig.ConfigFrame.check (  )  throws IOException [protected]

Makes all of the configuration panels check their data for inconsistencies and returns possible error and warning messages as an array of Strings.

Returns:
An array of String containing possible error messages

References mixconfig.panels.MixConfigPanel.check(), mixconfig.ConfigFrame.m_panels, and mixconfig.ConfigFrame.setConfiguration().

Referenced by mixconfig.Menu.actionPerformed(), and mixconfig.Menu.ignoreInconsistenciesForSaving().


Member Data Documentation

JTabbedPane mixconfig.ConfigFrame.m_tabbedPane [private]


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

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