Package com.macrofocus.order
Interface Order<E>
- All Superinterfaces:
Iterable<E>
- All Known Subinterfaces:
MutableVisibleOrder<E>,VisibleOrder<E>
- All Known Implementing Classes:
AbstractOrder,DefaultVisibleOrder
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderListener(OrderListener<E> listener) Add a listener to the list that's notified each time a change to the order occurs.voidaddWeakOrderListener(OrderListener<E> listener) Add a listener to the list that's notified each time a change to the order occurs.get(int index) intvoidremoveOrderListener(OrderListener<E> listener) Remove a listener to the list that's notified each time a change to the order occurs.intsize()Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
get
-
size
int size() -
indexOf
-
previous
-
next
-
addOrderListener
Add a listener to the list that's notified each time a change to the order occurs.- Parameters:
listener- the SelectionListener
-
addWeakOrderListener
Add a listener to the list that's notified each time a change to the order occurs. The listener will automatically be disposed of should no other object have a reference to it.- Parameters:
listener- the SelectionListener
-
removeOrderListener
Remove a listener to the list that's notified each time a change to the order occurs.- Parameters:
listener- the SelectionListener
-