|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object data.events.CatalogChangeAdapter
An abstract adapter class for receiving catalog change events. The methods in this class are empty. This class exists as convenience for creating listener objects.
Extend this class to create a CatalogChangeEvent listener and override the methods for the events of interest. (If you implement the CatalogChangeListener interface, you have to define all of the methods in it. This abstract class defines empty method bodies for them all, so you can concentrate on defining methods only for events you care about.)
Create a listener object using the extended class and then register it with a ListenableCatalog using
the Catalog's ListenableCatalog.addCatalogChangeListener(data.events.CatalogChangeListener)
method. When the Catalog's contents
change, the relevant method in the listener object is invoked, and a CatalogChangeEvent
is passed
to it.
Constructor Summary | |
CatalogChangeAdapter()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CatalogChangeAdapter()
Method Detail |
public void addedCatalogItem(CatalogChangeEvent e)
addedCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void commitedAddCatalogItem(CatalogChangeEvent e)
commitedAddCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void rolledbackAddCatalogItem(CatalogChangeEvent e)
rolledbackAddCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void canRemoveCatalogItem(CatalogChangeEvent e) throws VetoException
noRemoveCatalogItem
event.
canRemoveCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.
VetoException
- if the listener wants to veto the removal.public void noRemoveCatalogItem(CatalogChangeEvent e)
noRemoveCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void removedCatalogItem(CatalogChangeEvent e)
removedCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void commitedRemoveCatalogItem(CatalogChangeEvent e)
commitedRemoveCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void rolledbackRemoveCatalogItem(CatalogChangeEvent e)
rolledbackRemoveCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void canEditCatalogItem(CatalogChangeEvent e) throws VetoException
noEditCatalogItem
event.
canEditCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.
VetoException
- if the listener wants to veto the editing.public void noEditCatalogItem(CatalogChangeEvent e)
noEditCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void editingCatalogItem(CatalogChangeEvent e)
removedCatalogItem
and a addedCatalogItem
event, but this is implementation
specific.
editingCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void commitEditCatalogItem(CatalogChangeEvent e)
commitEditCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.public void rollbackEditCatalogItem(CatalogChangeEvent e)
rollbackEditCatalogItem
in interface CatalogChangeListener
e
- an event object describing the event.
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |