|
Humboldt Alignment Editor 2.5.0 | |||||||||
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
org.eclipse.jface.dialogs.TrayDialog
eu.esdihumboldt.hale.ui.util.dialog.MultiPageDialog<T>
T
- the dialog page typepublic abstract class MultiPageDialog<T extends org.eclipse.jface.dialogs.IDialogPage>
Dialog consisting of multiple IDialogPage
s
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary |
---|
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 | |
---|---|
MultiPageDialog()
Creates a new dialog using the current shell |
|
MultiPageDialog(org.eclipse.swt.widgets.Shell shell)
Creates a new dialog using the given shell |
Method Summary | |
---|---|
void |
addPage(T page)
Adds a dialog page |
void |
addPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
|
protected abstract boolean |
allowPageChange(T oldPage,
T newPage)
Called before the page changes |
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
|
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
protected abstract void |
createPages()
Create the dialog pages and add them using the addPage(IDialogPage) method |
protected void |
firePageChange(T oldPage,
T newPage)
Fire a page change |
T |
getCurrentPage()
Get the current page |
org.eclipse.swt.graphics.Image |
getImage()
|
protected org.eclipse.swt.graphics.Point |
getInitialSize()
|
Object |
getSelectedPage()
|
String |
getTitle()
|
protected abstract void |
onPageChange(T oldPage,
T newPage)
Called after the page has changed |
void |
removePageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
|
void |
setImage(org.eclipse.swt.graphics.Image image)
|
void |
setTitle(String title)
|
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
---|
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, 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, 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 |
---|
public MultiPageDialog()
public MultiPageDialog(org.eclipse.swt.widgets.Shell shell)
shell
- the shellMethod Detail |
---|
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
Window.configureShell(Shell)
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.dialogs.Dialog
Dialog.createContents(Composite)
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.Dialog
Dialog.getInitialSize()
protected abstract void createPages()
addPage(IDialogPage)
method
public void addPage(T page)
page
- the dialog page to addpublic void addPageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
addPageChangedListener
in interface org.eclipse.jface.dialogs.IPageChangeProvider
IPageChangeProvider.addPageChangedListener(IPageChangedListener)
public Object getSelectedPage()
getSelectedPage
in interface org.eclipse.jface.dialogs.IPageChangeProvider
IPageChangeProvider.getSelectedPage()
public T getCurrentPage()
public void removePageChangedListener(org.eclipse.jface.dialogs.IPageChangedListener listener)
removePageChangedListener
in interface org.eclipse.jface.dialogs.IPageChangeProvider
IPageChangeProvider.removePageChangedListener(IPageChangedListener)
protected void firePageChange(T oldPage, T newPage)
oldPage
- the old pagenewPage
- the new pageprotected abstract void onPageChange(T oldPage, T newPage)
oldPage
- the old pagenewPage
- the new pageprotected abstract boolean allowPageChange(T oldPage, T newPage)
oldPage
- the old pagenewPage
- the new page
public String getTitle()
public void setTitle(String title)
title
- the title to setpublic org.eclipse.swt.graphics.Image getImage()
public void setImage(org.eclipse.swt.graphics.Image image)
image
- the image to set
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |