jap
Class ConfigAssistant

java.lang.Object
  extended by gui.dialog.JAPDialog
      extended by jap.ConfigAssistant
All Implemented Interfaces:
IDialogOptions, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class ConfigAssistant
extends JAPDialog

This is some kind of installation and configuration assistant that helps the unexperienced user to get the most out of JAP/JonDo.

Author:
Rolf Wendolsky

Nested Class Summary
 
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
private static java.lang.String BROWSER_FIREFOX
           
private static java.lang.String BROWSER_JONDOFOX
           
private static java.lang.String IMG_ARROW
           
private static java.lang.String IMG_HELP_BUTTON
           
private static java.lang.String IMG_SERVICES
           
private  boolean m_bFinished
           
private  javax.swing.JRadioButton m_ConnectionOK
           
private  javax.swing.ButtonGroup m_groupAnon
           
private  javax.swing.ButtonGroup m_groupView
           
private  javax.swing.ButtonGroup m_groupWarning
           
private  javax.swing.JTextPane[] m_lblHostnames
           
private  javax.swing.JTextPane[] m_lblPorts
           
private  javax.swing.JRadioButton m_noSurfing
           
private  javax.swing.JRadioButton m_radioAdvancedView
           
private  javax.swing.JRadioButton m_radioConnectionSlow
           
private  javax.swing.JRadioButton m_radioErrorWarningNoSurfing
           
private  javax.swing.JRadioButton m_radioNoConnection
           
private  javax.swing.JRadioButton m_radioNoServiceAvailable
           
private  javax.swing.JRadioButton m_radioNoWarning
           
private  javax.swing.JRadioButton m_radioSimpleView
           
private  javax.swing.JRadioButton m_radioSuccessWarning
           
private  javax.swing.JRadioButton m_radioWarningInBrowser
           
private static java.lang.String MSG_ANON_HP
           
private static java.lang.String MSG_ANON_TEST
           
private static java.lang.String MSG_BROWSER_CONF
           
private static java.lang.String MSG_BROWSER_TEST
           
private static java.lang.String MSG_CLICK_TO_VIEW_HELP
           
private static java.lang.String MSG_DEACTIVATE_ACTIVE
           
private static java.lang.String MSG_ERROR_CONNECTION_SLOW
           
private static java.lang.String MSG_ERROR_NO_CONNECTION
           
private static java.lang.String MSG_ERROR_NO_SERVICE_AVAILABLE
           
private static java.lang.String MSG_ERROR_NO_SURFING
           
private static java.lang.String MSG_ERROR_NO_WARNING
           
private static java.lang.String MSG_ERROR_WARNING_IN_BROWSER
           
private static java.lang.String MSG_ERROR_WARNING_NO_SURFING
           
private static java.lang.String MSG_EXPLAIN_BAD_CONNECTION
           
private static java.lang.String MSG_EXPLAIN_CHOOSE_OTHER_SERVICE
           
private static java.lang.String MSG_EXPLAIN_FIREWALL
           
private static java.lang.String MSG_EXPLAIN_NO_CONNECTION
           
private static java.lang.String MSG_EXPLAIN_NO_DIRECT_CONNECTION
           
private static java.lang.String MSG_EXPLAIN_NO_SERVICE_AVAILABLE
           
private static java.lang.String MSG_EXPLAIN_NO_WARNING
           
private static java.lang.String MSG_EXPLAIN_RESTART
           
private static java.lang.String MSG_EXPLAIN_WARNING_IN_BROWSER
           
private static java.lang.String MSG_FINISHED
           
private static java.lang.String MSG_FINISHED_ANONTEST
           
private static java.lang.String MSG_FINISHED_TROUBLESHOOTING
           
private static java.lang.String MSG_HELP
           
private static java.lang.String MSG_MAKE_SELECTION
           
private static java.lang.String MSG_OTHER_BROWSERS
           
private static java.lang.String MSG_REALLY_CLOSE
           
private static java.lang.String MSG_RECOMMENDED
           
private static java.lang.String MSG_SELECT_VIEW
           
private static java.lang.String MSG_SET_NEW_LANGUAGE
           
private static java.lang.String MSG_SET_NEW_VIEW
           
private static java.lang.String MSG_SUCCESS_CONNECTION
           
private static java.lang.String MSG_SUCCESS_WARNING
           
private static java.lang.String MSG_TITLE
           
private static java.lang.String MSG_WELCOME
           
private static java.lang.String[] PROXIES
           
 
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
ConfigAssistant(java.awt.Component a_parentComponent)
           
ConfigAssistant(JAPDialog a_parentDialog)
           
 
Method Summary
private  void addBrowserInstallationInfo(javax.swing.JComponent a_component, java.awt.GridBagConstraints a_constraints, java.lang.String a_browserName, java.lang.String a_helpContext, boolean a_bRecommended)
           
private  void addProxyInfo(javax.swing.JComponent a_component, java.awt.GridBagConstraints a_constraints, java.lang.String a_protocol)
           
private  void init()
           
private  javax.swing.ImageIcon loadServicesIcon()
           
private  void registerLink(javax.swing.JLabel a_label, java.lang.String a_context, boolean a_bHelpContext)
           
 
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, 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

BROWSER_JONDOFOX

private static final java.lang.String BROWSER_JONDOFOX
See Also:
Constant Field Values

BROWSER_FIREFOX

private static final java.lang.String BROWSER_FIREFOX
See Also:
Constant Field Values

MSG_WELCOME

private static final java.lang.String MSG_WELCOME

MSG_HELP

private static final java.lang.String MSG_HELP

MSG_ANON_HP

private static final java.lang.String MSG_ANON_HP

MSG_TITLE

private static final java.lang.String MSG_TITLE

MSG_FINISHED

private static final java.lang.String MSG_FINISHED

MSG_FINISHED_ANONTEST

private static final java.lang.String MSG_FINISHED_ANONTEST

MSG_FINISHED_TROUBLESHOOTING

private static final java.lang.String MSG_FINISHED_TROUBLESHOOTING

MSG_BROWSER_CONF

private static final java.lang.String MSG_BROWSER_CONF

MSG_RECOMMENDED

private static final java.lang.String MSG_RECOMMENDED

MSG_OTHER_BROWSERS

private static final java.lang.String MSG_OTHER_BROWSERS

MSG_CLICK_TO_VIEW_HELP

private static final java.lang.String MSG_CLICK_TO_VIEW_HELP

MSG_BROWSER_TEST

private static final java.lang.String MSG_BROWSER_TEST

MSG_MAKE_SELECTION

private static final java.lang.String MSG_MAKE_SELECTION

MSG_ERROR_NO_WARNING

private static final java.lang.String MSG_ERROR_NO_WARNING

MSG_EXPLAIN_NO_WARNING

private static final java.lang.String MSG_EXPLAIN_NO_WARNING

MSG_EXPLAIN_NO_DIRECT_CONNECTION

private static final java.lang.String MSG_EXPLAIN_NO_DIRECT_CONNECTION

MSG_EXPLAIN_FIREWALL

private static final java.lang.String MSG_EXPLAIN_FIREWALL

MSG_ERROR_WARNING_NO_SURFING

private static final java.lang.String MSG_ERROR_WARNING_NO_SURFING

MSG_SUCCESS_WARNING

private static final java.lang.String MSG_SUCCESS_WARNING

MSG_REALLY_CLOSE

private static final java.lang.String MSG_REALLY_CLOSE

MSG_DEACTIVATE_ACTIVE

private static final java.lang.String MSG_DEACTIVATE_ACTIVE

MSG_ANON_TEST

private static final java.lang.String MSG_ANON_TEST

MSG_ERROR_NO_SERVICE_AVAILABLE

private static final java.lang.String MSG_ERROR_NO_SERVICE_AVAILABLE

MSG_ERROR_NO_CONNECTION

private static final java.lang.String MSG_ERROR_NO_CONNECTION

MSG_ERROR_CONNECTION_SLOW

private static final java.lang.String MSG_ERROR_CONNECTION_SLOW

MSG_ERROR_NO_SURFING

private static final java.lang.String MSG_ERROR_NO_SURFING

MSG_SUCCESS_CONNECTION

private static final java.lang.String MSG_SUCCESS_CONNECTION

MSG_EXPLAIN_NO_CONNECTION

private static final java.lang.String MSG_EXPLAIN_NO_CONNECTION

MSG_EXPLAIN_BAD_CONNECTION

private static final java.lang.String MSG_EXPLAIN_BAD_CONNECTION

MSG_EXPLAIN_CHOOSE_OTHER_SERVICE

private static final java.lang.String MSG_EXPLAIN_CHOOSE_OTHER_SERVICE

MSG_EXPLAIN_NO_SERVICE_AVAILABLE

private static final java.lang.String MSG_EXPLAIN_NO_SERVICE_AVAILABLE

MSG_ERROR_WARNING_IN_BROWSER

private static final java.lang.String MSG_ERROR_WARNING_IN_BROWSER

MSG_EXPLAIN_WARNING_IN_BROWSER

private static final java.lang.String MSG_EXPLAIN_WARNING_IN_BROWSER

MSG_SELECT_VIEW

private static final java.lang.String MSG_SELECT_VIEW

MSG_SET_NEW_VIEW

private static final java.lang.String MSG_SET_NEW_VIEW

MSG_SET_NEW_LANGUAGE

private static final java.lang.String MSG_SET_NEW_LANGUAGE

MSG_EXPLAIN_RESTART

private static final java.lang.String MSG_EXPLAIN_RESTART

PROXIES

private static final java.lang.String[] PROXIES

IMG_ARROW

private static final java.lang.String IMG_ARROW
See Also:
Constant Field Values

IMG_HELP_BUTTON

private static final java.lang.String IMG_HELP_BUTTON

IMG_SERVICES

private static final java.lang.String IMG_SERVICES

m_lblHostnames

private javax.swing.JTextPane[] m_lblHostnames

m_lblPorts

private javax.swing.JTextPane[] m_lblPorts

m_radioNoWarning

private javax.swing.JRadioButton m_radioNoWarning

m_radioSuccessWarning

private javax.swing.JRadioButton m_radioSuccessWarning

m_radioErrorWarningNoSurfing

private javax.swing.JRadioButton m_radioErrorWarningNoSurfing

m_radioWarningInBrowser

private javax.swing.JRadioButton m_radioWarningInBrowser

m_groupWarning

private javax.swing.ButtonGroup m_groupWarning

m_radioNoConnection

private javax.swing.JRadioButton m_radioNoConnection

m_radioConnectionSlow

private javax.swing.JRadioButton m_radioConnectionSlow

m_noSurfing

private javax.swing.JRadioButton m_noSurfing

m_ConnectionOK

private javax.swing.JRadioButton m_ConnectionOK

m_radioNoServiceAvailable

private javax.swing.JRadioButton m_radioNoServiceAvailable

m_groupAnon

private javax.swing.ButtonGroup m_groupAnon

m_radioSimpleView

private javax.swing.JRadioButton m_radioSimpleView

m_radioAdvancedView

private javax.swing.JRadioButton m_radioAdvancedView

m_groupView

private javax.swing.ButtonGroup m_groupView

m_bFinished

private boolean m_bFinished
Constructor Detail

ConfigAssistant

public ConfigAssistant(java.awt.Component a_parentComponent)

ConfigAssistant

public ConfigAssistant(JAPDialog a_parentDialog)
Method Detail

init

private void init()

loadServicesIcon

private javax.swing.ImageIcon loadServicesIcon()

addProxyInfo

private void addProxyInfo(javax.swing.JComponent a_component,
                          java.awt.GridBagConstraints a_constraints,
                          java.lang.String a_protocol)

addBrowserInstallationInfo

private void addBrowserInstallationInfo(javax.swing.JComponent a_component,
                                        java.awt.GridBagConstraints a_constraints,
                                        java.lang.String a_browserName,
                                        java.lang.String a_helpContext,
                                        boolean a_bRecommended)

registerLink

private void registerLink(javax.swing.JLabel a_label,
                          java.lang.String a_context,
                          boolean a_bHelpContext)