|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.ui.structs.ActionStruct
public class ActionStruct
An action represents a call to an application function.
The SandUIAdaptor relies on
a UIScreenAdaptor for rendering
and reconstruction of a display screen. The UIScreenAdaptor
relies on the actionStatus field value, and the
UIFormOwner isActive method, to gate which actions are
applied.
Actions are divided into three broad types:
Actions co-exist with the SANDForms processing. Here's how a full processing cycle works:
Screen instance is initialized from the
SandUI declaration.
Link with associated actions (for example
FORM Links).
UIFormContext.action is CUSTOM then
call UIFormOwner.doAction with the request action
name.
UIFormContext.action is a standard action
(something other than CUSTOM or INIT),
then call UIFormManager.processForm to handle the
action.
UIFormContext.action is INIT then
call UIFormOwner.doAction with the setup action
name (defaults to formnameInit). Either
standard or custom action processing may explicitely trigger
initialization by setting the action to INIT on
completion.
Screen instance, rendering each
Link in the order declared. Within each
Link, render active requests and active values as
determined by the actionStatus and the value of
UIFormOwner.isActive for the action name.
Each Action is associated with a Link, which determines its source scope.
For a FORM link, the
UIFormContext passed to doAction is the UIFormContext for the
form. For a TEXT link, the UIFormContext passed to
doAction contains only the current userID, and is otherwise
undefined.
All actions produce a UIFormContext. For a value
action, the displayed result is the summary information for the
currInst object. To return only a single value, set the
currInst to a Value message.
For a request or value action, the result is the form
information. If a request or value action is used in a
TEXT link then the result is ignored (the action is used only for
side-effects).
Additional notes:
| Field Summary | |
|---|---|
protected int |
actionStatus
Whether this action is active or not. |
protected int |
actionType
What kind of action this is. |
protected java.lang.String |
displayName
The text name for the action button. |
protected java.lang.String |
name
The identifying name of this action. |
| Constructor Summary | |
|---|---|
ActionStruct()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String displayName
protected java.lang.String name
isActive and formAction
method calls.
protected int actionStatus
isActive method.
enumerated constant values:
DISABLED("disabled, always inactive") = 1INACTIVE("inactive, unless runtime activated") = 2ACTIVE("active, unless runtime inactivated") = 3UNCONDITIONAL("unconditional, always active") = 4protected int actionType
enumerated constant values:
SETUP("setup") = 1REQUEST("request") = 2VALUE("value") = 3| Constructor Detail |
|---|
public ActionStruct()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||