jap
Class JAPConfServices

java.lang.Object
  extended by jap.AbstractJAPConfModule
      extended by jap.JAPConfServices
All Implemented Interfaces:
JAPHelpContext.IHelpContext

public class JAPConfServices
extends AbstractJAPConfModule

This is only a wrapper class for the configuration classes under the services node. It is only used for forwarding the events and creating the tabbed pane. Attention: The createSavePoint() call and the setFontSetting() call are not forwarded. This should be no problem because at the moment none of the service modules uses savepoints and setFontSetting() is never called.


Nested Class Summary
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  JAPConfAnonGeneral m_anonGeneralModule
          Stores the module for the general tab.
private  JAPConfAnon m_anonModule
          Stores the module for the AN.ON tab.
private  JAPConfMixminion m_mixminionModule
          Stores the module for the Mixminion tab.
private  java.util.Vector m_tabbedModules
           
private  javax.swing.JTabbedPane m_tabsAnon
          Stores the tabbed pane
private  JAPConfTC m_tcModule
           
private  JAPConfTor m_torModule
          Stores the module for the TOR tab.
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
JAPConfServices()
          Constructor for JAPConfServices.
 
Method Summary
private  JAPConfAnonGeneral getAnonGeneralModule()
          Returns the general configuration module.
private  JAPConfAnon getAnonModule()
          Returns the AN.ON module.
 java.lang.String getHelpContext()
           
private  JAPConfMixminion getMixminionModule()
          Returns the Mixminion module.
 java.lang.String getTabTitle()
          Returns the title for the services configuration within the configuration tree.
private  JAPConfTC getTCModule()
           
private  JAPConfTor getTorModule()
          Returns the TOR module.
protected  boolean initObservers()
          All observables that are observed by this object MUST be registered here.
protected  void onCancelPressed()
          Processes the 'Cancel' pressed event on all service modules.
protected  boolean onOkPressed()
          Processes the 'OK' pressed event on all service modules.
protected  void onResetToDefaultsPressed()
          Processes the 'Reset to defaults' pressed event on all service modules.
protected  void onRootPanelShown()
          This method can be overwritten by the children of AbstractJAPConfModule.
protected  void onUpdateValues()
          Processes the update values event on all service modules.
 void recreateRootPanel()
          Creates the services configuration root panel with all child components (tabbed pane for the services and the service panes itself).
 void selectAnonTab(MixCascade a_cascade, boolean a_bShowFilter)
           
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, okPressed, resetToDefaultsPressed, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_anonModule

private JAPConfAnon m_anonModule
Stores the module for the AN.ON tab.


m_torModule

private JAPConfTor m_torModule
Stores the module for the TOR tab.


m_mixminionModule

private JAPConfMixminion m_mixminionModule
Stores the module for the Mixminion tab.


m_anonGeneralModule

private JAPConfAnonGeneral m_anonGeneralModule
Stores the module for the general tab.


m_tcModule

private JAPConfTC m_tcModule

m_tabsAnon

private javax.swing.JTabbedPane m_tabsAnon
Stores the tabbed pane


m_tabbedModules

private java.util.Vector m_tabbedModules
Constructor Detail

JAPConfServices

public JAPConfServices()
Constructor for JAPConfServices. We do some initialization here.

Method Detail

initObservers

protected boolean initObservers()
Description copied from class: AbstractJAPConfModule
All observables that are observed by this object MUST be registered here. Subsequent calls of this method should not lead to additional registrations.

Overrides:
initObservers in class AbstractJAPConfModule

recreateRootPanel

public void recreateRootPanel()
Creates the services configuration root panel with all child components (tabbed pane for the services and the service panes itself).

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getTabTitle

public java.lang.String getTabTitle()
Returns the title for the services configuration within the configuration tree.

Specified by:
getTabTitle in class AbstractJAPConfModule
Returns:
The title for the services configuration leaf within the tree.

onOkPressed

protected boolean onOkPressed()
Processes the 'OK' pressed event on all service modules.

Overrides:
onOkPressed in class AbstractJAPConfModule
Returns:
True, if all service modules returned true or false, if one module returned a veto to this event.

onCancelPressed

protected void onCancelPressed()
Processes the 'Cancel' pressed event on all service modules.

Overrides:
onCancelPressed in class AbstractJAPConfModule

getHelpContext

public java.lang.String getHelpContext()

onRootPanelShown

protected void onRootPanelShown()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the root panel comes to the foreground (is set to visible).

Overrides:
onRootPanelShown in class AbstractJAPConfModule

onResetToDefaultsPressed

protected void onResetToDefaultsPressed()
Processes the 'Reset to defaults' pressed event on all service modules.

Overrides:
onResetToDefaultsPressed in class AbstractJAPConfModule

onUpdateValues

protected void onUpdateValues()
Processes the update values event on all service modules.

Overrides:
onUpdateValues in class AbstractJAPConfModule

getAnonModule

private JAPConfAnon getAnonModule()
Returns the AN.ON module. The module is created, if necessary.

Returns:
The AN.ON configuration module.

getTorModule

private JAPConfTor getTorModule()
Returns the TOR module. The module is created, if necessary.

Returns:
The TOR configuration module.

getMixminionModule

private JAPConfMixminion getMixminionModule()
Returns the Mixminion module. The module is created, if necessary.

Returns:
The Mixminion configuration module.

getAnonGeneralModule

private JAPConfAnonGeneral getAnonGeneralModule()
Returns the general configuration module. The module is created, if necessary.

Returns:
The general configuration module.

getTCModule

private JAPConfTC getTCModule()

selectAnonTab

public void selectAnonTab(MixCascade a_cascade,
                          boolean a_bShowFilter)