Package com.macrofocus.order
Class AbstractOrder<E>
java.lang.Object
com.macrofocus.order.AbstractOrder<E>
- Direct Known Subclasses:
DefaultVisibleOrder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrderListener
(OrderListener<E> listener) Add a listener to the list that's notified each time a change to the order occurs.void
addWeakOrderListener
(OrderListener<E> listener) Add a listener to the list that's notified each time a change to the order occurs.protected void
notifyOrderAdded
(OrderEvent<E> event) protected void
notifyOrderChanged
(OrderEvent<E> event) protected void
notifyOrderRemoved
(OrderEvent<E> event) protected void
notifyOrderVisibility
(OrderEvent<E> event) void
void
removeOrderListener
(OrderListener<E> listener) Remove a listener to the list that's notified each time a change to the order occurs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
AbstractOrder
public AbstractOrder()
-
-
Method Details
-
addOrderListener
Description copied from interface:Order
Add a listener to the list that's notified each time a change to the order occurs.- Specified by:
addOrderListener
in interfaceOrder<E>
- Parameters:
listener
- the SelectionListener
-
addWeakOrderListener
Description copied from interface:Order
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.- Specified by:
addWeakOrderListener
in interfaceOrder<E>
- Parameters:
listener
- the SelectionListener
-
removeOrderListener
Description copied from interface:Order
Remove a listener to the list that's notified each time a change to the order occurs.- Specified by:
removeOrderListener
in interfaceOrder<E>
- Parameters:
listener
- the SelectionListener
-
removeFilterListeners
public void removeFilterListeners() -
notifyOrderChanged
-
notifyOrderVisibility
-
notifyOrderAdded
-
notifyOrderRemoved
-