|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infai.emo.matcher.editor.wizard.Wizard
public abstract class Wizard
This is an abstract class for creating a custom wizard within the eclipse-ide.
Field Summary | |
---|---|
private int |
activePageIndex
The index of the currently activated page. |
private org.eclipse.swt.widgets.Button |
back
The Back-Button. |
private org.eclipse.swt.widgets.Composite |
buttonContainer
The Container for the buttons. |
private org.eclipse.swt.widgets.Button |
cancel
The Cancel-Button. |
private boolean |
canFinish
This flag indicates if the wizard is able to finish and close. |
private org.eclipse.swt.widgets.Display |
d
The Display the wizard is shown on. |
private org.eclipse.swt.widgets.Button |
finish
The Finish-Button. |
private org.eclipse.swt.widgets.Composite |
header
This is the Composite that contains the header of the wizard with the image, title and description. |
private org.eclipse.swt.graphics.Image |
image
This is the wizard-icon. |
private org.eclipse.swt.widgets.Button |
next
The Next-Button. |
private org.eclipse.swt.widgets.Composite |
pageContainer
The Composite that contains the wizard-pages. |
private java.lang.String |
pageDescription
The Description of the currently activated page. |
private java.util.Vector<WizardPage> |
pages
The Vector that caches the wizard-pages in the order they are added. |
private java.lang.String |
pageTitle
The Title of the currently activated page. |
private org.eclipse.swt.widgets.Shell |
shell
The Shell which contains the wizard. |
Constructor Summary | |
---|---|
Wizard(java.lang.String title)
A new Wizard with a custom title. |
Method Summary | |
---|---|
void |
addPage(WizardPage page)
Add a new WizardPage to the wizard. |
abstract boolean |
computeCancel()
This method is the central action to be executed after clicking the cancel-button. |
abstract boolean |
computeFinish()
This method is the central action to be executed after clicking the finish-button. |
private void |
createButtons(org.eclipse.swt.widgets.Composite parent)
This method creates the button-Container including the four standard-buttons. |
private void |
createGUI(java.lang.String title)
creates the user-interface of the wizard. |
private void |
createHeader()
This method creates the header containing the icon, the title of the currently active page and its description. |
void |
disableBack()
Disables the back-button. |
void |
disableFinish()
Disables the finish-button. |
void |
disableNext()
Disables the next-button. |
void |
enableBack()
Enables the back-button. |
void |
enableFinish()
Enables the finish-button. |
void |
enableNext()
Enables the next-button or the finish-button if there is no other page. |
org.eclipse.swt.widgets.Display |
getDisplay()
|
java.util.Vector<WizardPage> |
getPages()
|
org.eclipse.swt.widgets.Shell |
getShell()
|
private void |
nextPage()
Disables current and enables next page. |
void |
openWizard()
Method opens the pre-built wizard if the number of pages is different from 0. |
private void |
previousPage()
Disables current and enables previous page. |
void |
setPage(WizardPage page)
This method switches to another Page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.eclipse.swt.widgets.Display d
Display
private org.eclipse.swt.widgets.Shell shell
Shell
private org.eclipse.swt.widgets.Button back
Button
private org.eclipse.swt.widgets.Button next
Button
private org.eclipse.swt.widgets.Button finish
Button
private org.eclipse.swt.widgets.Button cancel
Button
private java.util.Vector<WizardPage> pages
Vector
,
WizardPage
private java.lang.String pageTitle
private java.lang.String pageDescription
private boolean canFinish
private org.eclipse.swt.widgets.Composite header
Composite
private org.eclipse.swt.widgets.Composite pageContainer
Composite
private org.eclipse.swt.widgets.Composite buttonContainer
Composite
private org.eclipse.swt.graphics.Image image
Image
private int activePageIndex
Constructor Detail |
---|
public Wizard(java.lang.String title)
title
- the title for the wizard.Method Detail |
---|
private void createGUI(java.lang.String title)
title
- the title of the wizard.private void createHeader()
private void createButtons(org.eclipse.swt.widgets.Composite parent)
parent
- the composite the container shall be on.Composite
public void setPage(WizardPage page)
page
- the page to activate.WizardPage
public void addPage(WizardPage page)
page
- the new page.WizardPage
public void enableNext()
public void disableNext()
public void enableBack()
public void disableBack()
public void enableFinish()
public void disableFinish()
public abstract boolean computeFinish()
public abstract boolean computeCancel()
public void openWizard()
private void nextPage()
private void previousPage()
public java.util.Vector<WizardPage> getPages()
Vector
,
WizardPage
public org.eclipse.swt.widgets.Display getDisplay()
Display
public org.eclipse.swt.widgets.Shell getShell()
Shell
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |