ListHolderStateObject is a StateObject having a list of children and this
gives access to some operation over the list.
| Modifier and Type | Method and Description |
|---|---|
| public <S extends T> S | addItem(S
The child item)StateObject to become a child of this one
return The given itemAdds the given |
| public void | addItems(List<? extends T>
The items)StateObjects to become children of this oneAdds the given list of |
| public void | addListChangeListener(String
The name of the list for which the listener will be notified when the content
of the list has changed listName, IListChangeListener<T> The listener to be notified upon changes listener)Registers the given |
| public boolean | Returns: true if the object can be moved down by one unit; false
otherwiseThe item)StateObject that could potentially be moved downDetermines whether the given |
| public boolean | Returns: true if the object can be moved up by one unit; false
otherwiseThe item)StateObject that could potentially be moved upDetermines whether the given |
| public T | Returns: TheStateObject at the given positionThe position of the index)StateObject to retrieveReturns the |
| public boolean | |
| public ListIterable | Returns: AnListIterable that is iterating over the childrenReturns an |
| public int | Returns: The count ofStateObjects that are children of this oneReturns the number of children this list holder has. |
| public T | Returns: The given itemThe item)StateObject to move down in the listMoves the given |
| public T | Returns: The given itemThe item)StateObject to move up in the listMoves the given |
| public void | removeItem(T
The child item)StateObject to not longer be a childRemoves the given |
| public void | removeItems(Collection<T>
The items)StateObjects to remove from this oneRemoves the given |
| public void | removeListChangeListener(String
The name of the list for which the listener was registered listName, IListChangeListener<T> The listener to unregister listener)Unregisters the given |
| addItem | back to summary |
|---|---|
| public <S extends T> S addItem(S item) Adds the given
| |
| addItems | back to summary |
|---|---|
| public void addItems(List<? extends T> items) Adds the given list of
| |
| addListChangeListener | back to summary |
|---|---|
| public void addListChangeListener(String listName, IListChangeListener<T> listener) Registers the given
| |
| canMoveDown | back to summary |
|---|---|
| public boolean canMoveDown(T item) Determines whether the given
| |
| canMoveUp | back to summary |
|---|---|
| public boolean canMoveUp(T item) Determines whether the given
| |
| getItem | back to summary |
|---|---|
| public T getItem(int index) Returns the
| |
| hasItems | back to summary |
|---|---|
| public boolean hasItems() Determines whether this
| |
| items | back to summary |
|---|---|
| public ListIterable Returns an
| |
| itemsSize | back to summary |
|---|---|
| public int itemsSize() Returns the number of children this list holder has.
| |
| moveDown | back to summary |
|---|---|
| public T moveDown(T item) Moves the given
| |
| moveUp | back to summary |
|---|---|
| public T moveUp(T item) Moves the given
| |
| removeItem | back to summary |
|---|---|
| public void removeItem(T item) Removes the given
| |
| removeItems | back to summary |
|---|---|
| public void removeItems(Collection<T> items) Removes the given
| |
| removeListChangeListener | back to summary |
|---|---|
| public void removeListChangeListener(String listName, IListChangeListener<T> listener) Unregisters the given
| |