public class ViewVariable extends AnnotatedObject
CAPTION_PROPERTY, DESCRIPTION_PROPERTY
Constructor and Description |
---|
ViewVariable(String name,
VariableValueFactory valueFactory)
Creates a new view variable.
|
Modifier and Type | Method and Description |
---|---|
void |
create(RequestContext context)
Creates this view variable.
|
Object |
destroy(RequestContext context)
Destroy this view variable.
|
boolean |
equals(Object o) |
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, setDescription
public ViewVariable(String name, VariableValueFactory valueFactory)
name
- the name of the variablevalueFactory
- the source for the variable valuepublic String getName()
public VariableValueFactory getValueFactory()
public void create(RequestContext context)
context
- the executing flowpublic void restore(RequestContext context)
context
- the executing flowpublic Object destroy(RequestContext context)
context
- the executing flow