jap.forward
Class JAPConfForwardingServer

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

public class JAPConfForwardingServer
extends AbstractJAPConfModule

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


Nested Class Summary
 
Nested classes/interfaces inherited from class jap.AbstractJAPConfModule
AbstractJAPConfModule.FontSizeObserver
 
Field Summary
private  javax.swing.JList allowedCascadesList
           
private  javax.swing.JComboBox connectionClassesComboBox
           
private  javax.swing.JButton decreaseRelativeBandwidthButton
           
private  javax.swing.JButton increaseRelativeBandwidthButton
           
private  javax.swing.JList knownCascadesList
           
private  javax.swing.JList knownInfoServicesList
           
private  javax.swing.DefaultListModel m_allowedCascadesListModel
           
private  javax.swing.DefaultListModel m_knownCascadesListModel
           
private  javax.swing.DefaultListModel m_knownInfoServicesListModel
           
private  javax.swing.DefaultListModel m_registrationInfoServicesListModel
           
private  javax.swing.JCheckBox m_startServerBox
           
private  javax.swing.JList registrationInfoServicesList
           
private  javax.swing.JTextField relativeBandwidthField
           
private  javax.swing.JTextField serverPortField
           
private  javax.swing.JButton settingsForwardingServerConfigAllowedCascadesAddButton
           
private  javax.swing.JCheckBox settingsForwardingServerConfigAllowedCascadesAllowAllBox
           
private  javax.swing.JLabel settingsForwardingServerConfigAllowedCascadesAllowedCascadesLabel
           
private  javax.swing.JLabel settingsForwardingServerConfigAllowedCascadesKnownCascadesLabel
           
private  javax.swing.JButton settingsForwardingServerConfigAllowedCascadesReloadButton
           
private  javax.swing.JButton settingsForwardingServerConfigAllowedCascadesRemoveButton
           
private  javax.swing.JLabel settingsForwardingServerConfigCurrentBandwidthLabel
           
private  javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesAddButton
           
private  javax.swing.JLabel settingsForwardingServerConfigRegistrationInfoServicesKnownInfoServicesLabel
           
private  javax.swing.JCheckBox settingsForwardingServerConfigRegistrationInfoServicesRegisterAtAllBox
           
private  javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesReloadButton
           
private  javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesRemoveButton
           
private  javax.swing.JLabel settingsForwardingServerConfigRegistrationInfoServicesSelectedInfoServicesLabel
           
private  javax.swing.JTextField uploadBandwidthField
           
 
Fields inherited from class jap.AbstractJAPConfModule
LOCK_OBSERVABLE, m_savePoint
 
Constructor Summary
JAPConfForwardingServer()
          Constructor for JAPConfForwardingServer.
 
Method Summary
private  javax.swing.JPanel createForwardingServerConfigAllowedCascadesPanel()
          Creates the panel where the supported mixcascades for forwarding can be configured.
private  javax.swing.JPanel createForwardingServerConfigPanel()
          Creates the forwarding server config panel with all components.
private  javax.swing.JPanel createForwardingServerConfigRegistrationInfoServicesPanel()
          Creates the infoservice registration configuration panel with all child components.
private  void fillLists()
           
 java.lang.String getHelpContext()
           
 java.lang.String getTabTitle()
          Returns the title for the forwarding server configuration within the configuration tree.
protected  boolean initObservers()
          All observables that are observed by this object MUST be registered here.
private  void loadInfoServices()
           
protected  void onRootPanelShown()
          This method can be overwritten by the children of AbstractJAPConfModule.
 void recreateRootPanel()
          Creates the forwarding root panel with all child components.
private  java.util.Vector showFetchMixCascadesDialog(javax.swing.JComponent a_parentComponent)
          Shows the fetch mixcascades dialog box when configuring the allowed mixcascades for the forwarding server.
private  void startLoadInfoServicesThread()
           
 
Methods inherited from class jap.AbstractJAPConfModule
cancelPressed, createSavePoint, createTabbedRootPanelContraints, fontSizeChanged, getHelpExtractionDisplayContext, getRootPanel, okPressed, onCancelPressed, onOkPressed, onResetToDefaultsPressed, onUpdateValues, resetToDefaultsPressed, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_knownCascadesListModel

private javax.swing.DefaultListModel m_knownCascadesListModel

m_knownInfoServicesListModel

private javax.swing.DefaultListModel m_knownInfoServicesListModel

m_allowedCascadesListModel

private javax.swing.DefaultListModel m_allowedCascadesListModel

m_registrationInfoServicesListModel

private javax.swing.DefaultListModel m_registrationInfoServicesListModel

m_startServerBox

private javax.swing.JCheckBox m_startServerBox

serverPortField

private javax.swing.JTextField serverPortField

uploadBandwidthField

private javax.swing.JTextField uploadBandwidthField

connectionClassesComboBox

private javax.swing.JComboBox connectionClassesComboBox

settingsForwardingServerConfigCurrentBandwidthLabel

private javax.swing.JLabel settingsForwardingServerConfigCurrentBandwidthLabel

relativeBandwidthField

private javax.swing.JTextField relativeBandwidthField

increaseRelativeBandwidthButton

private javax.swing.JButton increaseRelativeBandwidthButton

decreaseRelativeBandwidthButton

private javax.swing.JButton decreaseRelativeBandwidthButton

settingsForwardingServerConfigAllowedCascadesKnownCascadesLabel

private javax.swing.JLabel settingsForwardingServerConfigAllowedCascadesKnownCascadesLabel

settingsForwardingServerConfigAllowedCascadesAllowedCascadesLabel

private javax.swing.JLabel settingsForwardingServerConfigAllowedCascadesAllowedCascadesLabel

knownCascadesList

private javax.swing.JList knownCascadesList

allowedCascadesList

private javax.swing.JList allowedCascadesList

settingsForwardingServerConfigAllowedCascadesReloadButton

private javax.swing.JButton settingsForwardingServerConfigAllowedCascadesReloadButton

settingsForwardingServerConfigAllowedCascadesAddButton

private javax.swing.JButton settingsForwardingServerConfigAllowedCascadesAddButton

settingsForwardingServerConfigAllowedCascadesRemoveButton

private javax.swing.JButton settingsForwardingServerConfigAllowedCascadesRemoveButton

settingsForwardingServerConfigAllowedCascadesAllowAllBox

private javax.swing.JCheckBox settingsForwardingServerConfigAllowedCascadesAllowAllBox

settingsForwardingServerConfigRegistrationInfoServicesKnownInfoServicesLabel

private javax.swing.JLabel settingsForwardingServerConfigRegistrationInfoServicesKnownInfoServicesLabel

settingsForwardingServerConfigRegistrationInfoServicesSelectedInfoServicesLabel

private javax.swing.JLabel settingsForwardingServerConfigRegistrationInfoServicesSelectedInfoServicesLabel

knownInfoServicesList

private javax.swing.JList knownInfoServicesList

registrationInfoServicesList

private javax.swing.JList registrationInfoServicesList

settingsForwardingServerConfigRegistrationInfoServicesReloadButton

private javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesReloadButton

settingsForwardingServerConfigRegistrationInfoServicesAddButton

private javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesAddButton

settingsForwardingServerConfigRegistrationInfoServicesRemoveButton

private javax.swing.JButton settingsForwardingServerConfigRegistrationInfoServicesRemoveButton

settingsForwardingServerConfigRegistrationInfoServicesRegisterAtAllBox

private javax.swing.JCheckBox settingsForwardingServerConfigRegistrationInfoServicesRegisterAtAllBox
Constructor Detail

JAPConfForwardingServer

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

recreateRootPanel

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

Specified by:
recreateRootPanel in class AbstractJAPConfModule

getTabTitle

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

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

createForwardingServerConfigPanel

private javax.swing.JPanel createForwardingServerConfigPanel()
Creates the forwarding server config panel with all components.

Returns:
The forwarding server config panel.

createForwardingServerConfigAllowedCascadesPanel

private javax.swing.JPanel createForwardingServerConfigAllowedCascadesPanel()
Creates the panel where the supported mixcascades for forwarding can be configured.

Returns:
The allowed mixcascades configuration panel.

createForwardingServerConfigRegistrationInfoServicesPanel

private javax.swing.JPanel createForwardingServerConfigRegistrationInfoServicesPanel()
Creates the infoservice registration configuration panel with all child components.

Returns:
The infoservice registration configuration panel.

showFetchMixCascadesDialog

private java.util.Vector showFetchMixCascadesDialog(javax.swing.JComponent a_parentComponent)
Shows the fetch mixcascades dialog box when configuring the allowed mixcascades for the forwarding server. A Vector with the fetched mixcascades is returned. If there was an error while fetching the cascades, an error message is displayed and an empty Vector is returned.

Parameters:
a_parentComponent - The parent component where this dialog is centered over.
Returns:
A Vector with the fetched mixcacades (maybe empty).

getHelpContext

public java.lang.String getHelpContext()

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

fillLists

private void fillLists()

startLoadInfoServicesThread

private void startLoadInfoServicesThread()

loadInfoServices

private void loadInfoServices()