public class ViewVariable extends AnnotatedObject
CAPTION_PROPERTY, DESCRIPTION_PROPERTY| Constructor and Description |
|---|
ViewVariable(java.lang.String name,
VariableValueFactory valueFactory)
Creates a new view variable.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAttributes, getCaption, getDescription, setCaption, setDescriptionpublic ViewVariable(java.lang.String name,
VariableValueFactory valueFactory)
name - the name of the variablevalueFactory - the source for the variable valuepublic java.lang.String getName()
public VariableValueFactory getValueFactory()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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