mixconfig.panels.CascadePanel Class Reference

Inherits mixconfig::panels::MixConfigPanel, java::awt::event::ActionListener, javax::swing::event::ListSelectionListener, and javax::swing::event::ChangeListener.

List of all members.

Public Member Functions

 CascadePanel ()
Vector< String > check ()
void actionPerformed (ActionEvent e)
void valueChanged (ListSelectionEvent e)
String getHelpContext ()
void setConfiguration (MixConfiguration a_mixConf) throws IOException
void stateChanged (ChangeEvent a_event)
Container getHelpExtractionDisplayContext ()

Protected Member Functions

void enableComponents ()
void load (JTextField a_textField)
void load (JTable a_table)

Private Member Functions

Element recvMixList () throws MalformedURLException, ParserConfigurationException, IOException, SAXException

Static Private Member Functions

static void moveMix (JTable src, JTable dest)

Private Attributes

JTable m_availableMixTable
JTable m_configuredMixTable
JButton m_moveMixUpButton
JButton m_moveMixDownButton
JButton m_addMixButton
JButton m_remMixButton
JButton m_recvMixListButton
JTextField m_tfCascadeName

Static Private Attributes

static final String IMG_ARROW_DOWN = CascadePanel.class.getName() + "_downarrow.gif"
static final String IMG_ARROW_UP = CascadePanel.class.getName() + "_uparrow.gif"

Classes

class  MixListTableModel


Detailed Description

The CascadePanel is a panel that lets the user edit settings concerning an entire mix cascade. It should only be made visible when the mix that is being configured is to become the last mix in its cascade.
The panel shows two tables: A list of available mixes, and a list of mixes that are currently part of the cascade.
The user may use the two arrow buttons between the tables to add and remove entries from the cascade. The buttons to the left of the second table are there to re-arrange the mixes within the cascade.
Above the tables, there is a text field where the name of the cascade must be entered, and a button that makes the panel connect to the InfoService host (if configured) to fetch the list of available mixes (a mix is marked available by the InfoService if it has itself registered as on-line, but has not yet been assigned to any cascade).

Constructor & Destructor Documentation

mixconfig.panels.CascadePanel.CascadePanel (  ) 


Member Function Documentation

Vector<String> mixconfig.panels.CascadePanel.check (  )  [virtual]

Check the panel for inconsistencies and return a java.util.Vector object containing possible warnings and error messages

Returns:
Possible error and warning messages

Implements mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.getValue(), mixconfig.panels.CascadePanel.m_configuredMixTable, and mixconfig.MixConfiguration.MIXTYPE_LAST.

void mixconfig.panels.CascadePanel.actionPerformed ( ActionEvent  e  ) 

void mixconfig.panels.CascadePanel.valueChanged ( ListSelectionEvent  e  ) 

String mixconfig.panels.CascadePanel.getHelpContext (  ) 

static void mixconfig.panels.CascadePanel.moveMix ( JTable  src,
JTable  dest 
) [static, private]

Moves the currently selected entry from one table to another.

Parameters:
src The source table from which the entry is to be moved away
dest The destination table

References mixconfig.panels.CascadePanel.MixListTableModel.addRow(), mixconfig.panels.CascadePanel.MixListTableModel.getRow(), and mixconfig.panels.CascadePanel.MixListTableModel.removeRow().

Referenced by mixconfig.panels.CascadePanel.actionPerformed().

void mixconfig.panels.CascadePanel.enableComponents (  )  [protected, virtual]

Element mixconfig.panels.CascadePanel.recvMixList (  )  throws MalformedURLException, ParserConfigurationException, IOException, SAXException [private]

Fetches the list of available mixes from the InfoService host and returns it as an XML/DOM element.

Exceptions:
MalformedURLException If the URL pointing to the InfoService is invalid
ParserConfigurationException If an error occurs during parsing the answer from the InfoService
IOException If an error occurs during communication
SAXException If an error occurs during parsing the answer from the InfoService
Returns:
An XML/DOM element containing the list of mixes

References mixconfig.panels.MixConfigPanel.getConfiguration(), and mixconfig.MixConfiguration.getValue().

Referenced by mixconfig.panels.CascadePanel.actionPerformed().

void mixconfig.panels.CascadePanel.load ( JTextField  a_textField  )  [protected]

Todo:
This implementation is only needed because of a bug in the dynamic configuration of the mix.
Parameters:
a_textField JTextField

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.CascadePanel.m_tfCascadeName.

void mixconfig.panels.CascadePanel.load ( JTable  table  )  [protected]

Load the value with the same name as the specified table from the configuration object and set its value accordingly.

Parameters:
a table

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.getDocument(), mixconfig.MixConfiguration.getValue(), mixconfig.panels.CascadePanel.m_availableMixTable, and mixconfig.panels.CascadePanel.m_configuredMixTable.

void mixconfig.panels.CascadePanel.setConfiguration ( MixConfiguration  a_mixConf  )  throws IOException

Informs the panel about a new Mix configuration and makes it load the attribute values from the configuration object into the text fields, combo boxes etc.

Parameters:
a_mixConf The new configuration
Exceptions:
IOException If an error occurs while transferring the data

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.MIXTYPE_LAST, and mixconfig.panels.MixConfigPanel.setEnabled().

void mixconfig.panels.CascadePanel.stateChanged ( ChangeEvent  a_event  ) 

Container mixconfig.panels.CascadePanel.getHelpExtractionDisplayContext (  ) 


Member Data Documentation

final String mixconfig.panels.CascadePanel.IMG_ARROW_DOWN = CascadePanel.class.getName() + "_downarrow.gif" [static, private]

final String mixconfig.panels.CascadePanel.IMG_ARROW_UP = CascadePanel.class.getName() + "_uparrow.gif" [static, private]

A button that makes the panel fetch a list of available mixes from the InfoService host

Referenced by mixconfig.panels.CascadePanel.actionPerformed(), mixconfig.panels.CascadePanel.CascadePanel(), and mixconfig.panels.CascadePanel.enableComponents().


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