|
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 | +--market.SPCustomer
SalesPoint used by the UCustomer
.
Field Summary |
Fields inherited from class sale.SalesPoint |
m_pCurProcess |
Constructor Summary | |
SPCustomer(User user)
|
Method Summary | |
static void |
addEventListener(OfferEventListener e)
Adds an OfferEventListener to the array of listeners. |
void |
countArticles(String articleKey,
SProcessWorker spw)
Reaction on event: a SProcessWorker needs the count of all existing articles. |
static void |
fireCountArticles(String articleKey,
SProcessWorker spw)
Fires an event to all listeners: count this article. |
static void |
fireOfferIsEmpty(String articleKey)
Fires an event to all listeners: this article is empty. |
protected FormSheet |
getDefaultFormSheet()
|
protected MenuSheet |
getDefaultMenuSheet()
|
void |
offerEmpty(String articleKey)
Reaction on event: An article is unavailable. |
protected boolean |
onCanQuit()
|
void |
quit()
Removes this SPSustomer from the array of OfferEventListeners. |
static void |
removeEventListener(OfferEventListener e)
Removes an OfferEventListener from the array of listeners. |
void |
wakeUpOrders()
Empty implementation of the OfferEventListener Interface. |
Methods inherited from class market.SPListenable |
formSheetSet, marketClosed, marketOpened, notifyOnMarketClosing, notifyOnMarketNotClosing, resume, timeAdvanced, workerInformationChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SPCustomer(User user)
user
- the User of this SPCustomerMethod Detail |
protected boolean onCanQuit()
onCanQuit
in class SPListenable
true
if no SaleProcess is running, otherwise false
.
This forces the user to quit the SaleProcess before he closes the SalesPoint.public void quit()
quit
in class SalesPoint
protected FormSheet getDefaultFormSheet()
getDefaultFormSheet
in class SPListenable
protected MenuSheet getDefaultMenuSheet()
getDefaultMenuSheet
in class SalesPoint
public static void addEventListener(OfferEventListener e)
e
- the OfferEventListener that will be added.public static void removeEventListener(OfferEventListener e)
e
- the OfferEventListener that will be removed.public static void fireOfferIsEmpty(String articleKey)
articleKey
- the key of the unavailable article.public static void fireCountArticles(String articleKey, SProcessWorker spw)
articleKey
- the key of the article to count.spw
- the SProcessWorker which has sended the request.public void offerEmpty(String articleKey)
offerEmpty
in interface OfferEventListener
articleKey
- the unavailable article.public void wakeUpOrders()
wakeUpOrders
in interface OfferEventListener
public void countArticles(String articleKey, SProcessWorker spw)
countArticles
in interface OfferEventListener
articleKey
- the name of the article.spw
- the SProcessWorker that sends the request.
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |