|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.ConfirmationDialog
public abstract class ConfirmationDialog
Dialog for asking confirmation to the user. The onConfirm
is
called when the user presses the yes button.
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
ConfirmationDialog()
|
|
ConfirmationDialog(String title,
String message)
|
|
ConfirmationDialog(String title,
Window parent,
String message)
|
Method Summary | |
---|---|
protected JComponent |
createDialogContentPane()
Return the GUI which allows the user to manipulate the business objects related to this dialog. |
protected void |
disposeDialogContentPane()
Cleanup any components/objects that are created during ApplicationDialog.createDialogContentPane() . |
protected String |
getCancelCommandId()
Returns the id for the cancel command. |
protected String |
getFinishCommandId()
Subclasses may override to return a custom message key, default is "okCommand", corresponding to the "&OK" label. |
protected int |
getNoKey()
|
protected int |
getYesKey()
|
protected abstract void |
onConfirm()
|
protected boolean |
onFinish()
Request invocation of the action taken when the user hits the OK (finish) button. |
protected void |
onInitialized()
Template lifecycle method invoked after the dialog control is initialized. |
protected void |
registerDefaultCommand()
Register the finish button as the default dialog button. |
void |
setConfirmationMessage(String message)
|
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 |
Constructor Detail |
---|
public ConfirmationDialog()
public ConfirmationDialog(String title, String message)
public ConfirmationDialog(String title, Window parent, String message)
Method Detail |
---|
public void setConfirmationMessage(String message)
protected String getFinishCommandId()
ApplicationDialog
getFinishCommandId
in class ApplicationDialog
protected String getCancelCommandId()
ApplicationDialog
getCancelCommandId
in class ApplicationDialog
protected void registerDefaultCommand()
ApplicationDialog
registerDefaultCommand
in class ApplicationDialog
protected void onInitialized()
ApplicationDialog
onInitialized
in class ApplicationDialog
protected int getYesKey()
protected int getNoKey()
protected JComponent createDialogContentPane()
ApplicationDialog
OK
and Cancel
buttons, in a standard manner.
Any components/objects created at this point need to be disposed in
ApplicationDialog.disposeDialogContentPane()
.
createDialogContentPane
in class ApplicationDialog
ApplicationDialog.disposeDialogContentPane()
protected void disposeDialogContentPane()
ApplicationDialog
ApplicationDialog.createDialogContentPane()
. This method is called if the
CloseAction
is set to CloseAction.DISPOSE
and the dialog
is being closed. This ensures that when disposing the surrounding dialog,
the content pane can be disposed as well.
disposeDialogContentPane
in class ApplicationDialog
ApplicationDialog.createDialogContentPane()
,
ApplicationDialog.dispose()
protected final boolean onFinish()
ApplicationDialog
OK
(finish) button.
onFinish
in class ApplicationDialog
protected abstract void onConfirm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |