|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.wizard2.BaseWizardPage
public class BaseWizardPage
This class is provided as a convenience for easily creating wizard pages, and is designed to be subclassed. The WizardPageInterface interface is implemented, with many of the methods left as no-op where the behavior will be defined by the subclasses.
| Field Summary | |
|---|---|
protected java.lang.String |
image
a String specifying the source path or URL for obtaining the image for the page |
protected boolean |
isBackEnabled
A boolean value specifying the enablement of the default "Back" button, with action command ButtonNavigationPanel.BACK_COMMAND. |
protected boolean |
isNextEnabled
A boolean value specifying the enablement of the default "Next" button, with action command ButtonNavigationPanel.NEXT_FINISH_COMMAND. |
protected java.lang.String |
pageInfo
a String specifying information about the page. |
protected Wizard |
wizard
The Wizard object to which the page belongs |
| Fields inherited from interface com.sas.swing.visuals.wizard.WizardPageInterface |
|---|
EXPLICIT_SET, FIRST_TIME_SHOWN, NEXT, PREVIOUS |
| Constructor Summary | |
|---|---|
BaseWizardPage(Wizard wizard)
Calls BaseWizardPage(wizard, null). |
|
BaseWizardPage(Wizard wizard,
java.lang.String pageInfo)
Creates a BaseWizardPage object with the specified wizard, and pageInfo. |
|
| Method Summary | |
|---|---|
void |
cleanup()
No-op WizardPageInterface method |
java.lang.String |
getPageInfo()
WizardPageInterface method. |
java.lang.String |
getStatusImage()
WizardPageInterface method. |
boolean |
hidePage(int directionFlag)
WizardPageInterface method. |
boolean |
isButtonEnabled(java.lang.String actionCommand)
WizardPageInterface method. |
void |
setButtonEnabled(java.lang.String actionCommand,
boolean isEnabled)
|
void |
setPageInfo(java.lang.String description)
Sets pageInfo to description. |
void |
setStatusImage(java.lang.String imageSource)
Sets the image to imageSource, to specify the source path or
URL for obtaining the image for this page |
void |
showPage(int directionFlag)
No-op WizardPageInterface method |
| Field Detail |
|---|
protected boolean isNextEnabled
isButtonEnabled(java.lang.String)protected boolean isBackEnabled
isButtonEnabled(java.lang.String)protected Wizard wizard
protected java.lang.String pageInfo
protected java.lang.String image
getStatusImage(),
setStatusImage(java.lang.String)| Constructor Detail |
|---|
public BaseWizardPage(Wizard wizard)
wizard, and pageInfo set to null.
The image is set to the wizard's default image.
wizard - the Wizard object to which this page belongswizard
public BaseWizardPage(Wizard wizard,
java.lang.String pageInfo)
wizard, and pageInfo.
The image is set to the wizard's default image.
wizard - the Wizard object to which this page belongspageInfo - a String specifying information about the pagewizard,
pageInfo,
getPageInfo(),
setPageInfo(java.lang.String)| Method Detail |
|---|
public java.lang.String getPageInfo()
pageInfo, a String specifying information about the page.
getPageInfo in interface WizardPageInterfacepageInfo, a String specifying information about the pagepageInfo,
setPageInfo(java.lang.String)public void setPageInfo(java.lang.String description)
pageInfo to description.
description - a String specifying information about the pagepageInfo,
getPageInfo()public boolean isButtonEnabled(java.lang.String actionCommand)
If the action command actionCommand is ButtonNavigationPanel.NEXT_FINISH_COMMAND, then
isNextEnabled is returned.
If the action command actionCommand is ButtonNavigationPanel.BACK_COMMAND, then
isBackEnabled is returned.
Otherwise, true is returned.
isButtonEnabled in interface WizardPageInterfaceactionCommand - the action command of the button to check
isNextEnabled is returned if actionCommand is ButtonNavigationPanel.NEXT_FINISH_COMMAND,
isBackEnabled is returned if actionCommand is ButtonNavigationPanel.BACK_COMMAND,
otherwise true is returned.BaseWizardPage,
ButtonNavigationPanel
public void setButtonEnabled(java.lang.String actionCommand,
boolean isEnabled)
public void showPage(int directionFlag)
showPage in interface WizardPageInterfacedirectionFlag - an integer flag whose bits specify the page that was shown before, relative to this page
on the path. Also specifies if it is the first time the page has
been shown. Valid values are PREVIOUS, NEXT, or EXPLICIT_SET, in combination with FIRST_TIME_SHOWN, if it is
the first time the page has been shown.WizardPageInterface.PREVIOUS,
WizardPageInterface.NEXT,
WizardPageInterface.FIRST_TIME_SHOWN,
WizardPageInterface.EXPLICIT_SETpublic boolean hidePage(int directionFlag)
hidePage in interface WizardPageInterfacedirectionFlag - an integer flag whose bits specify the page that will be shown after this one, relative to this page
on the path. Valid values are PREVIOUS, NEXT, or EXPLICIT_SET.
WizardPageInterface.PREVIOUS,
WizardPageInterface.NEXT,
WizardPageInterface.EXPLICIT_SETpublic void cleanup()
cleanup in interface WizardPageInterfaceWizard.cleanup()public java.lang.String getStatusImage()
image object, a string specifying the source path or URL for obtaining the image for this page.
getStatusImage in interface WizardPageInterfaceimage, a string specifying the source path or URL for obtaining the image for this pageimage,
setStatusImage(java.lang.String)public void setStatusImage(java.lang.String imageSource)
image to imageSource, to specify the source path or
URL for obtaining the image for this page
imageSource - a string specifying the source path or URL for obtaining the image for the pageimage,
getStatusImage()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||