|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jap.JAPConfModuleSystem
public class JAPConfModuleSystem
This is the implementation for the configuration module system. It manages the configuration modules and displays the configuration tree and the configuration module content area.
Field Summary | |
---|---|
private javax.swing.JPanel |
m_configurationCardsPanel
Stores the panel where the content of the configuration modules is displayed. |
private javax.swing.JTree |
m_configurationTree
Stores the configuration tree. |
private JAPHelpContext.IHelpContext |
m_currentHelpContext
|
private java.util.Hashtable |
m_registratedModules
This table stores all registered instances of AbstractJAPConfModule. |
private javax.swing.JPanel |
m_rootPanel
Stores the root panel for the whole configuration module system. |
private java.util.Hashtable |
m_symbolicNamesToHelpContext
|
private java.util.Hashtable |
m_symbolicNamesToTreeNodes
This table stores all associations between the symbolic names of the configuration modules used to access the modules from outside (keys) and the nodes of the modules within the configuration tree. |
private java.util.Hashtable |
m_treeNodesToSymbolicNames
This table stores all associations between the tree nodes of the configuration modules (keys) and the symbolic names used to access the modules from outside. |
Constructor Summary | |
---|---|
JAPConfModuleSystem()
Creates a new instance of JAPConfModuleSystem with an empty configuration tree. |
Method Summary | |
---|---|
javax.swing.tree.DefaultMutableTreeNode |
addComponent(javax.swing.tree.DefaultMutableTreeNode a_parentNode,
java.awt.Component a_component,
java.lang.String a_nodeNameIdentifier,
java.lang.String a_symbolicName,
java.lang.String a_helpContext)
Adds a configuration component to the module system and inserts it in the configuration tree. |
javax.swing.tree.DefaultMutableTreeNode |
addConfigurationModule(javax.swing.tree.DefaultMutableTreeNode a_parentNode,
AbstractJAPConfModule a_module,
java.lang.String a_symbolicName)
Adds a configuration module to the module system and inserts it in the configuration tree. |
void |
createSavePoints()
Processes a create savepoints event on all registered instances of AbstractJAPConfModule. |
javax.swing.JTree |
getConfigurationTree()
Returns the configuration tree. |
javax.swing.tree.DefaultMutableTreeNode |
getConfigurationTreeRootNode()
Returns the (invisible) root node of the configuration tree. |
AbstractJAPConfModule |
getCurrentModule()
|
java.lang.String |
getHelpContext()
Returns the name of the module that is currently shown. |
java.awt.Component |
getHelpExtractionDisplayContext()
|
javax.swing.JPanel |
getRootPanel()
Returns the root panel of the module system (where the configuration tree and the module content are displayed on). |
protected void |
initObservers()
|
void |
processCancelPressedEvent()
Processes the configuration 'Cancel' button pressed event on all registered instances of AbstractJAPConfModule. |
boolean |
processOkPressedEvent()
Processes the configuration 'OK' button pressed event on all registered instances of AbstractJAPConfModule. |
void |
processResetToDefaultsPressedEvent()
Processes the configuration 'Reset to defaults' button pressed event on all registered instances of AbstractJAPConfModule. |
void |
processUpdateValuesEvent(boolean a_bSync)
Processes an update values event on all registered instances of AbstractJAPConfModule. |
protected void |
revalidate()
|
void |
selectNode(java.lang.String a_symbolicName)
This method can be used to select a specific module from the outside and bring it to the front of the configuration dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.swing.JPanel m_rootPanel
private javax.swing.JPanel m_configurationCardsPanel
private javax.swing.JTree m_configurationTree
private java.util.Hashtable m_registratedModules
private java.util.Hashtable m_treeNodesToSymbolicNames
private java.util.Hashtable m_symbolicNamesToTreeNodes
private java.util.Hashtable m_symbolicNamesToHelpContext
private JAPHelpContext.IHelpContext m_currentHelpContext
Constructor Detail |
---|
public JAPConfModuleSystem()
Method Detail |
---|
public javax.swing.tree.DefaultMutableTreeNode addConfigurationModule(javax.swing.tree.DefaultMutableTreeNode a_parentNode, AbstractJAPConfModule a_module, java.lang.String a_symbolicName)
a_parentNode
- The parent node of the new module in the configuration tree.a_module
- The module to insert within the configuration tree.a_symbolicName
- A unique symbolic name for the new configuration module. This is used
when the module shall be selected from the outside.
public javax.swing.tree.DefaultMutableTreeNode addComponent(javax.swing.tree.DefaultMutableTreeNode a_parentNode, java.awt.Component a_component, java.lang.String a_nodeNameIdentifier, java.lang.String a_symbolicName, java.lang.String a_helpContext)
a_parentNode
- The parent node of the new component in the configuration tree.a_component
- The component to insert within the configuration tree. If this value is
null, an unselectable node will be created.a_nodeNameIdentifier
- A name (resolvable via JAPMessages.getString()) used as the
node name of the new component in the configuration tree.a_symbolicName
- A unique symbolic name for the new configuration component. This is used
when the component shall be selected from the outside. This value is
only evaluated, if a_component is not null.
public javax.swing.tree.DefaultMutableTreeNode getConfigurationTreeRootNode()
public javax.swing.JTree getConfigurationTree()
public java.lang.String getHelpContext()
getHelpContext
in interface JAPHelpContext.IHelpContext
public java.awt.Component getHelpExtractionDisplayContext()
getHelpExtractionDisplayContext
in interface JAPHelpContext.IHelpContext
public AbstractJAPConfModule getCurrentModule()
public javax.swing.JPanel getRootPanel()
protected void initObservers()
protected void revalidate()
public void selectNode(java.lang.String a_symbolicName)
a_symbolicName
- The symbolic name of the module (or component) to select. This name
was specified when addConfigurationModule() or addComponent() was
called.public boolean processOkPressedEvent()
public void processCancelPressedEvent()
public void processResetToDefaultsPressedEvent()
public void processUpdateValuesEvent(boolean a_bSync)
public void createSavePoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |