|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.core.AnnotatedObject org.springframework.webflow.engine.ViewVariable
public class ViewVariable
A variable scoped to a particular view. Such a variable is allocated when a view-state is entered and destroyed when that view-state exits. The flow scope map is used as the backing variable store.
Field Summary |
---|
Fields inherited from class org.springframework.webflow.core.AnnotatedObject |
---|
CAPTION_PROPERTY, DESCRIPTION_PROPERTY |
Constructor Summary | |
---|---|
ViewVariable(java.lang.String name,
VariableValueFactory valueFactory)
Creates a new view variable. |
Method Summary | |
---|---|
void |
create(RequestContext context)
Creates this view variable. |
java.lang.Object |
destroy(RequestContext context)
Destroy this view variable. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the name of this view variable. |
VariableValueFactory |
getValueFactory()
Returns the source of the variable's initial value. |
int |
hashCode()
|
void |
restore(RequestContext context)
Restores this view variable's dependencies. |
Methods inherited from class org.springframework.webflow.core.AnnotatedObject |
---|
getAttributes, getCaption, getDescription, setCaption, setDescription |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewVariable(java.lang.String name, VariableValueFactory valueFactory)
name
- the name of the variablevalueFactory
- the source for the variable valueMethod Detail |
---|
public java.lang.String getName()
public VariableValueFactory getValueFactory()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void create(RequestContext context)
context
- the executing flowpublic void restore(RequestContext context)
context
- the executing flowpublic java.lang.Object destroy(RequestContext context)
context
- the executing flow
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |