jap
Class JAPConfTor

java.lang.Object
  extended by jap.AbstractJAPConfModule
      extended by jap.JAPConfTor
All Implemented Interfaces:
JAPHelpContext.IHelpContext, java.awt.event.ActionListener, java.util.EventListener

final class JAPConfTor
extends AbstractJAPConfModule
implements java.awt.event.ActionListener


Nested Class Summary
private  class JAPConfTor.MyJTable
           
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  javax.swing.border.TitledBorder m_border
           
private  javax.swing.JButton m_bttnFetchRouters
           
private  javax.swing.JCheckBox m_cbNoDefaultTorServer
           
private  javax.swing.JCheckBox m_cbPreCreateRoutes
           
private  javax.swing.JCheckBox m_cbxActive
           
private  JAPJIntField m_jintfieldTorDirServerPort
           
private  javax.swing.JLabel m_labelAvailableRouters
           
private  javax.swing.JLabel m_lblMaxPathLen
           
private  javax.swing.JLabel m_lblMinPathLen
           
private  javax.swing.JLabel m_lblPathSwitchTime
           
private  javax.swing.JPanel m_panelSlider
           
private  javax.swing.JScrollPane m_scrollPane
           
private  javax.swing.JSlider m_sliderConnectionsPerPath
           
private  javax.swing.JSlider m_sliderMaxPathLen
           
private  javax.swing.JSlider m_sliderMinPathLen
           
private  javax.swing.JTable m_tableRouters
           
private  javax.swing.JTextField m_tfTorDirServerHostName
           
private static int MAX_CON_PER_PATH
           
private static int MIN_CON_PER_PATH
           
private  java.text.DateFormat ms_dateFormat
           
static java.lang.String MSG_ACTIVATE
           
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
JAPConfTor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          actionPerformed
private  void fetchRoutersAsync(boolean bShowError)
           
 java.lang.String getHelpContext()
           
 java.lang.String getTabTitle()
          This method must be implemented by the children of AbstractJAPConfModule and returns the title for this configuration tab.
protected  boolean onOkPressed()
          This method can be overwritten by the children of AbstractJAPConfModule.
 void onResetToDefaultsPressed()
          This method can be overwritten by the children of AbstractJAPConfModule.
protected  void onUpdateValues()
          This method can be overwritten by the children of AbstractJAPConfModule.
 void recreateRootPanel()
          This method must be implemented by the children of AbstractJAPConfModule.
private  void updateGuiOutput()
           
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, initObservers, okPressed, onCancelPressed, onRootPanelShown, resetToDefaultsPressed, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_ACTIVATE

public static final java.lang.String MSG_ACTIVATE

MIN_CON_PER_PATH

private static final int MIN_CON_PER_PATH
See Also:
Constant Field Values

MAX_CON_PER_PATH

private static final int MAX_CON_PER_PATH
See Also:
Constant Field Values

m_cbxActive

private javax.swing.JCheckBox m_cbxActive

m_tableRouters

private javax.swing.JTable m_tableRouters

m_sliderMaxPathLen

private javax.swing.JSlider m_sliderMaxPathLen

m_sliderMinPathLen

private javax.swing.JSlider m_sliderMinPathLen

m_sliderConnectionsPerPath

private javax.swing.JSlider m_sliderConnectionsPerPath

m_bttnFetchRouters

private javax.swing.JButton m_bttnFetchRouters

m_labelAvailableRouters

private javax.swing.JLabel m_labelAvailableRouters

m_cbPreCreateRoutes

private javax.swing.JCheckBox m_cbPreCreateRoutes

m_cbNoDefaultTorServer

private javax.swing.JCheckBox m_cbNoDefaultTorServer

m_tfTorDirServerHostName

private javax.swing.JTextField m_tfTorDirServerHostName

m_jintfieldTorDirServerPort

private JAPJIntField m_jintfieldTorDirServerPort

m_lblMaxPathLen

private javax.swing.JLabel m_lblMaxPathLen

m_lblMinPathLen

private javax.swing.JLabel m_lblMinPathLen

m_lblPathSwitchTime

private javax.swing.JLabel m_lblPathSwitchTime

m_scrollPane

private javax.swing.JScrollPane m_scrollPane

m_panelSlider

private javax.swing.JPanel m_panelSlider

m_border

private javax.swing.border.TitledBorder m_border

ms_dateFormat

private java.text.DateFormat ms_dateFormat
Constructor Detail

JAPConfTor

public JAPConfTor()
Method Detail

recreateRootPanel

public void recreateRootPanel()
Description copied from class: AbstractJAPConfModule
This method must be implemented by the children of AbstractJAPConfModule. It is called every time the root panel needs to be (re)created (e.g. the language has changed). This method is also called by the constructor of AbstractJAPConfModule after creating the root panel.

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getTabTitle

public java.lang.String getTabTitle()
Description copied from class: AbstractJAPConfModule
This method must be implemented by the children of AbstractJAPConfModule and returns the title for this configuration tab.

Specified by:
getTabTitle in class AbstractJAPConfModule
Returns:
The title for this configuration tab.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
actionEvent - ActionEvent

onOkPressed

protected boolean onOkPressed()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the user presses "OK" in the configuration dialog.

Overrides:
onOkPressed in class AbstractJAPConfModule

onUpdateValues

protected void onUpdateValues()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the values of the model have changed and must be reread by the module. SHOULD NOT BE CALLED DIRECTLY in subclasses!!

Overrides:
onUpdateValues in class AbstractJAPConfModule

getHelpContext

public java.lang.String getHelpContext()
Specified by:
getHelpContext in interface JAPHelpContext.IHelpContext

updateGuiOutput

private void updateGuiOutput()

fetchRoutersAsync

private void fetchRoutersAsync(boolean bShowError)

onResetToDefaultsPressed

public void onResetToDefaultsPressed()
Description copied from class: AbstractJAPConfModule
This method can be overwritten by the children of AbstractJAPConfModule. It is called every time the user presses "Reset to defaults" in the configuration dialog after the restoring of the default configuration from the savepoint (if there is a savepoint for this module).

Overrides:
onResetToDefaultsPressed in class AbstractJAPConfModule