jap
Class JAPConf

java.lang.Object
  extended by gui.dialog.JAPDialog
      extended by jap.JAPConf
All Implemented Interfaces:
IDialogOptions, java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public final class JAPConf
extends JAPDialog
implements java.awt.event.ActionListener, java.awt.event.WindowListener


Nested Class Summary
static class JAPConf.AbstractRestartNeedingConfigChange
           
 
Nested classes/interfaces inherited from class gui.dialog.JAPDialog
JAPDialog.AbstractLinkedURLAdapter, JAPDialog.ILinkedInformation, JAPDialog.LinkedCheckBox, JAPDialog.LinkedHelpContext, JAPDialog.LinkedInformation, JAPDialog.LinkedInformationAdapter, JAPDialog.LinkedURLCheckBox, JAPDialog.Options
 
Field Summary
static java.lang.String ANON_SERVICES_TAB
           
static java.lang.String ANON_TAB
           
static java.lang.String ANON_TRUST_TAB
           
static java.lang.String CERT_TAB
           
static java.lang.String DEBUG_TAB
           
static java.lang.String FORWARDING_CLIENT_TAB
          This constant is a symbolic name for accessing the forwarding client configuration tab.
static java.lang.String FORWARDING_SERVER_TAB
          This constant is a symbolic name for accessing the forwarding server configuration tab.
static java.lang.String FORWARDING_STATE_TAB
          This constant is a symbolic name for accessing the forwarding state tab.
static java.lang.String HTTP_FILTER_TAB
           
static java.lang.String INFOSERVICE_TAB
           
private  AccountSettingsPanel m_accountSettings
           
private  boolean m_bIsSimpleView
           
private  javax.swing.JButton m_bttnCancel
           
private  javax.swing.JButton m_bttnDebugFileNameSearch
           
private  javax.swing.JButton m_bttnDefaultConfig
           
private  javax.swing.JButton m_bttnHelp
           
private  boolean m_bWithPayment
           
private  javax.swing.JCheckBox m_cbDebugToFile
           
private  javax.swing.JCheckBox[] m_cbLogTypes
           
private  javax.swing.JCheckBox m_cbShowDebugConsole
           
private  JAPConfServices m_confServices
           
private  JAPConfUI m_confUI
           
private  JAPController m_Controller
           
private  JAPMultilineLabel m_labelConfDebugLevel
           
private  JAPMultilineLabel m_labelConfDebugTypes
           
private  JAPConfModuleSystem m_moduleSystem
           
private  AbstractJAPMainView m_parentView
           
private  javax.swing.JPanel m_pMisc
           
private  javax.swing.JSlider m_sliderDebugDetailLevel
           
private  javax.swing.JSlider m_sliderDebugLevel
           
private  javax.swing.JTextField m_tfDebugFileName
           
private  java.util.Vector m_vecConfigChangesNeedRestart
           
private static JAPConf ms_JapConfInstance
           
private static java.lang.String MSG_ASK_RESET_DEFAULTS
           
private static java.lang.String MSG_BTN_SAVE
           
private static java.lang.String MSG_DETAILLEVEL
           
private static java.lang.String MSG_NEED_RESTART
           
static java.lang.String MSG_READ_PANEL_HELP
          Messages
static java.lang.String NETWORK_TAB
           
static java.lang.String PAYMENT_TAB
           
static java.lang.String PROXY_TAB
           
static java.lang.String TOR_TAB
           
static java.lang.String UI_TAB
           
static java.lang.String UPDATE_TAB
           
 
Fields inherited from class gui.dialog.JAPDialog
FORMAT_DEFAULT_SCREEN, FORMAT_GOLDEN_RATIO_PHI, FORMAT_WIDE_SCREEN, MSG_BTN_PROCEED, MSG_BTN_RETRY, MSG_ERROR_UNDISPLAYABLE, MSG_ERROR_UNKNOWN, MSG_TITLE_CONFIRMATION, MSG_TITLE_ERROR, MSG_TITLE_INFO, MSG_TITLE_WARNING, XML_ATTR_OPTIMIZED_FORMAT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface gui.dialog.IDialogOptions
MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INFORMATION, MESSAGE_TYPE_PLAIN, MESSAGE_TYPE_QUESTION, MESSAGE_TYPE_WARNING, OPTION_TYPE_CANCEL, OPTION_TYPE_DEFAULT, OPTION_TYPE_EMPTY, OPTION_TYPE_OK_CANCEL, OPTION_TYPE_YES_NO, OPTION_TYPE_YES_NO_CANCEL, RETURN_VALUE_CANCEL, RETURN_VALUE_CLOSED, RETURN_VALUE_NO, RETURN_VALUE_OK, RETURN_VALUE_UNINITIALIZED, RETURN_VALUE_YES
 
Constructor Summary
JAPConf(AbstractJAPMainView frmParent, boolean loadPay)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void addNeedRestart(JAPConf.AbstractRestartNeedingConfigChange a_change)
           
private  javax.swing.JPanel buildMiscPanel()
           
(package private)  void cancelPressed()
           
private  boolean checkValues()
          Checks if all input in all files make sense.
protected  void doPack()
           
static JAPConf getInstance()
           
private  boolean isRestartNeeded()
           
private  void okPressed(boolean a_bCloseConfiguration)
           
private  void onOkPressed()
           
private  void resetToDefault()
          Resets the Configuration to the Default values
 void selectCard(java.lang.String a_strSelectedCard, java.lang.Object a_value)
          Brings the specified card of the tabbed pane of the configuration window to the foreground.
 void setVisible(boolean a_bVisible)
          This method to show the Dialog We need it for creating the module savepoints.
private  void updateValues()
          Updates the shown Values from the Model.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class gui.dialog.JAPDialog
addComponentListener, addWindowListener, dispose, doClosingOnContentPaneCancel, getAccessibleContext, getContentPane, getDefaultCloseOperation, getFont, getGlassPane, getInsets, getJMenuBar, getLayeredPane, getLocation, getName, getOptimizedFormat, getOptimizedFormatDelta, getOptimizedFormatDelta, getOptimizedFormatInternal, getOwner, getParentComponent, getPreferredSize, getRootPane, getScreenBounds, getSize, getTitle, imageUpdate, isClosingOnContentPaneCancel, isConsoleOnly, isDisposed, isEnabled, isModal, isResizable, isVisible, moveToUpRightCorner, pack, postEvent, remove, removeComponentListener, removeWindowListener, requestFocus, resetAutomaticLocation, restoreLocation, restoreSize, retrieveErrorMessage, setAlwaysOnTop, setConsoleOnly, setContentPane, setDefaultCloseOperation, setDockable, setEnabled, setGlassPane, setJMenuBar, setLayeredPane, setLocation, setLocation, setLocationCenteredOn, setLocationCenteredOnOwner, setLocationCenteredOnParent, setLocationCenteredOnScreen, setLocationRelativeToOwner, setModal, setName, setOptimizedFormat, setResizable, setSize, setSize, setTitle, setVisible, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, toBack, toFront, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_READ_PANEL_HELP

public static final java.lang.String MSG_READ_PANEL_HELP
Messages


MSG_DETAILLEVEL

private static final java.lang.String MSG_DETAILLEVEL

MSG_BTN_SAVE

private static final java.lang.String MSG_BTN_SAVE

MSG_ASK_RESET_DEFAULTS

private static final java.lang.String MSG_ASK_RESET_DEFAULTS

MSG_NEED_RESTART

private static final java.lang.String MSG_NEED_RESTART

NETWORK_TAB

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

UI_TAB

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

UPDATE_TAB

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

PROXY_TAB

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

INFOSERVICE_TAB

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

ANON_TAB

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

ANON_SERVICES_TAB

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

ANON_TRUST_TAB

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

CERT_TAB

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

TOR_TAB

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

DEBUG_TAB

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

PAYMENT_TAB

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

HTTP_FILTER_TAB

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

FORWARDING_CLIENT_TAB

public static final java.lang.String FORWARDING_CLIENT_TAB
This constant is a symbolic name for accessing the forwarding client configuration tab.

See Also:
Constant Field Values

FORWARDING_SERVER_TAB

public static final java.lang.String FORWARDING_SERVER_TAB
This constant is a symbolic name for accessing the forwarding server configuration tab.

See Also:
Constant Field Values

FORWARDING_STATE_TAB

public static final java.lang.String FORWARDING_STATE_TAB
This constant is a symbolic name for accessing the forwarding state tab.

See Also:
Constant Field Values

ms_JapConfInstance

private static JAPConf ms_JapConfInstance

m_Controller

private JAPController m_Controller

m_cbLogTypes

private javax.swing.JCheckBox[] m_cbLogTypes

m_cbShowDebugConsole

private javax.swing.JCheckBox m_cbShowDebugConsole

m_cbDebugToFile

private javax.swing.JCheckBox m_cbDebugToFile

m_tfDebugFileName

private javax.swing.JTextField m_tfDebugFileName

m_bttnDebugFileNameSearch

private javax.swing.JButton m_bttnDebugFileNameSearch

m_labelConfDebugLevel

private JAPMultilineLabel m_labelConfDebugLevel

m_labelConfDebugTypes

private JAPMultilineLabel m_labelConfDebugTypes

m_sliderDebugLevel

private javax.swing.JSlider m_sliderDebugLevel

m_sliderDebugDetailLevel

private javax.swing.JSlider m_sliderDebugDetailLevel

m_pMisc

private javax.swing.JPanel m_pMisc

m_bttnDefaultConfig

private javax.swing.JButton m_bttnDefaultConfig

m_bttnCancel

private javax.swing.JButton m_bttnCancel

m_bttnHelp

private javax.swing.JButton m_bttnHelp

m_bWithPayment

private boolean m_bWithPayment

m_bIsSimpleView

private boolean m_bIsSimpleView

m_vecConfigChangesNeedRestart

private java.util.Vector m_vecConfigChangesNeedRestart

m_moduleSystem

private JAPConfModuleSystem m_moduleSystem

m_confServices

private JAPConfServices m_confServices

m_parentView

private AbstractJAPMainView m_parentView

m_accountSettings

private AccountSettingsPanel m_accountSettings

m_confUI

private JAPConfUI m_confUI
Constructor Detail

JAPConf

public JAPConf(AbstractJAPMainView frmParent,
               boolean loadPay)
Method Detail

getInstance

public static JAPConf getInstance()

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

doPack

protected void doPack()

setVisible

public void setVisible(boolean a_bVisible)
This method to show the Dialog We need it for creating the module savepoints. After this, we call the parent setVisible(true) method.

Overrides:
setVisible in class JAPDialog
Parameters:
a_bVisible - 'true' shows the dialog; 'false' hides it

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

buildMiscPanel

private javax.swing.JPanel buildMiscPanel()

cancelPressed

void cancelPressed()

checkValues

private boolean checkValues()
Checks if all input in all files make sense. Displays InfoBoxes about what is wrong.

Returns:
true if all is ok false otherwise

resetToDefault

private void resetToDefault()
Resets the Configuration to the Default values


onOkPressed

private void onOkPressed()

okPressed

private void okPressed(boolean a_bCloseConfiguration)

selectCard

public void selectCard(java.lang.String a_strSelectedCard,
                       java.lang.Object a_value)
Brings the specified card of the tabbed pane of the configuration window to the foreground. If there is no card with the specified symbolic name, nothing is done (current foreground card is not changed).

Parameters:
a_selectedCard - The card to bring to the foreground. See the TAB constants in this class.

updateValues

private void updateValues()
Updates the shown Values from the Model.


addNeedRestart

protected void addNeedRestart(JAPConf.AbstractRestartNeedingConfigChange a_change)

isRestartNeeded

private boolean isRestartNeeded()