jap
Class JAPConfNetwork

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

public class JAPConfNetwork
extends AbstractJAPConfModule

This is the configuration GUI for the JAP forwarding client component.


Nested Class Summary
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  javax.swing.border.TitledBorder m_borderSettingsListener
           
private  javax.swing.JCheckBox m_cbListenerIsLocal
           
private  javax.swing.JCheckBox m_cbProxy
           
private  javax.swing.JCheckBox m_cbProxyAuthentication
           
private  javax.swing.JComboBox m_comboProxyType
           
private  javax.swing.JLabel m_labelPortnumber1
           
private  javax.swing.JLabel m_labelProxyAuthUserID
           
private  javax.swing.JLabel m_labelProxyHost
           
private  javax.swing.JLabel m_labelProxyPort
           
private  javax.swing.JLabel m_labelProxyType
           
private  javax.swing.JCheckBox m_settingsForwardingClientConfigNeedForwarderBox
           
private  JAPJIntField m_tfListenerPortNumber
           
private  javax.swing.JTextField m_tfProxyAuthenticationUserID
           
private  javax.swing.JTextField m_tfProxyHost
           
private  JAPJIntField m_tfProxyPortNumber
           
private static java.lang.String MSG_ACCESS_TO_JAP
           
private static java.lang.String MSG_LISTENER_CHANGED
           
static java.lang.String MSG_SLOW_ANTI_CENSORSHIP
           
private static java.lang.String MSG_SLOW_ANTI_CENSORSHIP_Q
           
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
JAPConfNetwork()
          Constructor for JAPConfForwardingClient.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  javax.swing.JPanel buildPortPanel()
           
(package private)  javax.swing.JPanel buildProxyPanel()
           
private  javax.swing.JPanel createForwardingClientConfigPanel()
          Creates the forwarding client configuration panel.
 java.lang.String getHelpContext()
           
 java.lang.String getTabTitle()
          Returns the title for the forwarding client configuration within the configuration tree.
protected  boolean initObservers()
          All observables that are observed by this object MUST be registered here.
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()
          Creates the forwarding client root panel with all child components.
private  void showForwardingClientConfirmServerShutdownDialog(java.awt.Component a_parentComponent)
          Shows the forwarding server shutdown confirmation dialog.
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, 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_LISTENER_CHANGED

private static final java.lang.String MSG_LISTENER_CHANGED

MSG_ACCESS_TO_JAP

private static final java.lang.String MSG_ACCESS_TO_JAP

MSG_SLOW_ANTI_CENSORSHIP

public static final java.lang.String MSG_SLOW_ANTI_CENSORSHIP

MSG_SLOW_ANTI_CENSORSHIP_Q

private static final java.lang.String MSG_SLOW_ANTI_CENSORSHIP_Q

m_tfListenerPortNumber

private JAPJIntField m_tfListenerPortNumber

m_cbListenerIsLocal

private javax.swing.JCheckBox m_cbListenerIsLocal

m_labelPortnumber1

private javax.swing.JLabel m_labelPortnumber1

m_borderSettingsListener

private javax.swing.border.TitledBorder m_borderSettingsListener

m_cbProxy

private javax.swing.JCheckBox m_cbProxy

m_settingsForwardingClientConfigNeedForwarderBox

private javax.swing.JCheckBox m_settingsForwardingClientConfigNeedForwarderBox

m_tfProxyPortNumber

private JAPJIntField m_tfProxyPortNumber

m_tfProxyHost

private javax.swing.JTextField m_tfProxyHost

m_comboProxyType

private javax.swing.JComboBox m_comboProxyType

m_cbProxyAuthentication

private javax.swing.JCheckBox m_cbProxyAuthentication

m_tfProxyAuthenticationUserID

private javax.swing.JTextField m_tfProxyAuthenticationUserID

m_labelProxyHost

private javax.swing.JLabel m_labelProxyHost

m_labelProxyPort

private javax.swing.JLabel m_labelProxyPort

m_labelProxyType

private javax.swing.JLabel m_labelProxyType

m_labelProxyAuthUserID

private javax.swing.JLabel m_labelProxyAuthUserID
Constructor Detail

JAPConfNetwork

public JAPConfNetwork()
Constructor for JAPConfForwardingClient. 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

actionPerformed

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

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

recreateRootPanel

public void recreateRootPanel()
Creates the forwarding client root panel with all child components.

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getTabTitle

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

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

createForwardingClientConfigPanel

private javax.swing.JPanel createForwardingClientConfigPanel()
Creates the forwarding client configuration panel.

Returns:
The forwarding client config panel.

showForwardingClientConfirmServerShutdownDialog

private void showForwardingClientConfirmServerShutdownDialog(java.awt.Component a_parentComponent)
Shows the forwarding server shutdown confirmation dialog. This dialog is necessary if the forwarding server is running when the connect-via-forwarder feature is enabled, because the components for starting/stopping the forwarding server will be disabled after that.

Parameters:
a_parentComponent - The component where the dialog will be centered over.

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

buildPortPanel

javax.swing.JPanel buildPortPanel()

buildProxyPanel

javax.swing.JPanel buildProxyPanel()

getHelpContext

public java.lang.String getHelpContext()