S
- the type of the itempublic class OrderedComposite<S>
extends java.lang.Object
Constructor and Description |
---|
OrderedComposite() |
Modifier and Type | Method and Description |
---|---|
void |
add(S item)
Register additional item.
|
java.util.List<? extends S> |
getItems()
Public getter for the items.
|
java.util.Iterator<S> |
iterator()
Public getter for the list of items.
|
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
- the new itemspublic java.util.List<? extends S> getItems()
public void add(S item)
item
- the 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.