|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.richfaces.model.TreeRowKey<T> org.richfaces.model.ListRowKey<T>
public class ListRowKey<T>
Default TreeRowKey
implementation based on ArrayList
Field Summary |
---|
Fields inherited from class org.richfaces.model.TreeRowKey |
---|
SEPARATOR_ESCAPE_CHAR |
Constructor Summary | |
---|---|
|
ListRowKey()
Default constructor |
protected |
ListRowKey(java.util.ArrayList<T> list)
|
|
ListRowKey(java.util.List<T> list)
List constructor |
|
ListRowKey(ListRowKey<T> parentRowKey)
Copy constructor |
|
ListRowKey(ListRowKey<T> parentRowKey,
ListRowKey<T> childRowKey)
Appending constructor |
|
ListRowKey(ListRowKey<T> parentRowKey,
T pathElement)
Appending constructor |
|
ListRowKey(T path)
Deprecated. |
Method Summary | |
---|---|
int |
depth()
getter for key depth |
boolean |
equals(java.lang.Object obj)
|
static java.lang.String[] |
fromString(java.lang.String keyString)
|
T |
get(int i)
|
int |
getCommonPathLength(TreeRowKey<T> otherRowKey)
returns this row key and otherRowKey argument row key common path segments count |
TreeRowKey<T> |
getParentKey()
|
java.lang.String |
getPath()
getter for path string representation |
TreeRowKey<T> |
getSubKey(int fromIndex)
|
java.util.Iterator<T> |
getSubPathIterator(int fromIndex)
getter for subpath iterator |
int |
hashCode()
|
boolean |
isSubKey(TreeRowKey<T> rowKey)
tests if specified rowKey is sub-key of this row key |
java.util.Iterator<T> |
iterator()
getter for path iterator |
static void |
main(java.lang.String[] args)
|
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<T> parentRowKey)
parentRowKey
- row key to clonepublic ListRowKey(ListRowKey<T> parentRowKey, T pathElement)
parentRowKey
- base row keypathElement
- path segment to append to base row keypublic ListRowKey(ListRowKey<T> parentRowKey, ListRowKey<T> childRowKey)
parentRowKey
- base row keypathElement
- path segment to append to base row keyprotected ListRowKey(java.util.ArrayList<T> list)
public ListRowKey(T path)
path
- first path segmentpublic ListRowKey(java.util.List<T> list)
list
- List of strings to create corresponding row key fromMethod Detail |
---|
public java.lang.String toString()
toString
in class TreeRowKey<T>
public int depth()
TreeRowKey
depth
in class TreeRowKey<T>
public java.util.Iterator<T> iterator()
TreeRowKey
iterator
in class TreeRowKey<T>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Iterator<T> getSubPathIterator(int fromIndex)
TreeRowKey
getSubPathIterator
in class TreeRowKey<T>
public TreeRowKey<T> getSubKey(int fromIndex)
getSubKey
in class TreeRowKey<T>
public boolean isSubKey(TreeRowKey<T> rowKey)
TreeRowKey
isSubKey
in class TreeRowKey<T>
public java.lang.String getPath()
TreeRowKey
getPath
in class TreeRowKey<T>
public int getCommonPathLength(TreeRowKey<T> otherRowKey)
TreeRowKey
getCommonPathLength
in class TreeRowKey<T>
otherRowKey
- TreeRowKey
to count common path segments for
public T get(int i)
public static java.lang.String[] fromString(java.lang.String keyString)
public static void main(java.lang.String[] args)
public TreeRowKey<T> getParentKey()
getParentKey
in class TreeRowKey<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |