Public Member Functions | |
NextMixProxyPanel () | |
void | tableChanged (TableModelEvent e) |
void | focusLost (FocusEvent e) |
Vector< String > | check () |
void | setConfiguration (MixConfiguration a_conf) throws IOException |
void | load () throws IOException |
void | stateChanged (ChangeEvent e) |
void | actionPerformed (ActionEvent a) |
void | componentResized (ComponentEvent e) |
void | componentMoved (ComponentEvent e) |
void | componentShown (ComponentEvent e) |
void | componentHidden (ComponentEvent e) |
Container | getHelpExtractionDisplayContext () |
Protected Member Functions | |
void | enableComponents () |
Private Member Functions | |
void | resetTableModel () |
ConnectionTableModel | createTableModel () |
void | setColumnSizes () |
void | adjustColumnSizes (int[] columnSizes) |
Private Attributes | |
JPanel | m_panel |
JTable | m_table |
ConnectionTableModel | m_model |
JButton | m_bttnAdd |
TitledBorder | m_border |
mixconfig.panels.NextMixProxyPanel.NextMixProxyPanel | ( | ) |
Constructor
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.panels.MixConfigPanel.getDefaultInsets(), mixconfig.panels.NextMixProxyPanel.m_border, mixconfig.panels.NextMixProxyPanel.m_bttnAdd, mixconfig.panels.NextMixProxyPanel.m_model, mixconfig.panels.NextMixProxyPanel.m_panel, mixconfig.panels.NextMixProxyPanel.m_table, mixconfig.MixConfiguration.MIXTYPE_LAST, and mixconfig.panels.NextMixProxyPanel.setColumnSizes().
void mixconfig.panels.NextMixProxyPanel.tableChanged | ( | TableModelEvent | e | ) |
void mixconfig.panels.NextMixProxyPanel.focusLost | ( | FocusEvent | e | ) |
Reimplemented from mixconfig.panels.MixConfigPanel.
References mixconfig.panels.NextMixProxyPanel.enableComponents().
Vector<String> mixconfig.panels.NextMixProxyPanel.check | ( | ) | [virtual] |
Check this panel's validity
Reimplemented from mixconfig.panels.OtherMixPanel.
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.network.ConnectionData.getHostname(), mixconfig.network.ConnectionData.getPort(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.network.ConnectionData.getTransport(), mixconfig.MixConfiguration.isAutoConfigurationAllowed(), and mixconfig.panels.NextMixProxyPanel.m_model.
void mixconfig.panels.NextMixProxyPanel.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.panels.OtherMixPanel.getLocationPanel(), mixconfig.panels.OtherMixPanel.getMixCertPanel(), mixconfig.panels.OtherMixPanel.getMixOperatorCertPanel(), mixconfig.MixConfiguration.getMixType(), mixconfig.panels.OtherMixPanel.getOperatorPanel(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.MixConfiguration.isAutoConfigurationAllowed(), mixconfig.MixConfiguration.isFallbackEnabled(), mixconfig.panels.NextMixProxyPanel.m_border, mixconfig.panels.NextMixProxyPanel.m_bttnAdd, mixconfig.panels.NextMixProxyPanel.m_model, mixconfig.panels.NextMixProxyPanel.m_table, mixconfig.panels.CertPanel.removeCert(), mixconfig.panels.MixConfigPanel.setEnabled(), and mixconfig.panels.CertPanel.setEnabled().
Referenced by mixconfig.panels.NextMixProxyPanel.focusLost(), mixconfig.panels.NextMixProxyPanel.setConfiguration(), mixconfig.panels.NextMixProxyPanel.stateChanged(), and mixconfig.panels.NextMixProxyPanel.tableChanged().
void mixconfig.panels.NextMixProxyPanel.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.
References mixconfig.panels.NextMixProxyPanel.enableComponents(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.MIXTYPE_LAST, and mixconfig.panels.MixConfigPanel.setEnabled().
void mixconfig.panels.NextMixProxyPanel.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.NextMixProxyPanel.resetTableModel().
void mixconfig.panels.NextMixProxyPanel.stateChanged | ( | ChangeEvent | e | ) |
Reimplemented from mixconfig.panels.OtherMixPanel.
References mixconfig.network.ConnectionTableModel.deleteData(), mixconfig.panels.NextMixProxyPanel.enableComponents(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.network.ConnectionTableModel.getData(), mixconfig.network.ConnectionData.getFlags(), mixconfig.ConfigurationEvent.getModifiedXMLPath(), mixconfig.network.ConnectionTableModel.getRowCount(), mixconfig.panels.NextMixProxyPanel.m_model, mixconfig.MixConfiguration.MIXTYPE_LAST, mixconfig.panels.NextMixProxyPanel.resetTableModel(), and mixconfig.panels.MixConfigPanel.save().
void mixconfig.panels.NextMixProxyPanel.actionPerformed | ( | ActionEvent | a | ) |
void mixconfig.panels.NextMixProxyPanel.resetTableModel | ( | ) | [private] |
Reset the table model
References mixconfig.panels.NextMixProxyPanel.createTableModel(), mixconfig.panels.NextMixProxyPanel.m_model, mixconfig.panels.NextMixProxyPanel.m_table, and mixconfig.panels.NextMixProxyPanel.setColumnSizes().
Referenced by mixconfig.panels.NextMixProxyPanel.load(), and mixconfig.panels.NextMixProxyPanel.stateChanged().
ConnectionTableModel mixconfig.panels.NextMixProxyPanel.createTableModel | ( | ) | [private] |
Return a table model considering the mix type
References mixconfig.panels.MixConfigPanel.getConfiguration(), and mixconfig.MixConfiguration.getMixType().
Referenced by mixconfig.panels.NextMixProxyPanel.resetTableModel().
void mixconfig.panels.NextMixProxyPanel.setColumnSizes | ( | ) | [private] |
Set columnSizes to m_table
columnSizes |
References mixconfig.panels.NextMixProxyPanel.adjustColumnSizes(), and mixconfig.panels.NextMixProxyPanel.m_model.
Referenced by mixconfig.panels.NextMixProxyPanel.NextMixProxyPanel(), and mixconfig.panels.NextMixProxyPanel.resetTableModel().
void mixconfig.panels.NextMixProxyPanel.adjustColumnSizes | ( | int[] | columnSizes | ) | [private] |
Do the actual adjustments
columnSizes |
References mixconfig.panels.NextMixProxyPanel.m_table.
Referenced by mixconfig.panels.NextMixProxyPanel.setColumnSizes().
void mixconfig.panels.NextMixProxyPanel.componentResized | ( | ComponentEvent | e | ) |
XXX Do we need these?
void mixconfig.panels.NextMixProxyPanel.componentMoved | ( | ComponentEvent | e | ) |
void mixconfig.panels.NextMixProxyPanel.componentShown | ( | ComponentEvent | e | ) |
void mixconfig.panels.NextMixProxyPanel.componentHidden | ( | ComponentEvent | e | ) |
Container mixconfig.panels.NextMixProxyPanel.getHelpExtractionDisplayContext | ( | ) |
JPanel mixconfig.panels.NextMixProxyPanel.m_panel [private] |
Referenced by mixconfig.panels.NextMixProxyPanel.NextMixProxyPanel().
JTable mixconfig.panels.NextMixProxyPanel.m_table [private] |
Referenced by mixconfig.panels.NextMixProxyPanel.actionPerformed(), mixconfig.panels.NextMixProxyPanel.adjustColumnSizes(), mixconfig.panels.NextMixProxyPanel.componentShown(), mixconfig.panels.NextMixProxyPanel.enableComponents(), mixconfig.panels.NextMixProxyPanel.NextMixProxyPanel(), mixconfig.panels.NextMixProxyPanel.resetTableModel(), and mixconfig.panels.NextMixProxyPanel.tableChanged().
Referenced by mixconfig.panels.NextMixProxyPanel.actionPerformed(), mixconfig.panels.NextMixProxyPanel.check(), mixconfig.panels.NextMixProxyPanel.componentShown(), mixconfig.panels.NextMixProxyPanel.enableComponents(), mixconfig.panels.NextMixProxyPanel.NextMixProxyPanel(), mixconfig.panels.NextMixProxyPanel.resetTableModel(), mixconfig.panels.NextMixProxyPanel.setColumnSizes(), and mixconfig.panels.NextMixProxyPanel.stateChanged().
JButton mixconfig.panels.NextMixProxyPanel.m_bttnAdd [private] |
TitledBorder mixconfig.panels.NextMixProxyPanel.m_border [private] |