SalesPoint v3.3 API

util
Interface HelpableListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CatalogFilter, CatalogTableModel, CountingStockTableModel, CurrencyFilter, DataBasketTableModel, StoringStockTableModel, UserComboBoxModel, 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

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

Override:
Always

unsubscribe

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

Override:
Always

updateModel

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

Override:
Always

SalesPoint v3.3 API