|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.AbstractOkCancelDialog
This class defines an abstract dialog which contains a button panel in its lower region. This button panel consists of an ok and a cancel button.
| Field Summary | |
protected UIManager |
uiManager
|
| Constructor Summary | |
AbstractOkCancelDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager)
Creates a new AbstractOkCancelDialog |
|
AbstractOkCancelDialog(org.eclipse.swt.widgets.Shell parent,
UIManager uiManager)
The constructor which requires the parent shell of this dialog and an UIManager for translating the button captions. |
|
| Method Summary | |
protected void |
close()
This closes the dialog |
protected abstract void |
createDialogContent(org.eclipse.swt.widgets.Composite parent)
Creates the dialog content which is shown above the button panel |
protected abstract java.lang.Object |
getCancelResult()
Returns the result in case the user pressed the cancel button. |
protected abstract java.lang.String |
getDialogTitle()
Returns the title text for this dialog. |
protected abstract java.lang.Object |
getOkResult()
Returns the result in case the user pressed the ok button. |
java.lang.Object |
open()
Opens the modal dialog and returns an object as result or null if cancel was choosen. |
void |
setLocation(org.eclipse.swt.graphics.Point dialogLocation)
Sets the location of this dialog relative to the display |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final UIManager uiManager
| Constructor Detail |
public AbstractOkCancelDialog(org.eclipse.swt.widgets.Shell parent,
UIManager uiManager)
parent - dialog's parent shelluiManager - for localizing
public AbstractOkCancelDialog(org.eclipse.swt.widgets.Shell parent,
int style,
UIManager uiManager)
AbstractOkCancelDialog
parent - the parent Composite to add this dialog tostyle - SWT style bitsuiManager - the UIManager instance to use for localization| Method Detail |
public java.lang.Object open()
public final void setLocation(org.eclipse.swt.graphics.Point dialogLocation)
dialogLocation - the new location of this dialogprotected void close()
protected abstract java.lang.String getDialogTitle()
protected abstract void createDialogContent(org.eclipse.swt.widgets.Composite parent)
parent - this dialog to which the content could be addedprotected abstract java.lang.Object getOkResult()
protected abstract java.lang.Object getCancelResult()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||