|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.model.TreeRowKey
org.richfaces.model.ListRowKey
public class ListRowKey
Default TreeRowKey implementation based on ArrayList
| Field Summary |
|---|
| Fields inherited from class org.richfaces.model.TreeRowKey |
|---|
SEPARATOR_ESCAPE_CHAR |
| Constructor Summary | |
|---|---|
ListRowKey()
Default constructor |
|
ListRowKey(java.util.List list)
List constructor |
|
ListRowKey(ListRowKey parentRowKey)
Copy constructor |
|
ListRowKey(ListRowKey parentRowKey,
java.lang.Object pathElement)
Appending constructor |
|
ListRowKey(java.lang.Object path)
Path object constructor |
|
ListRowKey(java.lang.String path)
Path string constructor |
|
| Method Summary | |
|---|---|
int |
depth()
getter for key depth |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
get(int i)
|
int |
getCommonPathLength(TreeRowKey otherRowKey)
returns this row key and otherRowKey argument row key common path segments count |
java.lang.String |
getPath()
getter for path string representation |
ListRowKey |
getSubKey(int fromIndex)
|
java.util.Iterator |
getSubPathIterator(int fromIndex)
getter for subpath iterator |
int |
hashCode()
|
boolean |
isSubKey(TreeRowKey rowKey)
tests if specified rowKey is sub-key of this row key |
java.util.Iterator |
iterator()
getter for path iterator |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListRowKey()
public ListRowKey(ListRowKey parentRowKey)
parentRowKey - row key to clone
public ListRowKey(ListRowKey parentRowKey,
java.lang.Object pathElement)
parentRowKey - base row keypathElement - path segment to append to base row keypublic ListRowKey(java.util.List list)
list - List of strings to create corresponding row key frompublic ListRowKey(java.lang.Object path)
path - first path segmentpublic ListRowKey(java.lang.String path)
path - path string to create corresponding row key from| Method Detail |
|---|
public java.lang.String toString()
toString in class TreeRowKeypublic int depth()
TreeRowKey
depth in class TreeRowKeypublic java.util.Iterator iterator()
TreeRowKey
iterator in class TreeRowKeypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator getSubPathIterator(int fromIndex)
TreeRowKey
getSubPathIterator in class TreeRowKeypublic ListRowKey getSubKey(int fromIndex)
public boolean isSubKey(TreeRowKey rowKey)
TreeRowKey
isSubKey in class TreeRowKeypublic java.lang.String getPath()
TreeRowKey
getPath in class TreeRowKeypublic int getCommonPathLength(TreeRowKey otherRowKey)
TreeRowKey
getCommonPathLength in class TreeRowKeyotherRowKey - TreeRowKey to count common path segments for
public java.lang.Object get(int i)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||