|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog org.eclipse.jface.dialogs.TrayDialog org.eclipse.jface.dialogs.TitleAreaDialog sk.uniba.euromath.editor.wizards.WizardDialog
public final class WizardDialog
A dialog to show a wizard to the end user.
In typical usage, the client instantiates this class with a particular wizard. The dialog serves as the wizard container and orchestrates the presentation of its pages.
The standard layout is roughly as follows: it has an area at the top containing both the wizard's title, description, and image; the actual wizard page appears in the middle; below that is a progress indicator (which is made visible if needed); and at the bottom of the page is message line and a button bar containing Help, Next, Back, Finish, and Cancel buttons (or some subset).
Wizard is not disposed when the dialog exits.
Nested Class Summary | |
---|---|
protected class |
WizardDialog.PageContainerFillLayout
A layout for a container which includes several pages, like a notebook, wizard, or preference dialog. |
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary | |
---|---|
static String |
WIZ_IMG_ERROR
Image registry key for error message image (value "dialog_title_error_image" ). |
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
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 | |
---|---|
WizardDialog(Shell parentShell,
IWizard newWizard,
String processName)
Creates a new wizard dialog for the given wizard. |
Method Summary | |
---|---|
void |
addPageChangedListener(IPageChangedListener listener)
|
protected void |
backPressed()
The Back button has been pressed. |
protected void |
buttonPressed(int buttonId)
|
protected void |
cancelPressed()
|
boolean |
close()
|
protected void |
configureShell(Shell newShell)
|
protected Control |
createButtonBar(Composite parent)
Creates and returns the contents of this dialog's button bar. |
protected void |
createButtonsForButtonBar(Composite parent)
|
protected Control |
createContents(Composite parent)
The WizardDialog implementation of this
Window method calls super.createContents to
create the controls. |
protected Control |
createDialogArea(Composite parent)
|
protected void |
finishPressed()
The Finish button has been pressed. |
protected void |
firePageChanged()
Notifies any selection changed listeners that the selected page has changed. |
protected Button |
getButton(int id)
Return the cancel button if the id is a the cancel id. |
BaseWizardPage |
getCurrentPage()
Returns page, currently shown on screen. |
String |
getErrorMessage()
Returns current error message. |
String |
getMessage()
Returns current message. |
int |
getMessageType()
Returns current message's level. |
Object |
getSelectedPage()
|
protected IWizard |
getWizard()
Returns the wizard this dialog is currently displaying. |
protected void |
nextPressed()
The Next button has been pressed. |
void |
removePageChangedListener(IPageChangedListener listener)
|
void |
setErrorMessage(String newErrorMessage)
|
void |
setMessage(String newMessage,
int newType)
|
void |
setMinimumPageSize(int minWidth,
int minHeight)
Sets the minimum page size used for the pages. |
void |
setMinimumPageSize(Point size)
Sets the minimum page size used for the pages. |
void |
setPageSize(int width,
int height)
Sets the size of all pages. |
void |
setPageSize(Point size)
Sets the size of all pages. |
protected void |
update()
Updates this dialog's controls to reflect the current page. |
void |
updateSize()
Updates size of the window. |
protected void |
updateSize(Composite tile)
Computes the correct dialog size for the current page and resizes its shell if nessessary. |
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
getInitialSize, getTitleArea, getTitleImageLabel, setMessage, setTitle, setTitleAreaColor, setTitleImage |
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
---|
closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WIZ_IMG_ERROR
"dialog_title_error_image"
).
Constructor Detail |
---|
public WizardDialog(Shell parentShell, IWizard newWizard, String processName)
parentShell
- the parent shellnewWizard
- the wizard this dialog is working onprocessName
- the name of the functionality that the wizard
provides. Shown in the window caption.Method Detail |
---|
protected void configureShell(Shell newShell)
configureShell
in class Window
protected void backPressed()
protected void buttonPressed(int buttonId)
buttonPressed
in class Dialog
protected void cancelPressed()
cancelPressed
in class Dialog
public boolean close()
close
in class TrayDialog
protected Control createButtonBar(Composite parent)
The WizardDialog
implementation of this framework method
prevents the composite's columns from being made equal width in order to
remove the margin between the Back and Next buttons.
createButtonBar
in class TrayDialog
parent
- the parent composite to contain the button bar
protected void createButtonsForButtonBar(Composite parent)
createButtonsForButtonBar
in class Dialog
protected Button getButton(int id)
getButton
in class Dialog
id
- the button id
protected Control createContents(Composite parent)
WizardDialog
implementation of this
Window
method calls super.createContents
to
create the controls. Then it shows the first page.
createContents
in class TitleAreaDialog
protected Control createDialogArea(Composite parent)
createDialogArea
in class TitleAreaDialog
protected void finishPressed()
public BaseWizardPage getCurrentPage()
protected IWizard getWizard()
protected void nextPressed()
public void setMinimumPageSize(int minWidth, int minHeight)
minWidth
- the minimum page widthminHeight
- the minimum page heightsetMinimumPageSize(Point)
public void setMinimumPageSize(Point size)
size
- the page size encoded as new Point(width,height)
setMinimumPageSize(int,int)
public void setPageSize(int width, int height)
width
- the page widthheight
- the page heightsetPageSize(Point)
public void setPageSize(Point size)
size
- the page size encoded as new Point(width,height)
setPageSize(int,int)
protected void update()
public void setMessage(String newMessage, int newType)
setMessage
in class TitleAreaDialog
public void setErrorMessage(String newErrorMessage)
setErrorMessage
in class TitleAreaDialog
public String getErrorMessage()
public String getMessage()
public int getMessageType()
protected void updateSize(Composite tile)
tile
- the composite where the wizard page is placed, to use to
resize the dialogpublic void updateSize()
public Object getSelectedPage()
getSelectedPage
in interface IPageChangeProvider
public void addPageChangedListener(IPageChangedListener listener)
addPageChangedListener
in interface IPageChangeProvider
public void removePageChangedListener(IPageChangedListener listener)
removePageChangedListener
in interface IPageChangeProvider
protected void firePageChanged()
IPageChangedListener.pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |