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" |
mixconfig.panels.GeneralPanel.GeneralPanel | ( | ) |
Construct the panel for general Mix settings.
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.
void mixconfig.panels.GeneralPanel.initInfoServicesTable | ( | GridBagConstraints | c | ) | [private] |
Initialize a table for visualization of InfoServices
c | GridBagConstraints |
References mixconfig.panels.GeneralPanel.ACTION_UPDATE_IS, mixconfig.infoservice.InfoServiceTableModel.getData(), mixconfig.panels.GeneralPanel.m_infoServiceModel, mixconfig.panels.GeneralPanel.m_infoServicePanel, and mixconfig.panels.GeneralPanel.m_infoServiceTable.
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
void mixconfig.panels.GeneralPanel.initListenerInterfacesTable | ( | GridBagConstraints | c | ) | [private] |
Init the table for ListenerInterfaces
c | GridBagConstraints |
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.MixConfiguration.isMixOnCDEnabled(), mixconfig.panels.GeneralPanel.m_listenerModel, mixconfig.panels.GeneralPanel.m_listenerPanel, and mixconfig.panels.GeneralPanel.m_listenerTable.
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
boolean mixconfig.panels.GeneralPanel.isFirstDynamicMix | ( | ) | [private] |
void mixconfig.panels.GeneralPanel.setMixOnCDInfo | ( | boolean | a_configuredByMixOnCD | ) | [private] |
Set the information in "Listener Interfaces" according to MixOnCD
References mixconfig.network.ConnectionTableModel.changeData(), mixconfig.network.ConnectionData.clone(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.network.ConnectionData.getHostname(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.network.ConnectionData.getTransport(), mixconfig.network.ConnectionData.isVirtual(), mixconfig.panels.GeneralPanel.m_listenerModel, and mixconfig.network.ConnectionData.setHostname().
Referenced by mixconfig.panels.GeneralPanel.load(), and mixconfig.panels.GeneralPanel.stateChanged().
void mixconfig.panels.GeneralPanel.enableComponents | ( | ) | [protected, virtual] |
Enables used and disables unused components. Some configuration values are mutually exclusive; the panels must ensure that of two components corresponding to contradictory attributes, only one at a time is enabled.
Implements mixconfig.panels.MixConfigPanel.
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.getMixType(), mixconfig.panels.GeneralPanel.isFirstDynamicMix(), mixconfig.panels.GeneralPanel.m_cascadeNameLabel, mixconfig.panels.GeneralPanel.m_cbxDynamicFallback, mixconfig.panels.GeneralPanel.m_combxCascadeLength, mixconfig.panels.GeneralPanel.m_lblCascadeLength, mixconfig.panels.GeneralPanel.m_tfCascadeName, mixconfig.MixConfiguration.MIXTYPE_LAST, and mixconfig.panels.MixConfigPanel.save().
Referenced by mixconfig.panels.GeneralPanel.tableChanged().
void mixconfig.panels.GeneralPanel.load | ( | JTextField | a_textField | ) | [protected] |
This is only needed because of a bug in the dynamic configuration of the mix.
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] |
Loads the value with the same name as the specified checkbox from the configuration object and sets its value accordingly.
a | A check box |
Reimplemented from mixconfig.panels.MixConfigPanel.
References mixconfig.MixConfiguration.getAttributeValue(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.GeneralPanel.m_cbxIgnoreOwnName, mixconfig.panels.GeneralPanel.m_cbxPayment, mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_PAYMENT, and mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXTYPE.
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.
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.
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] |
Saves the values of a checkbox to the configuration object. If the component is currently disabled, a value of false
is saved no matter what the selected state of the checkbox is.
a | A checkbox |
Reimplemented from mixconfig.panels.MixConfigPanel.
References mixconfig.MixConfiguration.getAttributeValue(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.GeneralPanel.m_cbxDynamicFallback, mixconfig.panels.GeneralPanel.m_cbxIgnoreOwnName, mixconfig.panels.GeneralPanel.m_cbxPayment, mixconfig.MixConfiguration.removeAttribute(), mixconfig.MixConfiguration.setAttribute(), mixconfig.MixConfiguration.setValue(), mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_FALLBACK, mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_PAYMENT, mixconfig.panels.GeneralPanel.XMLPATH_AUTOCONFIGURATION, and mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXTYPE.
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.
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.
a_mixConf | The new configuration |
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.
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 | ) |
References mixconfig.panels.GeneralPanel.ACTION_UPDATE_IS, mixconfig.infoservice.InfoServiceTableModel.addData(), mixconfig.infoservice.InfoServiceTableModel.clear(), mixconfig.network.ConnectionTableModel.deleteData(), mixconfig.infoservice.InfoServiceTableModel.deleteData(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.network.ConnectionData.getHostname(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.MixConfiguration.isMixOnCDEnabled(), mixconfig.panels.GeneralPanel.m_infoServiceModel, mixconfig.panels.GeneralPanel.m_infoServiceTable, mixconfig.panels.GeneralPanel.m_listenerModel, and mixconfig.panels.GeneralPanel.m_listenerTable.
Vector<String> mixconfig.panels.GeneralPanel.check | ( | ) | [virtual] |
Check the panel for inconsistencies and return a java.util.Vector
object containing possible warnings and error messages
Implements mixconfig.panels.MixConfigPanel.
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.infoservice.InfoServiceTableModel.getData(), mixconfig.network.ConnectionData.getHostname(), mixconfig.infoservice.InfoServiceData.getListenerInterface(), mixconfig.MixConfiguration.getMixType(), mixconfig.infoservice.InfoServiceData.getNumberOfListeners(), mixconfig.network.ConnectionData.getPort(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.infoservice.InfoServiceTableModel.getRowCount(), mixconfig.network.ConnectionData.getTransport(), mixconfig.panels.GeneralPanel.isFirstDynamicMix(), mixconfig.network.ConnectionData.isHidden(), mixconfig.network.ConnectionData.isVirtual(), mixconfig.panels.GeneralPanel.m_infoServiceModel, mixconfig.panels.GeneralPanel.m_listenerModel, and mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_CASCADENAME.
String mixconfig.panels.GeneralPanel.getHelpContext | ( | ) |
Container mixconfig.panels.GeneralPanel.getHelpExtractionDisplayContext | ( | ) |
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL = "General" [static] |
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXTYPE = XMLPATH_GENERAL + "/MixType" [static] |
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_CASCADENAME = XMLPATH_GENERAL + "/CascadeName" [static] |
Referenced by mixconfig.panels.GeneralPanel.check(), and mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIN_CASCADELENGTH = XMLPATH_GENERAL + "/MinCascadeLength" [static] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXNAME = XMLPATH_GENERAL + "/MixName" [static] |
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_OPERATORNAME = XMLPATH_GENERAL + "/OperatorName" [static] |
final String mixconfig.panels.GeneralPanel.XMLPATH_GENERAL_MIXID = XMLPATH_GENERAL + "/MixID" [static] |
final String mixconfig.panels.GeneralPanel.XMLPATH_AUTOCONFIGURATION = "Network/InfoService/AllowAutoConfiguration" [static] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel(), and mixconfig.panels.GeneralPanel.save().
final String mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_FALLBACK = "fallback" [static] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel(), and mixconfig.panels.GeneralPanel.save().
final String mixconfig.panels.GeneralPanel.XML_ATTRIBUTE_PAYMENT = "payment" [static] |
final String mixconfig.panels.GeneralPanel.MSG_MIX_TYPE = "Mix Type" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_MIX_NAME = "Mix Name" [static, private] |
final String mixconfig.panels.GeneralPanel.MSG_CASCADE_NAME = "Cascade Name" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_FIRST_MIX = GeneralPanel.class.getName() + "_firstMix" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_MIDDLE_MIX = GeneralPanel.class.getName() + "_middleMix" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_LAST_MIX = GeneralPanel.class.getName() + "_lastMix" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
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] |
Referenced by mixconfig.panels.GeneralPanel.load().
final String mixconfig.panels.GeneralPanel.MSG_ALLOW_DYNAMIC_FALLBACK = GeneralPanel.class.getName() + "_allowDynamicFallback" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_ENABLE_PAYMENT = GeneralPanel.class.getName() + "_enablePayment" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
final String mixconfig.panels.GeneralPanel.MSG_EXPERIMENTAL_FEATURE = GeneralPanel.class.getName() + "_experimentalFeature" [static, private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
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] |
Referenced by mixconfig.panels.GeneralPanel.load(), and mixconfig.panels.GeneralPanel.save().
JComboBox mixconfig.panels.GeneralPanel.m_combxMixType [private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
JComboBox mixconfig.panels.GeneralPanel.m_combxConfiguration [private] |
JComboBox mixconfig.panels.GeneralPanel.m_combxCascadeLength [private] |
JCheckBox mixconfig.panels.GeneralPanel.m_cbxDynamicFallback [private] |
JTextField mixconfig.panels.GeneralPanel.m_tfCascadeName [private] |
JLabel mixconfig.panels.GeneralPanel.m_cascadeNameLabel [private] |
JLabel mixconfig.panels.GeneralPanel.m_lblCascadeLength [private] |
TitledGridBagPanel mixconfig.panels.GeneralPanel.m_panelGeneralSettings [private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
JLabel mixconfig.panels.GeneralPanel.m_lblMixType [private] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
int mixconfig.panels.GeneralPanel.m_mixTypeRow [protected] |
Referenced by mixconfig.panels.GeneralPanel.GeneralPanel().
JCheckBox mixconfig.panels.GeneralPanel.m_cbxPayment [private] |
JCheckBox mixconfig.panels.GeneralPanel.m_cbxIgnoreOwnName [private] |
JPanel mixconfig.panels.GeneralPanel.m_infoServicePanel [private] |
Referenced by mixconfig.panels.GeneralPanel.initInfoServicesTable().
JTable mixconfig.panels.GeneralPanel.m_infoServiceTable [private] |
JPanel mixconfig.panels.GeneralPanel.m_listenerPanel [private] |
Referenced by mixconfig.panels.GeneralPanel.initListenerInterfacesTable().
JTable mixconfig.panels.GeneralPanel.m_listenerTable [private] |