SalesPoint Framework v3.0

data.events
Interface CatalogChangeListener

All Known Implementing Classes:
CatalogChangeAdapter, CountingStockTableModel, CatalogTableModel, CatalogFilter

public interface CatalogChangeListener
extends EventListener

A listener listening for CatalogChangeEvents.

Since:
v2.0
Version:
2.0 19/08/1999
Author:
Steffen Zschaler

Method Summary
 void addedCatalogItem(CatalogChangeEvent e)
          Called whenever a CatalogItem was added to the Catalog.
 void canEditCatalogItem(CatalogChangeEvent e)
          Called to ask whether a CatalogItem may be edited.
 void canRemoveCatalogItem(CatalogChangeEvent e)
          Called to ask whether a CatalogItem may be removed.
 void commitedAddCatalogItem(CatalogChangeEvent e)
          Called whenever the adding of a CatalogItem was commited.
 void commitEditCatalogItem(CatalogChangeEvent e)
          Called whenever editing a CatalogItem was commited.
 void commitedRemoveCatalogItem(CatalogChangeEvent e)
          Called whenever the removal of a CatalogItem was commited.
 void editingCatalogItem(CatalogChangeEvent e)
          Called whenever editing a CatalogItem was started.
 void noEditCatalogItem(CatalogChangeEvent e)
          Called for each listener that already agreed with an editing that was then rejected by another listener.
 void noRemoveCatalogItem(CatalogChangeEvent e)
          Called for each listener that already agreed with a removal that was then rejected by another listener.
 void removedCatalogItem(CatalogChangeEvent e)
          Called whenever a CatalogItem was removed from the Catalog.
 void rollbackEditCatalogItem(CatalogChangeEvent e)
          Called whenever editing a CatalogItem was rolled back.
 void rolledbackAddCatalogItem(CatalogChangeEvent e)
          Called whenever the adding of a CatalogItem was rolled back.
 void rolledbackRemoveCatalogItem(CatalogChangeEvent e)
          Called whenever the removal of a CatalogItem was rolled back.
 

Method Detail

addedCatalogItem

public void addedCatalogItem(CatalogChangeEvent e)
Called whenever a CatalogItem was added to the Catalog.
Override:
Always.
Parameters:
e - an event object describing the event.

commitedAddCatalogItem

public void commitedAddCatalogItem(CatalogChangeEvent e)
Called whenever the adding of a CatalogItem was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rolledbackAddCatalogItem

public void rolledbackAddCatalogItem(CatalogChangeEvent e)
Called whenever the adding of a CatalogItem was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

canRemoveCatalogItem

public void canRemoveCatalogItem(CatalogChangeEvent e)
                          throws VetoException
Called to ask whether a CatalogItem may be removed. If one of the listeners vetos the removal, all listeners that had already been asked will receive a noRemoveCatalogItem event.
Override:
Always.
Parameters:
e - an event object describing the event.
Throws:
VetoException - if the listener wants to veto the removal.

noRemoveCatalogItem

public void noRemoveCatalogItem(CatalogChangeEvent e)
Called for each listener that already agreed with a removal that was then rejected by another listener.
Override:
Always.
Parameters:
e - an event object describing the event.

removedCatalogItem

public void removedCatalogItem(CatalogChangeEvent e)
Called whenever a CatalogItem was removed from the Catalog.
Override:
Always.
Parameters:
e - an event object describing the event.

commitedRemoveCatalogItem

public void commitedRemoveCatalogItem(CatalogChangeEvent e)
Called whenever the removal of a CatalogItem was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rolledbackRemoveCatalogItem

public void rolledbackRemoveCatalogItem(CatalogChangeEvent e)
Called whenever the removal of a CatalogItem was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

canEditCatalogItem

public void canEditCatalogItem(CatalogChangeEvent e)
                        throws VetoException
Called to ask whether a CatalogItem may be edited. If one of the listeners vetos the editing, all steners that had already been asked will receive a noEditCatalogItem event.
Override:
Always.
Parameters:
e - an event object describing the event.
Throws:
VetoException - if the listener wants to veto the editing.

noEditCatalogItem

public void noEditCatalogItem(CatalogChangeEvent e)
Called for each listener that already agreed with an editing that was then rejected by another listener.
Override:
Always.
Parameters:
e - an event object describing the event.

editingCatalogItem

public void editingCatalogItem(CatalogChangeEvent e)
Called whenever editing a CatalogItem was started. This event may be accompanied by a removedCatalogItem and a addedCatalogItem event, but this is implementation specific.
Override:
Always.
Parameters:
e - an event object describing the event.

commitEditCatalogItem

public void commitEditCatalogItem(CatalogChangeEvent e)
Called whenever editing a CatalogItem was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rollbackEditCatalogItem

public void rollbackEditCatalogItem(CatalogChangeEvent e)
Called whenever editing a CatalogItem was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

SalesPoint Framework v3.0