|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWFormValueManager
public class AWFormValueManager
Mechanism for deferring certain kinds of work.
The fieldsui layer needs to be able to defer some kinds of work - we allow
this by queuing up that work and executing it later. The kinds of work
that need to be deferred are to set object values, to run object triggers
and to run behaviors (visibility, editability & validity). These different
kinds of work are queued up during the applyValues phase and then executed
in invokeAction just as we are about to actually invoke the action.
The whole reason for the deferral is that we need the back-end data to remain
untouched from the end of renderResponse, through applyValues and through the
navigation of invoke - up to when we actually call the action
Field Summary | |
---|---|
static int |
ComputedValue
queue for computed value |
static int |
DeferredValues
queue for object model field setting |
static int |
Triggers
queue for running triggers |
static int |
Validations
queus for running behaviors |
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber |
Constructor Summary | |
---|---|
AWFormValueManager(AWPage page)
Create the form value manager |
Method Summary | |
---|---|
void |
add(int queueId,
AWFormValueOperation formValueOperation)
Add a piece of work to one of the queues. |
void |
clear()
Clear all the queues. |
void |
clearQueue(int index)
Clear a single queue. |
void |
processQueue(int queueId)
Process a single queue. |
void |
suppressWork(int queueId)
Suppress the execution of one of the queues. |
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DeferredValues
public static final int Triggers
public static final int ComputedValue
public static final int Validations
Constructor Detail |
---|
public AWFormValueManager(AWPage page)
Method Detail |
---|
public void clear()
public void suppressWork(int queueId)
WARNING! using this method will cause serious problems in subtle ways. Don't use it unless you thoroughly understand the use of the queues
queueId
- which queue should be suppressed. Should be one of
DeferredValues, Triggers or Validationspublic void add(int queueId, AWFormValueOperation formValueOperation)
queueId
- which queue this work should go in. Should be one of
DeferredValues, Triggers or ValidationsformValueOperation
- The work to do. Cannot be null.processQueue(int)
public void processQueue(int queueId)
perform()
method called. This method ignores queue suppression, so that callers
may use this method to run a previously suppressed queue.
queueId
- which queue we are running. Should be one of
DeferredValues, Triggers or Validationspublic void clearQueue(int index)
index
- which queue we are clearing. Should be one of
DeferredValues, Triggers or Validations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |