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 ButtoncreateButton(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:BaseWrappedButtonCreate the button from the section- Specified by:
createButtonin classBaseWrappedButton<Button>- Parameters:
section- the section- Returns:
- the button
-
getOptions
public Map<String,Object> getOptions()
Description copied from class:BaseWrappedButtonGet the options of the button- Overrides:
getOptionsin classBaseWrappedButton<Button>- Returns:
- the options
-
-