|
||||||||||
| 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 l)
Adds a ListListener to this model. |
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 l)
Removes a ListListener from this model. |
int |
size()
Returns the number of elements in this collection. |
void |
sortBy(boolean ascending,
Path... path)
|
void |
sortBy(java.util.Collection<SortKey> newSortKeys)
|
void |
sortBy(SortKey... sortKeys)
|
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 java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void addListListener(ListListener l)
l - void removeListListener(ListListener l)
l - 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)
void sortBy(java.util.Collection<SortKey> newSortKeys)
void sortBy(SortKey... sortKeys)
java.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 | |||||||||