SalesPoint Framework v3.1

data.events
Interface CatalogChangeListener

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

public interface CatalogChangeListener
extends EventListener

A listener listening for CatalogChangeEvents.

Since:
v2.0
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)
          z 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.

Parameters:
e - an event object describing the event.
Override:
Always

commitedAddCatalogItem

public void commitedAddCatalogItem(CatalogChangeEvent e)
Called whenever the adding of a CatalogItem was commited.

Parameters:
e - an event object describing the event.
Override:
Always

rolledbackAddCatalogItem

public void rolledbackAddCatalogItem(CatalogChangeEvent e)
Called whenever the adding of a CatalogItem was rolled back.

Parameters:
e - an event object describing the event.
Override:
Always

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.

Parameters:
e - an event object describing the event.
Throws:
VetoException - if the listener wants to veto the removal.
Override:
Always

noRemoveCatalogItem

public void noRemoveCatalogItem(CatalogChangeEvent e)
Called for each listener that already agreed with a removal that was then rejected by another listener.

Parameters:
e - an event object describing the event.
Override:
Always

removedCatalogItem

public void removedCatalogItem(CatalogChangeEvent e)
Called whenever a CatalogItem was removed from the Catalog.

Parameters:
e - an event object describing the event.
Override:
Always

commitedRemoveCatalogItem

public void commitedRemoveCatalogItem(CatalogChangeEvent e)
Called whenever the removal of a CatalogItem was commited.

Parameters:
e - an event object describing the event.
Override:
Always

rolledbackRemoveCatalogItem

public void rolledbackRemoveCatalogItem(CatalogChangeEvent e)
Called whenever the removal of a CatalogItem was rolled back.

Parameters:
e - an event object describing the event.
Override:
Always

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.

Parameters:
e - an event object describing the event.
Throws:
VetoException - if the listener wants to veto the editing.
Override:
Always

noEditCatalogItem

public void noEditCatalogItem(CatalogChangeEvent e)
z Called for each listener that already agreed with an editing that was then rejected by another listener.

Parameters:
e - an event object describing the event.
Override:
Always

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.

Parameters:
e - an event object describing the event.
Override:
Always

commitEditCatalogItem

public void commitEditCatalogItem(CatalogChangeEvent e)
Called whenever editing a CatalogItem was commited.

Parameters:
e - an event object describing the event.
Override:
Always

rollbackEditCatalogItem

public void rollbackEditCatalogItem(CatalogChangeEvent e)
Called whenever editing a CatalogItem was rolled back.

Parameters:
e - an event object describing the event.
Override:
Always

SalesPoint Framework v3.1