|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.dialog.ApplicationDialog
org.springframework.richclient.dialog.TitledApplicationDialog
org.springframework.richclient.wizard.WizardDialog
public class WizardDialog
Dialog for wizards.
| Field Summary | |
|---|---|
protected ActionCommand |
backCommand
|
protected WizardPage |
currentPage
|
protected int |
largestPageHeight
|
protected int |
largestPageWidth
|
protected ActionCommand |
nextCommand
|
protected Wizard |
wizard
|
| Fields inherited from class org.springframework.richclient.dialog.ApplicationDialog |
|---|
DEFAULT_CANCEL_COMMAND_ID, DEFAULT_FINISH_COMMAND_ID, DEFAULT_FINISH_SUCCESS_MESSAGE_KEY, DEFAULT_FINISH_SUCCESS_TITLE_KEY, logger, SUCCESS_FINISH_MESSAGE_KEY, SUCCESS_FINISH_TITLE_KEY |
| Fields inherited from interface org.springframework.richclient.dialog.Messagable |
|---|
MESSAGE_PROPERTY |
| Constructor Summary | |
|---|---|
WizardDialog()
|
|
WizardDialog(Wizard wizard)
|
|
| Method Summary | |
|---|---|
protected JComponent |
createTitledDialogContentPane()
|
protected Object[] |
getCommandGroupMembers()
Template getter method to return the commands to populate the dialog button bar. |
WizardPage |
getCurrentPage()
Returns the current wizard page for this container. |
protected String |
getFinishCommandId()
Subclasses may override to return a custom message key, default is "okCommand", corresponding to the "&OK" label. |
protected void |
onAboutToShow()
Template lifecycle method invoked right before the dialog is to become visible. |
protected void |
onBack()
|
protected void |
onCancel()
Handle a dialog cancellation request. |
protected boolean |
onFinish()
Request invocation of the action taken when the user hits the OK (finish) button. |
protected void |
onNext()
|
void |
propertyChange(PropertyChangeEvent e)
|
void |
setWizard(Wizard wizard)
|
void |
showPage(WizardPage page)
Makes the given page visible. |
protected void |
updateDialog()
Updates this dialog's controls to reflect the current page. |
protected void |
updateMessagePane()
Updates the message (or error message) shown in the message line to reflect the state of the currently active page in this container. |
protected void |
updateTitlePane()
Updates the title bar (title, description, and image) to reflect the state of the currently active page in this container. |
| Methods inherited from class org.springframework.richclient.dialog.TitledApplicationDialog |
|---|
addDialogComponents, addPropertyChangeListener, addPropertyChangeListener, createDialogContentPane, disposeDialogContentPane, getDescription, getMessage, getTitlePaneImage, getTitlePaneTitle, isMessageShowing, removePropertyChangeListener, removePropertyChangeListener, setCaption, setContentPane, setDescription, setImage, setMessage, setTitlePaneImage, setTitlePaneTitle |
| Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
|---|
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Wizard wizard
protected ActionCommand nextCommand
protected ActionCommand backCommand
protected WizardPage currentPage
protected int largestPageWidth
protected int largestPageHeight
| Constructor Detail |
|---|
public WizardDialog()
public WizardDialog(Wizard wizard)
| Method Detail |
|---|
public void setWizard(Wizard wizard)
protected String getFinishCommandId()
ApplicationDialog
getFinishCommandId in class ApplicationDialogprotected JComponent createTitledDialogContentPane()
createTitledDialogContentPane in class TitledApplicationDialogprotected Object[] getCommandGroupMembers()
ApplicationDialog
getCommandGroupMembers in class ApplicationDialogprotected void onAboutToShow()
ApplicationDialog
onAboutToShow in class ApplicationDialogpublic void showPage(WizardPage page)
WizardContainerThis method should not be use for normal page sequencing (back, next) which is handled by the container itself. It may, however, be used to move to another page in response to some custom action such as double clicking in a list.
showPage in interface WizardContainerpage - the page to showWizardContainer.getCurrentPage()public WizardPage getCurrentPage()
WizardContainer
getCurrentPage in interface WizardContainernull if the container
is not yet showing the wizardWizardContainer.showPage(org.springframework.richclient.wizard.WizardPage)protected void onBack()
protected void onNext()
protected boolean onFinish()
ApplicationDialogOK (finish) button.
onFinish in class ApplicationDialogprotected void onCancel()
ApplicationDialog
onCancel in class ApplicationDialogprotected void updateDialog()
protected void updateTitlePane()
protected void updateMessagePane()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||