|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.basketapp.client.Basket
public class Basket
The Class Basket.
| Nested Class Summary | |
|---|---|
static interface |
Basket.BasketListener
The listener interface for receiving basket events. |
static class |
Basket.STATUS
The Enum STATUS. |
| Constructor Summary | |
|---|---|
Basket(ContentSystem contentSystem,
TableIdentity tableId)
Instantiates a new basket. |
|
| Method Summary | |
|---|---|
void |
addBasketListener(Basket.BasketListener listener)
Adds the basket listener. |
boolean |
addItem(ContentItem basketItem)
Adds the item. |
void |
addItems(java.util.List<ContentItem> items)
Adds the items. |
void |
clear()
Clear. |
boolean |
containsItem(ContentItem item)
Contains item. |
boolean |
detachItem(ContentItem item)
Detach item. |
void |
detachItems(java.util.List<ContentItem> items)
Detach items. |
java.util.List<ContentItem> |
getItems()
Gets the items. |
TableIdentity |
getTableId()
Gets the table id. |
Window |
getWindow()
Gets the window. |
void |
removeBasketListener(Basket.BasketListener listener)
Removes the basket listener. |
void |
setStatus(Basket.STATUS status)
Sets the status. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Basket(ContentSystem contentSystem,
TableIdentity tableId)
contentSystem - the content systemtableId - the table id| Method Detail |
|---|
public void addBasketListener(Basket.BasketListener listener)
listener - the listenerpublic boolean addItem(ContentItem basketItem)
basketItem - the basket item
public void addItems(java.util.List<ContentItem> items)
items - the itemspublic void clear()
public boolean containsItem(ContentItem item)
item - the item
public boolean detachItem(ContentItem item)
item - the item
public void detachItems(java.util.List<ContentItem> items)
items - the itemspublic java.util.List<ContentItem> getItems()
public TableIdentity getTableId()
public Window getWindow()
public void removeBasketListener(Basket.BasketListener listener)
listener - the listenerpublic void setStatus(Basket.STATUS status)
status - the new status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||