|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sale.SalesPoint | +--market.SPListenable
A SalesPoint that can react to MarketEvents.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SPListenable(String s)
s
- the SalesPoints name.Method Detail |
protected FormSheet getDefaultFormSheet()
getDefaultFormSheet
in class SalesPoint
public void formSheetSet(FormSheetEvent e)
formSheetSet
in interface FormSheetListener
formSheetSet
in class SalesPoint
e
- the fired Eventpublic void resume()
resume
in class SalesPoint
protected boolean onCanQuit()
onCanQuit
in class SalesPoint
true
if no SaleProcess is running, otherwise false
.
This forces the user to quit the SaleProcess before he closes the SalesPoint.public void notifyOnMarketClosing()
notifyOnMarketClosing
in interface MarketEventListener
public void notifyOnMarketNotClosing()
notifyOnMarketNotClosing
in interface MarketEventListener
public void marketClosed()
marketClosed
in interface MarketEventListener
public void marketOpened()
marketOpened
in interface MarketEventListener
public void timeAdvanced()
timeAdvanced
in interface MarketEventListener
public void workerInformationChanged()
workerInformationChanged
in interface MarketEventListener
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |