Class ControlItem<G extends Gui>
java.lang.Object
xyz.xenondevs.invui.item.impl.AbstractItem
xyz.xenondevs.invui.item.impl.controlitem.ControlItem<G>
- Type Parameters:
G
- The Gui Type thisControlItem
will control. Not checked when adding it to a Gui.
- All Implemented Interfaces:
Item
- Direct Known Subclasses:
PageItem
,ScrollItem
,TabItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGui()
final ItemProvider
Gets theItemProvider
.abstract ItemProvider
getItemProvider
(G gui) void
Methods inherited from class xyz.xenondevs.invui.item.impl.AbstractItem
addWindow, getWindows, notifyWindows, removeWindow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.item.Item
getItemProvider, handleClick
-
Constructor Details
-
ControlItem
public ControlItem()
-
-
Method Details
-
getItemProvider
-
getItemProvider
Description copied from interface:Item
Gets theItemProvider
. This method gets called every time aWindow
is notified (Item.notifyWindows()
).- Returns:
- The
ItemProvider
-
getGui
-
setGui
-