Package me.hsgamer.bettergui.button
Class ActionButton<B extends Button>
- java.lang.Object
-
- me.hsgamer.bettergui.api.button.BaseWrappedButton<B>
-
- me.hsgamer.bettergui.button.ActionButton<B>
-
- All Implemented Interfaces:
WrappedButton
,MenuElement
,Button
,Initializable
- Direct Known Subclasses:
WrappedAirButton
,WrappedNullButton
,WrappedSimpleButton
public abstract class ActionButton<B extends Button> extends BaseWrappedButton<B>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ActionButton(ButtonBuilder.Input input)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected B
createButton(Map<String,Object> section)
Create the button from the sectionprotected abstract Function<Consumer<ClickEvent>,B>
getButtonFunction(Map<String,Object> section)
-
Methods inherited from class me.hsgamer.bettergui.api.button.BaseWrappedButton
display, getMenu, getName, getOptions, init, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.hsgamer.bettergui.api.button.WrappedButton
refresh
-
-
-
-
Constructor Detail
-
ActionButton
protected ActionButton(ButtonBuilder.Input input)
-
-
Method Detail
-
getButtonFunction
protected abstract Function<Consumer<ClickEvent>,B> getButtonFunction(Map<String,Object> section)
-
createButton
protected B createButton(Map<String,Object> section)
Description copied from class:BaseWrappedButton
Create the button from the section- Specified by:
createButton
in classBaseWrappedButton<B extends Button>
- Parameters:
section
- the section- Returns:
- the button
-
-