de.cau.cs.kieler.kwebs.client.ui
Class EditServerConfigDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by de.cau.cs.kieler.kwebs.client.ui.AbstractServerConfigDialog
              extended by de.cau.cs.kieler.kwebs.client.ui.EditServerConfigDialog
All Implemented Interfaces:
IShellProvider

public class EditServerConfigDialog
extends AbstractServerConfigDialog

Dialog for editing an existing server configuration.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class de.cau.cs.kieler.kwebs.client.ui.AbstractServerConfigDialog
checkButton, detailButton, serverConfigAddress, serverConfigName, truststore, truststoreButton, truststorePass
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
EditServerConfigDialog(Shell shell, ServerConfigData theserverConfig)
          Creates a new dialog for editing a server configuration.
 
Method Summary
protected  void configureShell(Shell shell)
          
protected  Control createDialogArea(Composite parent)
          
protected  void handleServerConfigUpdate(ServerConfigData updatedServerConfig)
          To be implemented by inherited classes to handle the server configuration data edited in this dialog.
protected  boolean warningOnDouble(ServerConfigData theserverConfig)
          Returns whether a warning should be displayed if an equal server configuration already exists in the server configuration list.
protected  boolean warningOnInvalid(ServerConfigData theserverConfig)
          Returns whether a warning should be displayed if the current configuration resembles an invalid server configuration.
 
Methods inherited from class de.cau.cs.kieler.kwebs.client.ui.AbstractServerConfigDialog
buttonPressed, checkAvailability, displayDetails, getAddress, getName, getTruststore, getTruststorePass
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditServerConfigDialog

public EditServerConfigDialog(Shell shell,
                              ServerConfigData theserverConfig)
Creates a new dialog for editing a server configuration.

Parameters:
shell - the parent shell
theserverConfig - the server configuration to be edited
Method Detail

configureShell

protected final void configureShell(Shell shell)

Overrides:
configureShell in class Window

createDialogArea

protected final Control createDialogArea(Composite parent)

Overrides:
createDialogArea in class AbstractServerConfigDialog

handleServerConfigUpdate

protected void handleServerConfigUpdate(ServerConfigData updatedServerConfig)
To be implemented by inherited classes to handle the server configuration data edited in this dialog. This may be updating an existing server configuration or creating a new server configuration.

Specified by:
handleServerConfigUpdate in class AbstractServerConfigDialog
Parameters:
updatedServerConfig - the server configuration to handle

warningOnDouble

protected boolean warningOnDouble(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if an equal server configuration already exists in the server configuration list.

Specified by:
warningOnDouble in class AbstractServerConfigDialog
Parameters:
theserverConfig - the server configuration which is equal to the server configuration resembled by the currently entered server configuration data
Returns:
whether a warning should be displayed if an equal server configuration already exists in the server configuration list

warningOnInvalid

protected boolean warningOnInvalid(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if the current configuration resembles an invalid server configuration.

Specified by:
warningOnInvalid in class AbstractServerConfigDialog
Parameters:
theserverConfig - the server configuration resembling the currently entered server configuration data
Returns:
whether a warning should be displayed if the current configuration resembles an invalid server configuration