S
- the type of the itempublic class OrderedCompositeItem<S>
extends java.lang.Object
Constructor and Description |
---|
OrderedCompositeItem() |
Modifier and Type | Method and Description |
---|---|
void |
add(S item)
Register additional item.
|
java.util.Iterator<S> |
iterator()
Public getter for the list of items.
|
void |
remove(S item)
Unregister item.
|
java.util.Iterator<S> |
reverse()
Public getter for the list of items in reverse.
|
void |
setItems(java.util.List<? extends S> items)
Public setter for the listeners.
|
public void setItems(java.util.List<? extends S> items)
items
- itemspublic void add(S item)
item
- itempublic void remove(S item)
item
- itempublic java.util.Iterator<S> iterator()
Ordered
items come
first, followed by any unordered ones.public java.util.Iterator<S> reverse()
Ordered
items
come last, after any unordered ones.