SalesPoint Framework v3.0

data.events
Interface StockChangeListener

All Known Implementing Classes:
StockChangeAdapter, CountingStockTableModel, StoringStockTableModel, AbstractStockFilter

public interface StockChangeListener
extends EventListener

Listener listening for StockChangeEvents.

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

Method Summary
 void addedStockItems(StockChangeEvent e)
          Called whenever StockItems were added to the Stock.
 void canEditStockItems(StockChangeEvent e)
          Called to ask whether certain StockItems may be edited.
 void canRemoveStockItems(StockChangeEvent e)
          Called to ask whether certain StockItems may be removed.
 void commitAddStockItems(StockChangeEvent e)
          Called whenever the adding of StockItems was commited.
 void commitEditStockItems(StockChangeEvent e)
          Called whenever the editing of StockItems was commited.
 void commitRemoveStockItems(StockChangeEvent e)
          Called whenever the removal of StockItems was commited.
 void editingStockItems(StockChangeEvent e)
          Called whenever the Stock began editing StockItems.
 void noEditStockItems(StockChangeEvent e)
          Called for each listener that already agreed with an editing that was then rejected by another listener.
 void noRemoveStockItems(StockChangeEvent e)
          Called for each listener that already agreed with a removal that was then rejected by another listener.
 void removedStockItems(StockChangeEvent e)
          Called whenever StockItems were removed from the Stock.
 void rollbackAddStockItems(StockChangeEvent e)
          Called whenever the adding of StockItems was rolled back.
 void rollbackEditStockItems(StockChangeEvent e)
          Called whenever the editing of StockItems was rolled back.
 void rollbackRemoveStockItems(StockChangeEvent e)
          Called whenever the removal of StockItems was rolled back.
 

Method Detail

addedStockItems

public void addedStockItems(StockChangeEvent e)
Called whenever StockItems were added to the Stock.
Override:
Always.
Parameters:
e - an event object describing the event.

commitAddStockItems

public void commitAddStockItems(StockChangeEvent e)
Called whenever the adding of StockItems was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rollbackAddStockItems

public void rollbackAddStockItems(StockChangeEvent e)
Called whenever the adding of StockItems was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

canRemoveStockItems

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

noRemoveStockItems

public void noRemoveStockItems(StockChangeEvent 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.

removedStockItems

public void removedStockItems(StockChangeEvent e)
Called whenever StockItems were removed from the Stock.
Override:
Always.
Parameters:
e - an event object describing the event.

commitRemoveStockItems

public void commitRemoveStockItems(StockChangeEvent e)
Called whenever the removal of StockItems was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rollbackRemoveStockItems

public void rollbackRemoveStockItems(StockChangeEvent e)
Called whenever the removal of StockItems was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

canEditStockItems

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

noEditStockItems

public void noEditStockItems(StockChangeEvent 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.

editingStockItems

public void editingStockItems(StockChangeEvent e)
Called whenever the Stock began editing StockItems. This event may be accompanied by a removedStockItems and a addedStockItems event, but this is implementation specific.
Override:
Always.
Parameters:
e - an event object describing the event.

commitEditStockItems

public void commitEditStockItems(StockChangeEvent e)
Called whenever the editing of StockItems was commited.
Override:
Always.
Parameters:
e - an event object describing the event.

rollbackEditStockItems

public void rollbackEditStockItems(StockChangeEvent e)
Called whenever the editing of StockItems was rolled back.
Override:
Always.
Parameters:
e - an event object describing the event.

SalesPoint Framework v3.0