mixconfig.panels.GeneralPanel Class Reference

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

List of all members.

Public Member Functions

 GeneralPanel ()
void setConfiguration (MixConfiguration a_conf) throws IOException
void load () throws IOException
void tableChanged (TableModelEvent e)
void stateChanged (ChangeEvent a_event)
void actionPerformed (ActionEvent ae)
Vector< String > check ()
String getHelpContext ()
Container getHelpExtractionDisplayContext ()

Static Public Attributes

static final String XMLPATH_GENERAL = "General"
static final String XMLPATH_GENERAL_MIXTYPE = XMLPATH_GENERAL + "/MixType"
static final String XMLPATH_GENERAL_CASCADENAME = XMLPATH_GENERAL + "/CascadeName"
static final String XMLPATH_GENERAL_MIN_CASCADELENGTH = XMLPATH_GENERAL + "/MinCascadeLength"
static final String XMLPATH_GENERAL_MIXNAME = XMLPATH_GENERAL + "/MixName"
static final String XMLPATH_GENERAL_OPERATORNAME = XMLPATH_GENERAL + "/OperatorName"
static final String XMLPATH_GENERAL_MIXID = XMLPATH_GENERAL + "/MixID"
static final String XMLPATH_AUTOCONFIGURATION = "Network/InfoService/AllowAutoConfiguration"
static final String XML_ATTRIBUTE_FALLBACK = "fallback"
static final String XML_ATTRIBUTE_PAYMENT = "payment"
static final String PSEUDO_CASCADE_NAME = "******Dynamic cascade bug*******"

Protected Member Functions

void enableComponents ()
void load (JTextField a_textField)
void load (JCheckBox a_cbx)
void load (JComboBox a_combx)
void save (JTextField a_textField)
void save (JCheckBox a_cbx)
void save (JComboBox a_combx)

Protected Attributes

int m_mixTypeRow

Private Member Functions

void initInfoServicesTable (GridBagConstraints c)
void initListenerInterfacesTable (GridBagConstraints c)
boolean isFirstDynamicMix ()
void setMixOnCDInfo (boolean a_configuredByMixOnCD)

Private Attributes

JComboBox m_combxMixType
JComboBox m_combxConfiguration
JComboBox m_combxCascadeLength
JCheckBox m_cbxDynamicFallback
JTextField m_tfCascadeName
JLabel m_cascadeNameLabel
JLabel m_lblCascadeLength
TitledGridBagPanel m_panelGeneralSettings
JLabel m_lblMixType
JCheckBox m_cbxPayment
JCheckBox m_cbxIgnoreOwnName
JPanel m_infoServicePanel
JTable m_infoServiceTable
InfoServiceTableModel m_infoServiceModel
JPanel m_listenerPanel
JTable m_listenerTable
IncomingConnectionTableModel m_listenerModel

Static Private Attributes

static final String MSG_MIX_TYPE = "Mix Type"
static final String MSG_MIX_NAME = "Mix Name"
static final String MSG_CASCADE_NAME = "Cascade Name"
static final String MSG_FIRST_MIX = GeneralPanel.class.getName() + "_firstMix"
static final String MSG_MIDDLE_MIX = GeneralPanel.class.getName() + "_middleMix"
static final String MSG_LAST_MIX = GeneralPanel.class.getName() + "_lastMix"
static final String MSG_CONFIGURATION_STATIC = GeneralPanel.class.getName() + "_configStatic"
static final String MSG_CONFIGURATION_DYNAMIC = GeneralPanel.class.getName() + "_configDynamic"
static final String MSG_ALLOW_DYNAMIC_FALLBACK = GeneralPanel.class.getName() + "_allowDynamicFallback"
static final String MSG_ENABLE_PAYMENT = GeneralPanel.class.getName() + "_enablePayment"
static final String MSG_EXPERIMENTAL_FEATURE = GeneralPanel.class.getName() + "_experimentalFeature"
static final String MSG_TOO_MANY_INTERFACES = GeneralPanel.class.getName() + "_tooManyInterfaces"
static final String ACTION_UPDATE_IS = "UpdateInfoServices"


Constructor & Destructor Documentation

mixconfig.panels.GeneralPanel.GeneralPanel (  ) 

Construct the panel for general Mix settings.

Todo:
not needed any more; remove...

Todo:
not needed any more; remove...

References mixconfig.panels.MixConfigPanel.getInitialConstraints(), mixconfig.panels.GeneralPanel.initInfoServicesTable(), mixconfig.panels.GeneralPanel.initListenerInterfacesTable(), mixconfig.panels.GeneralPanel.m_cascadeNameLabel, mixconfig.panels.GeneralPanel.m_cbxDynamicFallback, mixconfig.panels.GeneralPanel.m_cbxIgnoreOwnName, mixconfig.panels.GeneralPanel.m_cbxPayment, mixconfig.panels.GeneralPanel.m_combxCascadeLength, mixconfig.panels.GeneralPanel.m_combxConfiguration, mixconfig.panels.GeneralPanel.m_combxMixType, mixconfig.panels.GeneralPanel.m_lblCascadeLength, mixconfig.panels.GeneralPanel.m_lblMixType, mixconfig.panels.GeneralPanel.m_mixTypeRow, mixconfig.panels.GeneralPanel.m_panelGeneralSettings, mixconfig.panels.GeneralPanel.m_tfCascadeName, mixconfig.panels.GeneralPanel.MSG_ALLOW_DYNAMIC_FALLBACK, mixconfig.panels.GeneralPanel.MSG_CASCADE_NAME, mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_STATIC, mixconfig.panels.GeneralPanel.MSG_ENABLE_PAYMENT, mixconfig.panels.GeneralPanel.MSG_EXPERIMENTAL_FEATURE, mixconfig.panels.GeneralPanel.MSG_FIRST_MIX, mixconfig.panels.GeneralPanel.MSG_LAST_MIX, mixconfig.panels.GeneralPanel.MSG_MIDDLE_MIX, mixconfig.panels.GeneralPanel.MSG_MIX_TYPE, mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_FALLBACK, mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_PAYMENT, mixconfig.panels.GeneralPanel.XMLPATH_AUTOCONFIGURATION, mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_CASCADENAME, mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIN_CASCADELENGTH, and mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXTYPE.


Member Function Documentation

void mixconfig.panels.GeneralPanel.initInfoServicesTable ( GridBagConstraints  c  )  [private]

void mixconfig.panels.GeneralPanel.initListenerInterfacesTable ( GridBagConstraints  c  )  [private]

boolean mixconfig.panels.GeneralPanel.isFirstDynamicMix (  )  [private]

void mixconfig.panels.GeneralPanel.setMixOnCDInfo ( boolean  a_configuredByMixOnCD  )  [private]

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

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

This 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.GeneralPanel.m_tfCascadeName, and mixconfig.panels.GeneralPanel.PSEUDO_CASCADE_NAME.

void mixconfig.panels.GeneralPanel.load ( JCheckBox  a  )  [protected]

void mixconfig.panels.GeneralPanel.load ( JComboBox  a  )  [protected]

Loads the value with the same name as the specified combo box from the configuration object and sets its value accordingly. If the value in the configuration is not an int, a value of 0 (zero) is assumed by default.

Parameters:
a A combo box

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.getMixType(), mixconfig.MixConfiguration.isAutoConfigurationAllowed(), mixconfig.panels.GeneralPanel.m_cbxDynamicFallback, mixconfig.panels.GeneralPanel.m_combxCascadeLength, mixconfig.panels.GeneralPanel.m_combxConfiguration, mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_DYNAMIC, and mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_STATIC.

void mixconfig.panels.GeneralPanel.save ( JTextField  a_textField  )  [protected]

This is needed only because of a bug in the dynamic configuration of the mix.

Parameters:
a_textField JTextField

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.GeneralPanel.isFirstDynamicMix(), mixconfig.panels.GeneralPanel.m_tfCascadeName, and mixconfig.panels.GeneralPanel.PSEUDO_CASCADE_NAME.

void mixconfig.panels.GeneralPanel.save ( JCheckBox  a  )  [protected]

void mixconfig.panels.GeneralPanel.save ( JComboBox  a  )  [protected]

Saves the values of a combo box to the configuration object. The value is only saved if the component is currently enabled, otherwise, the element with the same XML path as the component's name is removed from the XML structure.

Parameters:
a A combo box

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.GeneralPanel.m_cbxDynamicFallback, mixconfig.panels.GeneralPanel.m_combxCascadeLength, mixconfig.panels.GeneralPanel.m_combxConfiguration, mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_STATIC, mixconfig.MixConfiguration.removeNode(), and mixconfig.MixConfiguration.setValue().

void mixconfig.panels.GeneralPanel.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.

void mixconfig.panels.GeneralPanel.load (  )  throws IOException

Loads the attribute values from the configuration object into the panel's controls. This method iterates through all components of the panel and reads their names using the getName() method. If the name is not null, it retrieves the configuration attribute with the same name and sets the value of the component (text field, combo box etc.) according to the attribute value.

Exceptions:
IOException If loading an attribute from the configuration fails

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), and mixconfig.panels.GeneralPanel.setMixOnCDInfo().

Referenced by mixconfig.panels.GeneralPanel.stateChanged().

void mixconfig.panels.GeneralPanel.tableChanged ( TableModelEvent  e  ) 

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

void mixconfig.panels.GeneralPanel.actionPerformed ( ActionEvent  ae  ) 

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

String mixconfig.panels.GeneralPanel.getHelpContext (  ) 

Container mixconfig.panels.GeneralPanel.getHelpExtractionDisplayContext (  ) 


Member Data Documentation

final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL = "General" [static]

final String mixconfig.panels.GeneralPanel.XMLPATH_AUTOCONFIGURATION = "Network/InfoService/AllowAutoConfiguration" [static]

final String mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_FALLBACK = "fallback" [static]

final String mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_PAYMENT = "payment" [static]

final String mixconfig.panels.GeneralPanel.MSG_MIX_TYPE = "Mix Type" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_MIX_NAME = "Mix Name" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_CASCADE_NAME = "Cascade Name" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_FIRST_MIX = GeneralPanel.class.getName() + "_firstMix" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_MIDDLE_MIX = GeneralPanel.class.getName() + "_middleMix" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_LAST_MIX = GeneralPanel.class.getName() + "_lastMix" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_STATIC = GeneralPanel.class.getName() + "_configStatic" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_CONFIGURATION_DYNAMIC = GeneralPanel.class.getName() + "_configDynamic" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_ALLOW_DYNAMIC_FALLBACK = GeneralPanel.class.getName() + "_allowDynamicFallback" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_ENABLE_PAYMENT = GeneralPanel.class.getName() + "_enablePayment" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_EXPERIMENTAL_FEATURE = GeneralPanel.class.getName() + "_experimentalFeature" [static, private]

final String mixconfig.panels.GeneralPanel.MSG_TOO_MANY_INTERFACES = GeneralPanel.class.getName() + "_tooManyInterfaces" [static, private]

final String mixconfig.panels.GeneralPanel.ACTION_UPDATE_IS = "UpdateInfoServices" [static, private]

final String mixconfig.panels.GeneralPanel.PSEUDO_CASCADE_NAME = "******Dynamic cascade bug*******" [static]


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