Großmarkt

market
Class SPListenable

java.lang.Object
  |
  +--sale.SalesPoint
        |
        +--market.SPListenable
All Implemented Interfaces:
EventListener, FormSheetListener, MarketEventListener, ProcessContext, Serializable, SerializableListener
Direct Known Subclasses:
SPCustomer

public class SPListenable
extends SalesPoint
implements MarketEventListener

A SalesPoint that can react to MarketEvents.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class sale.SalesPoint
m_pCurProcess
 
Constructor Summary
SPListenable(String s)
           
 
Method Summary
 void formSheetSet(FormSheetEvent e)
          Sets the image icon when a SalesPoint is opened.
protected  FormSheet getDefaultFormSheet()
           
 void marketClosed()
          Reaction on event: The market has just closed.
 void marketOpened()
          Reaction on event: The market has just opened.
 void notifyOnMarketClosing()
          Reaction on event: The market is about to close.
 void notifyOnMarketNotClosing()
          Reaction en event: The market isn't about to close anymore.
protected  boolean onCanQuit()
           
 void resume()
          Sets SalesPoint's icon after it is loaded from persistence file.
 void timeAdvanced()
          Reaction on event: The time has advanced.
 void workerInformationChanged()
          Reaction on event: A new order for workers arrived or a worker logged on.
 
Methods inherited from class sale.SalesPoint
attach, attach, attach, attach, attachLoadedDisplay, attachStatusDisplay, canQuit, createNewID, detachBasket, detachDisplay, detachStatusDisplay, detachUser, formSheetRemoved, getBasket, getCatalog, getCurrentProcess, getCurrentUser, getDefaultMenuSheet, getDefaultStatusFormSheet, getDefaultStatusMenuSheet, getDisplay, getID, getName, getProcessLock, getSalesPointFrameBounds, getStock, getUser, hasUseableDisplay, log, logSalesPointClosed, logSalesPointOpened, popUpFormSheet, processFinished, processStarted, quit, runProcess, runProcess, setFormSheet, setMenuSheet, setSalesPointFrameBounds, setStatusFormSheet, setStatusMenuSheet, suspend, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SPListenable

public SPListenable(String s)
Parameters:
s - the SalesPoints name.
Method Detail

getDefaultFormSheet

protected FormSheet getDefaultFormSheet()
Overrides:
getDefaultFormSheet in class SalesPoint
Returns:
the default FormSheet.

formSheetSet

public void formSheetSet(FormSheetEvent e)
Sets the image icon when a SalesPoint is opened.

Specified by:
formSheetSet in interface FormSheetListener
Overrides:
formSheetSet in class SalesPoint
Parameters:
e - the fired Event

resume

public void resume()
Sets SalesPoint's icon after it is loaded from persistence file.

Overrides:
resume in class SalesPoint

onCanQuit

protected boolean onCanQuit()
Overrides:
onCanQuit in class SalesPoint
Returns:
true if no SaleProcess is running, otherwise false. This forces the user to quit the SaleProcess before he closes the SalesPoint.

notifyOnMarketClosing

public void notifyOnMarketClosing()
Reaction on event: The market is about to close.

Specified by:
notifyOnMarketClosing in interface MarketEventListener

notifyOnMarketNotClosing

public void notifyOnMarketNotClosing()
Reaction en event: The market isn't about to close anymore.

Specified by:
notifyOnMarketNotClosing in interface MarketEventListener

marketClosed

public void marketClosed()
Reaction on event: The market has just closed.

Specified by:
marketClosed in interface MarketEventListener

marketOpened

public void marketOpened()
Reaction on event: The market has just opened.

Specified by:
marketOpened in interface MarketEventListener

timeAdvanced

public void timeAdvanced()
Reaction on event: The time has advanced.

Specified by:
timeAdvanced in interface MarketEventListener

workerInformationChanged

public void workerInformationChanged()
Reaction on event: A new order for workers arrived or a worker logged on.

Specified by:
workerInformationChanged in interface MarketEventListener

Großmarkt