Class MultiButton
java.lang.Object
io.github.projectunified.craftux.button.MultiButton
- Direct Known Subclasses:
AnimatedButton,ListButton
A base button that handles multiple child buttons
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdd child buttonsfinal <T extends Button>
voidaddButton(@NotNull Collection<@NotNull T> buttons) Add child buttonsGet the list of child buttonsvoidinit()Initialize the element.voidstop()Stop the element.
-
Field Details
-
buttons
-
-
Constructor Details
-
MultiButton
public MultiButton()
-
-
Method Details
-
addButton
Add child buttons- Type Parameters:
T- the type of the button- Parameters:
buttons- the child buttons
-
addButton
Add child buttons- Parameters:
button- the button
-
getButtons
Get the list of child buttons- Returns:
- the list of child buttons
-
init
public void init()Description copied from interface:ElementInitialize the element. Should be called before adding to the GUI. -
stop
public void stop()Description copied from interface:ElementStop the element. Should be called after removing from the GUI.
-