|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the element type parameterpublic interface IListPM<T extends PresentationModel>
Minimal interface for presentation models with list-editing capabilities.
Method Summary | |
---|---|
void |
addListListener(ListListener listener)
Adds the given listener. |
boolean |
contains(T obj)
Returns true if this collection contains the specified
element. |
T |
getAt(int index)
Returns the element at the specified position in this list. |
Selection<T> |
getSelection()
Returns the selection of this list. |
java.util.Collection<SortKey> |
getSortKeys()
Returns the (immutable) collection of SortKey objects that
reflect the current sorting state of this list. |
int |
indexOf(T element)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
java.util.ListIterator<T> |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
void |
removeListListener(ListListener listener)
Removes the given listener. |
int |
size()
Returns the number of elements in this collection. |
void |
sortBy(boolean ascending,
Path... path)
Sorts the elements of this list PM by comparing the child nodes at the end of the given paths. |
void |
sortBy(java.util.Collection<SortKey> newSortKeys)
Sorts the elements of this list PM by the specified sort keys. |
void |
sortBy(SortKey... sortKeys)
Sorts the elements of this list PM by the specified sort keys. |
void |
swap(int indexA,
int indexB)
Swaps the position of the two elements specified by the given indexes. |
void |
swap(T elemA,
T elemB)
Swaps the position of the two specified elements. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
java.util.Collection<T> |
toCollection()
Returns a new Collection of all elements. |
Methods inherited from interface org.beanfabrics.Bean |
---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface org.beanfabrics.validation.Validatable |
---|
getValidationState, getValidator, isValid, revalidate |
Methods inherited from interface org.beanfabrics.support.Supportable |
---|
getSupportMap |
Methods inherited from interface org.beanfabrics.context.ContextOwner |
---|
getContext |
Methods inherited from interface org.beanfabrics.HasComparable |
---|
getComparable |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void addListListener(ListListener listener)
listener
- void removeListListener(ListListener listener)
listener
- int size()
boolean isEmpty()
true
if this collection contains no elements.
true
if this collection contains no elementsboolean contains(T obj)
true
if this collection contains the specified
element.
obj
-
true
if this collection contains the specified
elementint indexOf(T element)
element
-
T getAt(int index)
index
-
void swap(int indexA, int indexB)
indexA
- indexB
- void swap(T elemA, T elemB)
elemA
- elemB
- void sortBy(boolean ascending, Path... path)
ascending
- if true, the resulting order will be ascending,
otherwise descending.paths
- one or more Path objects that define the sort keysvoid sortBy(java.util.Collection<SortKey> newSortKeys)
newSortKeys
- the sort keys used for sorting the elements of this
list PMvoid sortBy(SortKey... sortKeys)
newSortKeys
- the sort keys used for sorting the elements of this
list PMjava.util.Collection<SortKey> getSortKeys()
SortKey
objects that
reflect the current sorting state of this list.
SortKey
objects that
reflect the current sorting state of this listjava.util.Collection<T> toCollection()
Collection
of all elements.
Collection
of all elementsjava.util.ListIterator<T> listIterator(int index)
index
-
java.lang.Object[] toArray()
Selection<T> getSelection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |