Package de.studiocode.invui.item.impl
Class BaseItem
java.lang.Object
de.studiocode.invui.item.impl.BaseItem
- All Implemented Interfaces:
Item
- Direct Known Subclasses:
AsyncItem,AutoCycleItem,ControlItem,CycleItem,SimpleItem,SuppliedItem
The base for all
Items.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCalls theWindow.handleItemProviderUpdate(Item)method on everyWindowin the set, notifying them that theItemProviderhas been updated and theItemStackinside theWindow'sInventoryshould be replaced.voidremoveWindow(Window window) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.studiocode.invui.item.Item
getItemProvider, handleClick
-
Constructor Details
-
BaseItem
public BaseItem()
-
-
Method Details
-
addWindow
Description copied from interface:Item -
removeWindow
Description copied from interface:ItemRemoves anWindowfrom the window set, telling theItemthat it is no longer being displayed in thatWindow.- Specified by:
removeWindowin interfaceItem- Parameters:
window- TheWindowtheItemis no longer displayed in.
-
getWindows
Description copied from interface:Item- Specified by:
getWindowsin interfaceItem- Returns:
- An immutable view of the
Setof all theWindows where thisItemis displayed in.
-
notifyWindows
public void notifyWindows()Description copied from interface:ItemCalls theWindow.handleItemProviderUpdate(Item)method on everyWindowin the set, notifying them that theItemProviderhas been updated and theItemStackinside theWindow'sInventoryshould be replaced.- Specified by:
notifyWindowsin interfaceItem
-