|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for FacesBean storage.
Nested Class Summary | |
static class |
FacesBean.Type
|
Method Summary | |
void |
addAll(FacesBean from)
Copies all properties, bindings, and list entries from one bean to another. |
void |
addEntry(PropertyKey listKey,
java.lang.Object value)
Add an entry to a list. |
java.util.Set |
bindingKeySet()
Returns a Set of all PropertyKeys that have ValueBindings attached. |
java.util.Iterator |
entries(PropertyKey listKey)
Returns an iterator over all entries at this key. |
java.lang.Object[] |
getEntries(PropertyKey listKey,
java.lang.Class clazz)
Return as an array all elements of this key that are instances of the specified class. |
java.lang.Object |
getLocalProperty(PropertyKey key)
Return a property, ignoring any value bindings. |
java.lang.Object |
getProperty(PropertyKey key)
Returns a property. |
FacesBean.Type |
getType()
Returns the Type of this bean. |
javax.faces.el.ValueBinding |
getValueBinding(PropertyKey key)
Return the value binding for a key. |
java.util.Set |
keySet()
Returns a Set of all PropertyKeys that have either lists or values attached. |
void |
removeEntry(PropertyKey listKey,
java.lang.Object value)
Remove an entry from a list. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Restores the state of a FacesBean. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Saves the state of a FacesBean. |
void |
setProperty(PropertyKey key,
java.lang.Object value)
Set a property. |
void |
setValueBinding(PropertyKey key,
javax.faces.el.ValueBinding binding)
Set the value binding for a key. |
Method Detail |
public FacesBean.Type getType()
public java.lang.Object getProperty(PropertyKey key)
key
- the property key
java.lang.IllegalArgumentException
- if key is a list keypublic void setProperty(PropertyKey key, java.lang.Object value)
java.lang.IllegalArgumentException
- if key is a list keypublic java.lang.Object getLocalProperty(PropertyKey key)
java.lang.IllegalArgumentException
- if key is a list keypublic javax.faces.el.ValueBinding getValueBinding(PropertyKey key)
java.lang.IllegalArgumentException
- if the property does
not support value bindings.public void setValueBinding(PropertyKey key, javax.faces.el.ValueBinding binding)
java.lang.IllegalArgumentException
- if the property does
not support value bindings.public void addEntry(PropertyKey listKey, java.lang.Object value)
java.lang.IllegalArgumentException
- if the key is not a list key.public void removeEntry(PropertyKey listKey, java.lang.Object value)
java.lang.IllegalArgumentException
- if the key is not a list key.public java.lang.Object[] getEntries(PropertyKey listKey, java.lang.Class clazz)
java.lang.IllegalArgumentException
- if the key is not a list key.public java.util.Iterator entries(PropertyKey listKey)
java.lang.IllegalArgumentException
- if the key is not a list key.public void addAll(FacesBean from)
public java.util.Set keySet()
public java.util.Set bindingKeySet()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |