Package me.hsgamer.bettergui.builder
Class ButtonBuilder
- java.lang.Object
-
- me.hsgamer.hscore.builder.MassBuilder<I,O>
-
- me.hsgamer.hscore.builder.FunctionalMassBuilder<ButtonBuilder.Input,WrappedButton>
-
- me.hsgamer.bettergui.builder.ButtonBuilder
-
public final class ButtonBuilder extends FunctionalMassBuilder<ButtonBuilder.Input,WrappedButton>
The button builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ButtonBuilder.Input
The input for the button builder
-
Field Summary
Fields Modifier and Type Field Description static ButtonBuilder
INSTANCE
The instance of the button builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<WrappedButton>
getChildButtons(WrappedButton parentButton, Map<String,Object> section)
Get the child buttons from the parent buttonprotected String
getType(ButtonBuilder.Input input)
-
Methods inherited from class me.hsgamer.hscore.builder.FunctionalMassBuilder
build, register
-
Methods inherited from class me.hsgamer.hscore.builder.MassBuilder
build, buildAll, clear, getElements, register, register, remove
-
-
-
-
Field Detail
-
INSTANCE
public static final ButtonBuilder INSTANCE
The instance of the button builder
-
-
Method Detail
-
getType
protected String getType(ButtonBuilder.Input input)
- Specified by:
getType
in classFunctionalMassBuilder<ButtonBuilder.Input,WrappedButton>
-
getChildButtons
public List<WrappedButton> getChildButtons(WrappedButton parentButton, Map<String,Object> section)
Get the child buttons from the parent button- Parameters:
parentButton
- the parent buttonsection
- the child section- Returns:
- the child buttons
-
-