jap
Class JAPConfInfoService

java.lang.Object
  extended by jap.AbstractJAPConfModule
      extended by jap.JAPConfInfoService
All Implemented Interfaces:
JAPHelpContext.IHelpContext, java.util.Observer

public class JAPConfInfoService
extends AbstractJAPConfModule
implements java.util.Observer

This is the configuration GUI for the infoservice.


Nested Class Summary
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  javax.swing.JTextField addInfoServiceHostField
           
private  javax.swing.JTextField addInfoServiceNameField
           
private  javax.swing.JPanel addInfoServicePanel
           
private  JAPJIntField addInfoServicePortField
           
private static java.lang.Integer[] CONNECT_TIMEOUTS
           
private  javax.swing.JPanel descriptionPanel
           
private  javax.swing.DefaultListModel knownInfoServicesListModel
           
private  javax.swing.JCheckBox m_allowAutomaticIS
           
private  javax.swing.JCheckBox m_cbxUseRedundantISRequests
           
private  javax.swing.JComboBox m_cmbAskedInfoServices
           
private  javax.swing.JComboBox m_comboAnonymousConnection
           
private  javax.swing.JComboBox m_comboTimeout
           
private  JAPMultilineLabel m_hostLabel
          Constructor for JAPConfInfoService.
private  javax.swing.JTabbedPane m_infoServiceTabPane
           
private  JAPHtmlMultiLineLabel m_lblExplanation
           
private  javax.swing.JLabel m_lblInactive
           
private  javax.swing.JList m_listKnownInfoServices
           
private  javax.swing.JLabel m_portLabel
           
private  MultiCertPath m_selectedISCertPaths
           
private  java.lang.String m_selectedISName
           
private  JAPHtmlMultiLineLabel m_settingsInfoServiceConfigBasicSettingsDescriptionLabel
           
private  boolean mb_newInfoService
           
private static java.lang.String MSG_ALL_INFO_SERVICES
           
private static java.lang.String MSG_ALLOW_DIRECT_CONNECTION
           
static java.lang.String MSG_CONNECT_TIMEOUT
           
private static java.lang.String MSG_EXPLANATION
           
private static java.lang.String MSG_INACTIVE
           
private static java.lang.String MSG_REALLY_DELETE
           
private static java.lang.String MSG_USE_MORE_IS
           
private static java.lang.String MSG_VIEW_CERT
           
private  javax.swing.JButton settingsInfoServiceConfigBasicSettingsRemoveButton
           
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
JAPConfInfoService()
           
 
Method Summary
private  javax.swing.JPanel createInfoServiceAdvancedPanel()
          Creates the infoservice advanced configuration panel with all components.
private  javax.swing.JPanel createInfoServiceConfigPanel()
          Creates the infoservice configuration panel with all components.
private  int findFirstUserDefinedListModelEntry(javax.swing.DefaultListModel knownInfoServicesListModel)
           
 java.lang.String getHelpContext()
           
 java.lang.String getTabTitle()
          Returns the title for the infoservice configuration tab.
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 onRootPanelShown()
          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 infoservice root panel with all child-panels.
private  void setConnectionTimeout(int a_timeoutMS)
           
private  void setPreferredInfoService()
           
 void update(java.util.Observable a_notifier, java.lang.Object a_message)
           
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, okPressed, onCancelPressed, resetToDefaultsPressed, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_CONNECT_TIMEOUT

public static final java.lang.String MSG_CONNECT_TIMEOUT

MSG_ALLOW_DIRECT_CONNECTION

private static final java.lang.String MSG_ALLOW_DIRECT_CONNECTION

MSG_VIEW_CERT

private static final java.lang.String MSG_VIEW_CERT

MSG_REALLY_DELETE

private static final java.lang.String MSG_REALLY_DELETE

MSG_USE_MORE_IS

private static final java.lang.String MSG_USE_MORE_IS

MSG_EXPLANATION

private static final java.lang.String MSG_EXPLANATION

MSG_ALL_INFO_SERVICES

private static final java.lang.String MSG_ALL_INFO_SERVICES

MSG_INACTIVE

private static final java.lang.String MSG_INACTIVE

CONNECT_TIMEOUTS

private static final java.lang.Integer[] CONNECT_TIMEOUTS

m_hostLabel

private JAPMultilineLabel m_hostLabel
Constructor for JAPConfInfoService. We do some initializing here.


m_portLabel

private javax.swing.JLabel m_portLabel

m_lblInactive

private javax.swing.JLabel m_lblInactive

m_listKnownInfoServices

private javax.swing.JList m_listKnownInfoServices

addInfoServiceHostField

private javax.swing.JTextField addInfoServiceHostField

addInfoServicePortField

private JAPJIntField addInfoServicePortField

addInfoServiceNameField

private javax.swing.JTextField addInfoServiceNameField

addInfoServicePanel

private javax.swing.JPanel addInfoServicePanel

descriptionPanel

private javax.swing.JPanel descriptionPanel

settingsInfoServiceConfigBasicSettingsRemoveButton

private javax.swing.JButton settingsInfoServiceConfigBasicSettingsRemoveButton

m_allowAutomaticIS

private javax.swing.JCheckBox m_allowAutomaticIS

m_comboAnonymousConnection

private javax.swing.JComboBox m_comboAnonymousConnection

m_cbxUseRedundantISRequests

private javax.swing.JCheckBox m_cbxUseRedundantISRequests

m_cmbAskedInfoServices

private javax.swing.JComboBox m_cmbAskedInfoServices

m_lblExplanation

private JAPHtmlMultiLineLabel m_lblExplanation

m_settingsInfoServiceConfigBasicSettingsDescriptionLabel

private JAPHtmlMultiLineLabel m_settingsInfoServiceConfigBasicSettingsDescriptionLabel

knownInfoServicesListModel

private javax.swing.DefaultListModel knownInfoServicesListModel

mb_newInfoService

private boolean mb_newInfoService

m_selectedISCertPaths

private MultiCertPath m_selectedISCertPaths

m_selectedISName

private java.lang.String m_selectedISName

m_infoServiceTabPane

private javax.swing.JTabbedPane m_infoServiceTabPane

m_comboTimeout

private javax.swing.JComboBox m_comboTimeout
Constructor Detail

JAPConfInfoService

public JAPConfInfoService()
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 infoservice root panel with all child-panels.

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getTabTitle

public java.lang.String getTabTitle()
Returns the title for the infoservice configuration tab.

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

update

public void update(java.util.Observable a_notifier,
                   java.lang.Object a_message)
Specified by:
update in interface java.util.Observer

createInfoServiceConfigPanel

private javax.swing.JPanel createInfoServiceConfigPanel()
Creates the infoservice configuration panel with all components.

Returns:
The infoservice configuration panel.

createInfoServiceAdvancedPanel

private javax.swing.JPanel createInfoServiceAdvancedPanel()
Creates the infoservice advanced configuration panel with all components.

Returns:
The infoservice advanced configuration panel.

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

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

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

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

setPreferredInfoService

private void setPreferredInfoService()

findFirstUserDefinedListModelEntry

private int findFirstUserDefinedListModelEntry(javax.swing.DefaultListModel knownInfoServicesListModel)

setConnectionTimeout

private void setConnectionTimeout(int a_timeoutMS)