kaos.kpat.tabs
Class ConfigurationTab

java.lang.Object
  extended by kaos.kpat.tabs.ConfigurationTab
All Implemented Interfaces:
TabPanel

public class ConfigurationTab
extends java.lang.Object
implements TabPanel

The ConfigurationTab helps to build the components of the Configuration Tab in KPAT.


Nested Class Summary
 class ConfigurationTab.NamespaceListCellRenderer
           
 
Field Summary
protected  javax.swing.JButton _clearBtn
           
protected  javax.swing.JList _configList
           
protected  javax.swing.DefaultListModel _configListModel
           
protected  ConfigurationObject _configObj
           
protected static java.lang.String _configPath
           
protected  javax.swing.JList _configResList
           
protected  javax.swing.DefaultListModel _configResListModel
           
protected  java.lang.String _configSelection
           
protected  javax.swing.JPanel _configTab
           
protected  javax.swing.JTextArea _descArea
           
protected  javax.swing.JTextField _fileTextField
           
protected  java.util.Hashtable _longNamesHashtable
           
protected  javax.swing.JButton _okBtn
           
protected  javax.swing.JPanel _resultsConfigPanel
           
protected  javax.swing.JTextField _servTextField
           
protected  javax.swing.JLabel _statusLabel
           
protected  javax.swing.JTextField _userTextField
           
static java.lang.String NAME
           
 
Constructor Summary
ConfigurationTab()
           
 
Method Summary
protected  void createGui()
           
protected  void displayConfigInfo(ConfigurationObject configObj)
           
 java.lang.String getConfigDescription()
           
 javax.swing.JPanel getConfigRightPanel()
           
 javax.swing.JPanel getConfigTab()
           
protected  void getDefaultView()
          Get the default view of KPAT when no configuration object has been built yet.
 java.awt.Component getDisplayComponent()
           
 java.lang.String getName()
           
protected  java.lang.String getShortName(java.lang.String name)
          Return the short name for this url.
protected  java.lang.String getStrFromURL(java.lang.String urlStr)
           
 java.lang.String getUsername()
          Get the current username
 void initialize(KPATApplet applet, TunnelClient tunnelClient)
           
 void loadConfigurationFromFile(java.io.File f)
           
 void saveConfigurationToFile()
          Save the current configuration: domains, namespaces, policies and policy sets to a file.
 void setConfigurationListDefault()
          Set the default for the configuration to the list of namespaces.
 void setStatusLabel(boolean isDSStatusActive)
          Get the password from Authentication dialog
 void viewConfigurationFromFile(java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

_clearBtn

protected javax.swing.JButton _clearBtn

_okBtn

protected javax.swing.JButton _okBtn

_configObj

protected ConfigurationObject _configObj

_statusLabel

protected javax.swing.JLabel _statusLabel

_configList

protected javax.swing.JList _configList

_configResList

protected javax.swing.JList _configResList

_configListModel

protected javax.swing.DefaultListModel _configListModel

_configResListModel

protected javax.swing.DefaultListModel _configResListModel

_configTab

protected javax.swing.JPanel _configTab

_resultsConfigPanel

protected javax.swing.JPanel _resultsConfigPanel

_descArea

protected javax.swing.JTextArea _descArea

_fileTextField

protected javax.swing.JTextField _fileTextField

_servTextField

protected javax.swing.JTextField _servTextField

_userTextField

protected javax.swing.JTextField _userTextField

_configSelection

protected java.lang.String _configSelection

_longNamesHashtable

protected java.util.Hashtable _longNamesHashtable

_configPath

protected static java.lang.String _configPath
Constructor Detail

ConfigurationTab

public ConfigurationTab()
Method Detail

initialize

public void initialize(KPATApplet applet,
                       TunnelClient tunnelClient)
Specified by:
initialize in interface TabPanel

getName

public java.lang.String getName()
Specified by:
getName in interface TabPanel

getDisplayComponent

public java.awt.Component getDisplayComponent()
Specified by:
getDisplayComponent in interface TabPanel

createGui

protected void createGui()

viewConfigurationFromFile

public void viewConfigurationFromFile(java.io.File f)

getConfigTab

public javax.swing.JPanel getConfigTab()

getConfigRightPanel

public javax.swing.JPanel getConfigRightPanel()

getConfigDescription

public java.lang.String getConfigDescription()

displayConfigInfo

protected void displayConfigInfo(ConfigurationObject configObj)

saveConfigurationToFile

public void saveConfigurationToFile()
Save the current configuration: domains, namespaces, policies and policy sets to a file.


loadConfigurationFromFile

public void loadConfigurationFromFile(java.io.File f)

getDefaultView

protected void getDefaultView()
Get the default view of KPAT when no configuration object has been built yet.


setConfigurationListDefault

public void setConfigurationListDefault()
Set the default for the configuration to the list of namespaces.


getStrFromURL

protected java.lang.String getStrFromURL(java.lang.String urlStr)

getShortName

protected java.lang.String getShortName(java.lang.String name)
Return the short name for this url.


getUsername

public java.lang.String getUsername()
Get the current username


setStatusLabel

public void setStatusLabel(boolean isDSStatusActive)
Get the password from Authentication dialog