public abstract class Dialog extends java.lang.Object implements Invokable
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<MustButton> |
additionalButtons |
protected MustButton |
backButton |
protected MustButton |
cancelButton |
static java.lang.String |
NAME_FOR_BACK_ACTION |
static java.lang.String |
NAME_FOR_CANCEL_ACTION |
static java.lang.String |
NAME_FOR_CLOSE_ACTION |
static java.lang.String |
NAME_FOR_DIALOG_NBR |
static java.lang.String |
NAME_FOR_HELP_ACTION |
static java.lang.String |
NAME_FOR_LIST_ACTION |
static java.lang.String |
NAME_FOR_NEW_ENTRY_ACTION |
static java.lang.String |
NAME_FOR_OK_ACTION |
protected MustButton |
okButton |
protected boolean |
processComplete |
protected SessionData |
sessionData |
protected int |
stackMovement |
Constructor and Description |
---|
Dialog(SessionData sessionData)
Constructs a new dialog.
|
Modifier and Type | Method and Description |
---|---|
void |
afterOutput()
Called by SessionStd after the servlet response is written.
|
void |
appendAdditionalButton(MustButton button)
Appends an additional button next to the standard buttons.
|
void |
beforeOutput()
Called by SessionStd before the servlet response is written.
|
void |
destroy()
Destroys the frame.
|
void |
fetchValuesFromRequest(GeneralizedRequest request)
Causes the invokable to delegate this function to all embedded markupables
to fetch their current value as edited by the user from the request.
|
protected void |
finalize() |
protected void |
free()
Frees (releases) references caused by this frame, particularly static
register entries.
|
java.util.Vector<MustButton> |
getAdditionalButtons()
Returns additional buttons to be displayed from the layout manager
|
java.lang.String |
getBackButtonTagSequence()
Returns the tag sequence to represent the back button.
|
java.lang.String |
getCancelButtonTagSequence()
Returns the tag sequence to represent the cancel button.
|
protected java.lang.String |
getFooter()
Returns the footer as a markup tag sequence.
|
protected java.lang.String |
getHeader()
Returns the header as a markup tag sequence.
|
HelpContext |
getHelpContext()
Returns the component's help context.
|
java.lang.Class<? extends Invokable> |
getInvokableInAdvance()
Returns a Invokable class which is to be invoked before this Invokable can be shown.
|
java.lang.String |
getOkButtonTagSequence()
Returns the tag sequence to represent the OK button.
|
java.lang.String |
getScriptToExecute()
Returns the script to be executed at the next user contact.
|
protected java.lang.String |
getScriptToExecuteSequence()
Returns the script to execute as a markup tag sequence.
|
int |
getStackMovement()
Returns the stack movement.
|
java.lang.String |
getSubTitle()
Returns the dialogs's title.
|
java.lang.String |
getTitle()
Returns the dialogs's title.
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isCancelable()
Returns true if the dialog accepts to be canceled.
|
protected boolean |
isPost(GeneralizedRequest request)
Returns true if the request is of method "POST" - useful
to check default Buttons.
|
boolean |
isSuitableDialog(GeneralizedRequest request)
Returns true if the dialog fits to the qualification set in the previous output.
|
void |
process(GeneralizedRequest request)
Processes the user's request.
|
void |
setHelpContext(java.lang.String helpTopic)
Sets the component's context help.
|
void |
setHelpContext(java.lang.String helpTopic,
java.lang.String helpTarget)
Sets the component's context help.
|
void |
setMessageToKeep(java.lang.String messageToKeep)
Sets the message to be read by the user.
|
protected void |
setMessageToKeepIfNotAlreadySet(java.lang.String messageToKeep)
Sets the message to be read by the user if there is no message, yet.
|
void |
setScriptToExecute(java.lang.String newScriptToExecute)
Sets the script to be executed at the next user contact.
|
void |
setStackMovement(int newStackMovement)
Sets the stack movement. 0 means stay in the same tier,
-1 means go one step back in stack,
1 means go one step deeper in stack.
|
void |
setSubTitle(java.lang.String newSubTitle)
Sets the dialogs's subtitle.
|
void |
setTitle(java.lang.String newTitle)
Sets the dialogs's title.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSubmission, setSubmitter, wantToBeFinalized
public static final java.lang.String NAME_FOR_OK_ACTION
public static final java.lang.String NAME_FOR_CANCEL_ACTION
public static final java.lang.String NAME_FOR_BACK_ACTION
public static final java.lang.String NAME_FOR_LIST_ACTION
public static final java.lang.String NAME_FOR_NEW_ENTRY_ACTION
public static final java.lang.String NAME_FOR_HELP_ACTION
public static final java.lang.String NAME_FOR_CLOSE_ACTION
public static final java.lang.String NAME_FOR_DIALOG_NBR
protected SessionData sessionData
protected MustButton okButton
protected MustButton cancelButton
protected MustButton backButton
protected java.util.Vector<MustButton> additionalButtons
protected boolean processComplete
protected int stackMovement
public Dialog(SessionData sessionData)
sessionData
- the session's public datapublic java.lang.Class<? extends Invokable> getInvokableInAdvance()
Invokable
getInvokableInAdvance
in interface Invokable
public void init()
public void appendAdditionalButton(MustButton button)
button
- the button to appendpublic java.util.Vector<MustButton> getAdditionalButtons()
protected java.lang.String getHeader()
protected java.lang.String getFooter()
public java.lang.String getOkButtonTagSequence()
public java.lang.String getCancelButtonTagSequence()
public java.lang.String getBackButtonTagSequence()
protected java.lang.String getScriptToExecuteSequence()
public boolean isCancelable()
isCancelable
in interface Invokable
public boolean isSuitableDialog(GeneralizedRequest request)
isSuitableDialog
in interface Invokable
request
- the request to compare dialog stepspublic void beforeOutput()
Invokable
beforeOutput
in interface Invokable
SessionStd
public void afterOutput()
Invokable
afterOutput
in interface Invokable
SessionStd
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Invokable
request
- the request from where the values are to be fetchedMarkupable#fetchYourValueFromRequest
protected boolean isPost(GeneralizedRequest request)
request
- the request to checkpublic void process(GeneralizedRequest request)
public void setHelpContext(java.lang.String helpTopic)
helpTopic
- the context help's topicpublic void setTitle(java.lang.String newTitle)
newTitle
- the title of the dialogpublic java.lang.String getTitle()
public void setSubTitle(java.lang.String newSubTitle)
newTitle
- the subtitle of the dialogpublic java.lang.String getSubTitle()
public void setHelpContext(java.lang.String helpTopic, java.lang.String helpTarget)
helpTopic
- the context help's topichelpTarget
- the context help's targetpublic HelpContext getHelpContext()
public void setMessageToKeep(java.lang.String messageToKeep)
messageToKeep
- the message for the userprotected void setMessageToKeepIfNotAlreadySet(java.lang.String messageToKeep)
messageToKeep
- the message for the userpublic void setScriptToExecute(java.lang.String newScriptToExecute)
newScriptToExecute
- the script to executepublic java.lang.String getScriptToExecute()
public void setStackMovement(int newStackMovement)
newStackMovement
- SessionData.classToInvokeNext
public int getStackMovement()
getStackMovement
in interface Invokable
public final void destroy()
protected void free()
destroy()
protected final void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de