mixconfig.panels.MixOnCDPanel Class Reference

Inherits mixconfig::panels::MixConfigPanel, and java::awt::event::ActionListener.

List of all members.

Public Member Functions

 MixOnCDPanel ()
void setConfiguration (MixConfiguration a_conf) throws IOException
Vector< String > check ()
void actionPerformed (ActionEvent a_event)
String getHelpContext ()
void focusGained (FocusEvent a_event)
void focusLost (FocusEvent a_event)
void itemStateChanged (ItemEvent a_event)
void load () throws IOException
void save () throws IOException
Container getHelpExtractionDisplayContext ()

Static Public Attributes

static final String XMLPATH_MIXONCD = "MixOnCD"
static final String XMLPATH_MIXONCD_NETWORK = XMLPATH_MIXONCD + "/Network"
static final String XMLPATH_MIXONCD_LOGIN_PASSWORD = XMLPATH_MIXONCD + "/Login/Password"
static final String XMLATTRIBUTE_DHCP = "dhcp"
static final String XMLATTRIBUTE_USER = "user"
static final String XMLVALUE_NETWORKINTERFACE = "NetworkInterface"
static final String MSG_TITLE = MixOnCDPanel.class.getName() + "_title"
static final String MSG_TITLE_NETWORK = MixOnCDPanel.class.getName() + "_titleNetwork"
static final String MSG_TITLE_PASSWORDS = MixOnCDPanel.class.getName() + "_titlePasswords"
static final String MSG_CLEAR_USER = MixOnCDPanel.class.getName() + "_clearUser"
static final String MSG_USE_BOOTABLE_CD = MixOnCDPanel.class.getName() + "_useBootableCD"
static final String MSG_DHCP_AUTO_CONF = MixOnCDPanel.class.getName() + "_DHCPAutoConf"
static final String MSG_TITLE_DOWNLOAD_HINT = MixOnCDPanel.class.getName() + "_titleDownloadHint"
static final String MSG_DOWNLOAD_HINT = MixOnCDPanel.class.getName() + "_downloadHint"
static final String MSG_SUBNET_MASK = MixOnCDPanel.class.getName() + "_subnetMask"
static final String MSG_DNS_SERVERS = MixOnCDPanel.class.getName() + "_DNSServers"
static final String MSG_DEFAULT_GATEWAY = MixOnCDPanel.class.getName() + "_defaultGateway"
static final String MSG_INVALID_LOCAL_IP = MixOnCDPanel.class.getName() + "_invalidLocalIP"
static final String MSG_INVALID_SUBNET_MASK = MixOnCDPanel.class.getName() + "_invalidSubnetMask"
static final String MSG_NO_VALID_DNS = MixOnCDPanel.class.getName() + "_noValidDNS"
static final String MSG_INVALID_DEFAULT_GATEWAY
static final String MSG_OPTIONAL = MixOnCDPanel.class.getName() + "_optional"
static final String MSG_CONFIGURED_BY_MIXONCD

Protected Member Functions

void save (IPTextField a_ipTextField)
void load (JCheckBox a_checkbox)
void save (JCheckBox a_checkBox)
void load (IPTextField a_ipTextField)
void enableComponents ()

Private Member Functions

void setActivated (boolean a_bActivate)
boolean checkDHCPEnabled ()
void savePasswords ()
void loadPasswords ()

Private Attributes

JCheckBox m_cbxMixOnCD
JCheckBox m_cbDHCP
JTextField m_txtHostname
JTextField m_txtNetworkInterface
IPTextField m_txtIP
IPTextField m_txtSubnetMask
IPTextField m_txtDefaultGateway
IPTextField[] m_txtDNSServers
JLabel m_lblDNSServersHeadline
JLabel[] m_lblDNSServersOptional
JLabel[] m_lblDNSServersMandatory
JLabel[] m_lblsPW
JButton[] m_btnsRemovePW
JPasswordField[] m_pwds
JTextField[] m_txtHashedPasswords
TitledGridBagPanel m_panelLocalNetworkSettings
TitledGridBagPanel m_panelPasswords
String[] m_users = {"root", "mix"}
String[] m_passwordHashes

Static Private Attributes

static final int VISIBLE_PASSWORD_LENGTH = 15


Detailed Description

This panel stores the MixOnCD configuration.
Author:
Rolf Wendolsky

Constructor & Destructor Documentation

mixconfig.panels.MixOnCDPanel.MixOnCDPanel (  ) 

References mixconfig.panels.MixConfigPanel.getDefaultInsets(), mixconfig.panels.MixOnCDPanel.m_btnsRemovePW, mixconfig.panels.MixOnCDPanel.m_cbDHCP, mixconfig.panels.MixOnCDPanel.m_cbxMixOnCD, mixconfig.panels.MixOnCDPanel.m_lblDNSServersHeadline, mixconfig.panels.MixOnCDPanel.m_lblDNSServersMandatory, mixconfig.panels.MixOnCDPanel.m_lblDNSServersOptional, mixconfig.panels.MixOnCDPanel.m_lblsPW, mixconfig.panels.MixOnCDPanel.m_panelLocalNetworkSettings, mixconfig.panels.MixOnCDPanel.m_panelPasswords, mixconfig.panels.MixOnCDPanel.m_passwordHashes, mixconfig.panels.MixOnCDPanel.m_pwds, mixconfig.panels.MixOnCDPanel.m_txtDefaultGateway, mixconfig.panels.MixOnCDPanel.m_txtDNSServers, mixconfig.panels.MixOnCDPanel.m_txtHashedPasswords, mixconfig.panels.MixOnCDPanel.m_txtHostname, mixconfig.panels.MixOnCDPanel.m_txtIP, mixconfig.panels.MixOnCDPanel.m_txtNetworkInterface, mixconfig.panels.MixOnCDPanel.m_txtSubnetMask, mixconfig.panels.MixOnCDPanel.m_users, mixconfig.panels.MixOnCDPanel.MSG_CLEAR_USER, mixconfig.panels.MixOnCDPanel.MSG_DEFAULT_GATEWAY, mixconfig.panels.MixOnCDPanel.MSG_DHCP_AUTO_CONF, mixconfig.panels.MixOnCDPanel.MSG_DNS_SERVERS, mixconfig.panels.MixOnCDPanel.MSG_OPTIONAL, mixconfig.panels.MixOnCDPanel.MSG_SUBNET_MASK, mixconfig.panels.MixOnCDPanel.MSG_TITLE, mixconfig.panels.MixOnCDPanel.MSG_TITLE_NETWORK, mixconfig.panels.MixOnCDPanel.MSG_TITLE_PASSWORDS, mixconfig.panels.MixOnCDPanel.MSG_USE_BOOTABLE_CD, mixconfig.panels.MixOnCDPanel.VISIBLE_PASSWORD_LENGTH, mixconfig.panels.MixOnCDPanel.XMLATTRIBUTE_DHCP, mixconfig.panels.MixOnCDPanel.XMLPATH_MIXONCD_LOGIN_PASSWORD, mixconfig.panels.MixOnCDPanel.XMLPATH_MIXONCD_NETWORK, and mixconfig.panels.MixOnCDPanel.XMLVALUE_NETWORKINTERFACE.


Member Function Documentation

void mixconfig.panels.MixOnCDPanel.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.MixOnCDPanel.enableComponents(), mixconfig.panels.MixConfigPanel.getConfiguration(), and mixconfig.panels.MixOnCDPanel.setActivated().

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

void mixconfig.panels.MixOnCDPanel.save ( IPTextField  a_ipTextField  )  [protected]

Saves the value of the IP address in the IPTextField.

Parameters:
a_ipTextField an IPTextField

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.MixOnCDPanel.m_txtDNSServers, and mixconfig.MixConfiguration.setValues().

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

Loads the value with the same name as the specified checkbox from the configuration object and sets its value accordingly.

Parameters:
a A check box

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixConfigPanel.getConfiguration(), and mixconfig.panels.MixOnCDPanel.m_cbxMixOnCD.

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

void mixconfig.panels.MixOnCDPanel.load ( IPTextField  a_ipTextField  )  [protected]

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

void mixconfig.panels.MixOnCDPanel.actionPerformed ( ActionEvent  a_event  ) 

String mixconfig.panels.MixOnCDPanel.getHelpContext (  ) 

void mixconfig.panels.MixOnCDPanel.focusGained ( FocusEvent  a_event  ) 

void mixconfig.panels.MixOnCDPanel.focusLost ( FocusEvent  a_event  ) 

void mixconfig.panels.MixOnCDPanel.itemStateChanged ( ItemEvent  a_event  ) 

void mixconfig.panels.MixOnCDPanel.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.MixOnCDPanel.loadPasswords().

void mixconfig.panels.MixOnCDPanel.save (  )  throws IOException

Saves the attribute values from the panel's controls (text fields, combo boxes etc.) to the configuration object. 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 attribute value to the value of the component.

Exceptions:
IOException If saving a value to the configuration fails

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.MixOnCDPanel.savePasswords().

Referenced by mixconfig.panels.MixOnCDPanel.itemStateChanged().

void mixconfig.panels.MixOnCDPanel.setActivated ( boolean  a_bActivate  )  [private]

boolean mixconfig.panels.MixOnCDPanel.checkDHCPEnabled (  )  [private]

void mixconfig.panels.MixOnCDPanel.savePasswords (  )  [private]

void mixconfig.panels.MixOnCDPanel.loadPasswords (  )  [private]

Container mixconfig.panels.MixOnCDPanel.getHelpExtractionDisplayContext (  ) 


Member Data Documentation

final String mixconfig.panels.MixOnCDPanel.XMLPATH_MIXONCD = "MixOnCD" [static]

final String mixconfig.panels.MixOnCDPanel.XMLATTRIBUTE_DHCP = "dhcp" [static]

final String mixconfig.panels.MixOnCDPanel.XMLATTRIBUTE_USER = "user" [static]

final String mixconfig.panels.MixOnCDPanel.XMLVALUE_NETWORKINTERFACE = "NetworkInterface" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_TITLE = MixOnCDPanel.class.getName() + "_title" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_TITLE_NETWORK = MixOnCDPanel.class.getName() + "_titleNetwork" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_TITLE_PASSWORDS = MixOnCDPanel.class.getName() + "_titlePasswords" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_CLEAR_USER = MixOnCDPanel.class.getName() + "_clearUser" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_USE_BOOTABLE_CD = MixOnCDPanel.class.getName() + "_useBootableCD" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_DHCP_AUTO_CONF = MixOnCDPanel.class.getName() + "_DHCPAutoConf" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_TITLE_DOWNLOAD_HINT = MixOnCDPanel.class.getName() + "_titleDownloadHint" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_DOWNLOAD_HINT = MixOnCDPanel.class.getName() + "_downloadHint" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_SUBNET_MASK = MixOnCDPanel.class.getName() + "_subnetMask" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_DNS_SERVERS = MixOnCDPanel.class.getName() + "_DNSServers" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_DEFAULT_GATEWAY = MixOnCDPanel.class.getName() + "_defaultGateway" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_INVALID_LOCAL_IP = MixOnCDPanel.class.getName() + "_invalidLocalIP" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_INVALID_SUBNET_MASK = MixOnCDPanel.class.getName() + "_invalidSubnetMask" [static]

final String mixconfig.panels.MixOnCDPanel.MSG_NO_VALID_DNS = MixOnCDPanel.class.getName() + "_noValidDNS" [static]

Initial value:

    MixOnCDPanel.class.getName() + "_invalidDefaultGateway"

Referenced by mixconfig.panels.MixOnCDPanel.check().

final String mixconfig.panels.MixOnCDPanel.MSG_OPTIONAL = MixOnCDPanel.class.getName() + "_optional" [static]

Initial value:

    MixOnCDPanel.class.getName() + "_configuredByMixOnCD"

JPasswordField [] mixconfig.panels.MixOnCDPanel.m_pwds [private]

TitledGridBagPanel mixconfig.panels.MixOnCDPanel.m_panelPasswords [private]

String [] mixconfig.panels.MixOnCDPanel.m_users = {"root", "mix"} [private]


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

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