|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
de.cau.cs.kieler.kwebs.client.ui.AbstractServerConfigDialog
public abstract class AbstractServerConfigDialog
Abstract class for providing basic dialog functionality for NewServerConfigDialog
and EditProviderDialog
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary | |
---|---|
protected Button |
checkButton
Button for testing service availability. |
protected Button |
detailButton
Button for showing service details. |
protected Text |
serverConfigAddress
Service address of server configuration. |
protected Text |
serverConfigName
Name of the server configuration. |
protected Text |
truststore
Path to trust store for HTTPS connections. |
protected Button |
truststoreButton
The button for the trust store selection dialog. |
protected Text |
truststorePass
Password for trust store. |
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 | |
---|---|
protected |
AbstractServerConfigDialog(Shell parentShell)
Creates a dialog with elements for editing a server configuration. |
Method Summary | |
---|---|
protected void |
buttonPressed(int buttonId)
|
protected void |
checkAvailability()
Checks whether the layout service derived from the user entered parameters is reachable. |
protected Control |
createDialogArea(Composite parent)
|
protected void |
displayDetails()
Checks whether the layout service derived from the user entered parameters is reachable. |
protected URI |
getAddress()
Returns an URI representing the service address used when doing layout with this server configuration. |
protected String |
getName()
Returns the name of the server configuration. |
protected String |
getTruststore()
Returns the path to the trust store file used when doing layout with this server configuration. |
protected String |
getTruststorePass()
Returns the password for the trust store file used when doing layout with this server configuration. |
protected abstract void |
handleServerConfigUpdate(ServerConfigData updatedServerConfig)
To be implemented by inherited classes to handle the server configuration data edited in this dialog. |
protected abstract boolean |
warningOnDouble(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if an equal server configuration already exists in the server configuration list. |
protected abstract boolean |
warningOnInvalid(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if the current configuration resembles an invalid server configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Text serverConfigName
protected Text serverConfigAddress
protected Text truststore
protected Text truststorePass
protected Button truststoreButton
protected Button checkButton
protected Button detailButton
Constructor Detail |
---|
protected AbstractServerConfigDialog(Shell parentShell)
parentShell
- the parent shell of this dialogMethod Detail |
---|
protected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
protected void buttonPressed(int buttonId)
buttonPressed
in class Dialog
protected abstract boolean warningOnDouble(ServerConfigData theserverConfig)
theserverConfig
- the server configuration which is equal to the server configuration resembled by the
currently entered server configuration data
protected abstract boolean warningOnInvalid(ServerConfigData theserverConfig)
theserverConfig
- the server configuration resembling the currently entered server configuration data
protected abstract void handleServerConfigUpdate(ServerConfigData updatedServerConfig)
updatedServerConfig
- the server configuration to handleprotected final String getName()
protected final URI getAddress()
protected final String getTruststore()
protected final String getTruststorePass()
protected final void checkAvailability()
protected final void displayDetails()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |