net.sourceforge.java.feednread.frontend.configuration
Class ConnectionConfigurationPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.jface.preference.FieldEditorPreferencePage
              extended bynet.sourceforge.java.feednread.frontend.configuration.DefaultFieldEditorConfigurationPage
                  extended bynet.sourceforge.java.feednread.frontend.configuration.ConnectionConfigurationPage
All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, IPropertyChangeListener

public class ConnectionConfigurationPage
extends DefaultFieldEditorConfigurationPage

Configuration page for online connection specific settings.

Author:
Sebastian Machhausen

Field Summary
private  SpinnerFieldEditor connectionTimeoutEditor
           FieldEditor for the connection timeout: This specifies the timeout (in milliseconds) to establish the connection to the host.
private  BooleanFieldEditor httpKeepAliveEditor
           FieldEditor to toggle http keep alive whichs allows reusage of http connections if turned on
private  SpinnerFieldEditor maxParallelConnectionsEditor
           FieldEditor for the maximum parallel connections established by the application
private  SpinnerFieldEditor readTimeoutEditor
           FieldEditor for the read timeout: This specifies the timeout (in milliseconds) when reading from input stream when a connection is established to a resource
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from class org.eclipse.jface.preference.PreferencePage
 
Fields inherited from class org.eclipse.jface.dialogs.DialogPage
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ConnectionConfigurationPage()
           Creates a new ConnectionConfigurationPage instance.
 
Method Summary
 void createFieldEditors()
           Creates the FieldEditors of this ConnectionConfigurationPage.
 boolean performOk()
           Notifies that the OK button of this page's container has been pressed.
 
Methods inherited from class net.sourceforge.java.feednread.frontend.configuration.DefaultFieldEditorConfigurationPage
createControl
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, setDescription, setImageDescriptor
 

Field Detail

maxParallelConnectionsEditor

private SpinnerFieldEditor maxParallelConnectionsEditor

FieldEditor for the maximum parallel connections established by the application


httpKeepAliveEditor

private BooleanFieldEditor httpKeepAliveEditor

FieldEditor to toggle http keep alive whichs allows reusage of http connections if turned on


connectionTimeoutEditor

private SpinnerFieldEditor connectionTimeoutEditor

FieldEditor for the connection timeout: This specifies the timeout (in milliseconds) to establish the connection to the host. For example for http connections it is the timeout when establishing the connection to the http server.


readTimeoutEditor

private SpinnerFieldEditor readTimeoutEditor

FieldEditor for the read timeout: This specifies the timeout (in milliseconds) when reading from input stream when a connection is established to a resource

Constructor Detail

ConnectionConfigurationPage

public ConnectionConfigurationPage()

Creates a new ConnectionConfigurationPage instance.

Method Detail

performOk

public boolean performOk()

Notifies that the OK button of this page's container has been pressed.

Returns:
false to abort the container's OK processing and true to allow the OK to happen

createFieldEditors

public void createFieldEditors()

Creates the FieldEditors of this ConnectionConfigurationPage.

See Also:
FieldEditorPreferencePage.createFieldEditors()