|
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 SalesPointpublic void formSheetSet(FormSheetEvent e)
formSheetSet in interface FormSheetListenerformSheetSet in class SalesPointe - the fired Eventpublic void resume()
resume in class SalesPointprotected boolean onCanQuit()
onCanQuit in class SalesPointtrue 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 MarketEventListenerpublic void notifyOnMarketNotClosing()
notifyOnMarketNotClosing in interface MarketEventListenerpublic void marketClosed()
marketClosed in interface MarketEventListenerpublic void marketOpened()
marketOpened in interface MarketEventListenerpublic void timeAdvanced()
timeAdvanced in interface MarketEventListenerpublic void workerInformationChanged()
workerInformationChanged in interface MarketEventListener
|
Großmarkt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||