SalesPoint Framework v3.1

util
Interface HelpableListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CatalogFilter, CatalogTableModel, CountingStockTableModel, DataBasketTableModel, StoringStockTableModel, UserListModel, UserTableModel

public interface HelpableListener
extends EventListener

A listener that can be helped by ListenerHelper. HelpableListeners must use a ListenerHelper to maintain their list of listeners. Whenever a query is performed on the HelpableListener it must assure up-to-date-ness of its model by calling (@link ListenerHelper#needModelUpdate}.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
ListenerHelper

Method Summary
 void subscribe()
          Called when the listener should subscribe to its own event source.
 void unsubscribe()
          Called when the listener should unsubscribe from its own event source.
 void updateModel()
          Called to update the listeners own model representation.
 

Method Detail

subscribe

public void subscribe()
Called when the listener should subscribe to its own event source.

Override:
Always

unsubscribe

public void unsubscribe()
Called when the listener should unsubscribe from its own event source.

Override:
Always

updateModel

public void updateModel()
Called to update the listeners own model representation.

Override:
Always

SalesPoint Framework v3.1