Package me.hsgamer.bettergui.button
Class TemplateButton
- java.lang.Object
-
- me.hsgamer.bettergui.api.button.BaseWrappedButton<Button>
-
- me.hsgamer.bettergui.button.TemplateButton
-
- All Implemented Interfaces:
WrappedButton
,MenuElement
,Button
,Initializable
public class TemplateButton extends BaseWrappedButton<Button>
-
-
Constructor Summary
Constructors Constructor Description TemplateButton(ButtonBuilder.Input input)
Create a new button
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Button
createButton(Map<String,Object> section)
Create the button from the sectionMap<String,Object>
getOptions()
Get the options of the button-
Methods inherited from class me.hsgamer.bettergui.api.button.BaseWrappedButton
display, getMenu, getName, 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
-
TemplateButton
public TemplateButton(ButtonBuilder.Input input)
Create a new button- Parameters:
input
- the input
-
-
Method Detail
-
createButton
protected Button createButton(Map<String,Object> section)
Description copied from class:BaseWrappedButton
Create the button from the section- Specified by:
createButton
in classBaseWrappedButton<Button>
- Parameters:
section
- the section- Returns:
- the button
-
getOptions
public Map<String,Object> getOptions()
Description copied from class:BaseWrappedButton
Get the options of the button- Overrides:
getOptions
in classBaseWrappedButton<Button>
- Returns:
- the options
-
-