|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.render.ClientRowKeyManager
public abstract class ClientRowKeyManager
This class manages server-side rowkey Objects with client-side string keys. This class must be Serializable as it is state-saved along with the UIComponent state.
| Constructor Summary | |
|---|---|
ClientRowKeyManager()
|
|
| Method Summary | |
|---|---|
abstract String |
getClientRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object rowKey)
Gets a string version of a key that identifies the row with the given rowkey. |
abstract Object |
getRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String clientRowKey)
Gets the corresponding server-side rowkey object from the given client-side string key. |
boolean |
replaceRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object oldRowKey,
Object newRowKey)
Replaces an old row key with a new key if the old row key exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRowKeyManager()
| Method Detail |
|---|
public abstract String getClientRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object rowKey)
rowKey - the rowkey to convert into a client key. Note that
null is special and is not allowed.
public abstract Object getRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String clientRowKey)
clientRowKey - the string key
public boolean replaceRowKey(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object oldRowKey,
Object newRowKey)
context - component - oldRowKey - row key to replace (may not exist)newRowKey - new row key
true if old row key existed and was replaced, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||