Package com.macrofocus.order
Class AbstractOrder<E>
- java.lang.Object
-
- com.macrofocus.order.AbstractOrder<E>
-
- All Implemented Interfaces:
Order<E>,java.lang.Iterable<E>
- Direct Known Subclasses:
DefaultVisibleOrder
public abstract class AbstractOrder<E> extends java.lang.Object implements Order<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrderListener(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.protected voidnotifyOrderAdded(OrderEvent<E> event)protected voidnotifyOrderChanged(OrderEvent<E> event)protected voidnotifyOrderRemoved(OrderEvent<E> event)protected voidnotifyOrderVisibility(OrderEvent<E> event)voidremoveFilterListeners()voidremoveOrderListener(OrderListener<E> listener)Remove a listener to the list that's notified each time a change to the order occurs.
-
-
-
Method Detail
-
addOrderListener
public void addOrderListener(OrderListener<E> listener)
Description copied from interface:OrderAdd a listener to the list that's notified each time a change to the order occurs.- Specified by:
addOrderListenerin interfaceOrder<E>- Parameters:
listener- the SelectionListener
-
addWeakOrderListener
public void addWeakOrderListener(OrderListener<E> listener)
Description copied from interface:OrderAdd 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:
addWeakOrderListenerin interfaceOrder<E>- Parameters:
listener- the SelectionListener
-
removeOrderListener
public void removeOrderListener(OrderListener<E> listener)
Description copied from interface:OrderRemove a listener to the list that's notified each time a change to the order occurs.- Specified by:
removeOrderListenerin interfaceOrder<E>- Parameters:
listener- the SelectionListener
-
removeFilterListeners
public void removeFilterListeners()
-
notifyOrderChanged
protected void notifyOrderChanged(OrderEvent<E> event)
-
notifyOrderVisibility
protected void notifyOrderVisibility(OrderEvent<E> event)
-
notifyOrderAdded
protected void notifyOrderAdded(OrderEvent<E> event)
-
notifyOrderRemoved
protected void notifyOrderRemoved(OrderEvent<E> event)
-
-