|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WizardPageInterface
WizardPageInterface is an interface used by pages contained in a Wizard
. See class BaseWizardPage
for an implementation of this interface.
Wizard
,
BaseWizardPage
Field Summary | |
---|---|
static int |
EXPLICIT_SET
a bit set on a flag passed to a page's showPage and hidePage methods. |
static int |
FIRST_TIME_SHOWN
a bit set on a flag passed to a page's showPage method, indicating it is the first time this page has been shown. |
static int |
NEXT
a bit set on a flag passed to a page's showPage and hidePage methods. |
static int |
PREVIOUS
a bit set on a flag passed to a page's showPage and hidePage methods. |
Method Summary | |
---|---|
void |
cleanup()
Called from Wizard's cleanup method. |
java.lang.String |
getPageInfo()
Returns information about this page to be used in the wizard title. |
java.lang.String |
getStatusImage()
Returns the source path or URL string for this page's image. |
boolean |
hidePage(int directionFlag)
Called whenever the page is traversed away from in the wizard. |
boolean |
isButtonEnabled(java.lang.String actionCommand)
Returns a boolean value indicating if the button whose action command is actionCommand is enabled. |
void |
showPage(int directionFlag)
Called whenever the page is shown in the wizard. |
Field Detail |
---|
static final int PREVIOUS
showPage
and hidePage
methods. In the showPage
method, it indicates that the page just traversed away from was the one previous
to this one on the path. In the hidePage
method, it indicates that the page to be
traversed to is the one previous to this one on the path.
showPage(int)
,
hidePage(int)
,
Constant Field Valuesstatic final int NEXT
showPage
and hidePage
methods.
In the showPage
method, it indicates that the page just traversed away
from was the one directly after
this one on the path. In the hidePage
method, it indicates that the page to be
traversed to is the one directly after this one on the path.
showPage(int)
,
hidePage(int)
,
Constant Field Valuesstatic final int FIRST_TIME_SHOWN
showPage
method, indicating it is the first time this page has been shown.
showPage(int)
,
Constant Field Valuesstatic final int EXPLICIT_SET
showPage
and hidePage
methods.
In the showPage
method it indicates this page has been called to be shown explicitly,
and not necessarily by the "Back" or "Next" buttons being activated. Therefore, the page just traversed away
from may not have been the one previous or next to it in the path.
In the hidePage
method it indicates the page to be
traversed to has been called to be shown explicitly.
showPage(int)
,
Constant Field ValuesMethod Detail |
---|
java.lang.String getPageInfo()
Wizard
method
getTitle
.
boolean isButtonEnabled(java.lang.String actionCommand)
Called from ButtonNavigationPanel
method enableButtons
.
actionCommand
- the action command of the button to check
actionCommand
is enabledBaseWizardPage
,
ButtonNavigationPanel
void showPage(int directionFlag)
directionFlag
- 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.PREVIOUS
,
NEXT
,
FIRST_TIME_SHOWN
,
EXPLICIT_SET
boolean hidePage(int directionFlag)
directionFlag
- 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.
PREVIOUS
,
NEXT
,
EXPLICIT_SET
void cleanup()
cleanup
method. Wizard pages may implement this method to release
resources such as open connections or files, before the wizard exits.
Wizard.cleanup()
java.lang.String getStatusImage()
getDefaultImage
, or
another source path or URL string for the page's image may be returned.
If the desired behavior is to have no image associated with the page, allowing the
page to take up the entire space in the Wizard deckAndImagePanel
, then this method
should return null.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |