T
- the dialog page typepublic abstract class MultiPageDialog<T extends org.eclipse.jface.dialogs.IDialogPage>
extends org.eclipse.jface.dialogs.TrayDialog
implements org.eclipse.jface.dialogs.IPageChangeProvider
IDialogPage
sblockedHandler, 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
Constructor and Description |
---|
MultiPageDialog()
Creates a new dialog using the current shell
|
MultiPageDialog(org.eclipse.swt.widgets.Shell shell)
Creates a new dialog using the given shell
|
Modifier and Type | Method and Description |
---|---|
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) |
close, closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
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
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
public MultiPageDialog()
public MultiPageDialog(org.eclipse.swt.widgets.Shell shell)
shell
- the shellprotected 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)
methodpublic 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 pagepublic 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 setBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a