public class TextButtonFactory
extends java.lang.Object
| Constructor and Description |
|---|
TextButtonFactory(@NotNull ButtonImages up,
@NotNull ButtonImages down,
@NotNull java.awt.Font font,
@NotNull java.awt.Color color,
@NotNull java.awt.Color colorSelected,
@NotNull java.awt.Color colorDisabled,
@NotNull GuiFactory guiFactory,
@NotNull NewCharModel newCharModel,
@NotNull KeybindingsManager keybindingsManager)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull AbstractGUIElement |
newTextButton(@NotNull TooltipManager tooltipManager,
@NotNull GUIElementListener elementListener,
@NotNull java.lang.String name,
@NotNull java.lang.String text,
boolean autoRepeat,
@NotNull CommandList commandList)
Creates a new text button.
|
public TextButtonFactory(@NotNull
@NotNull ButtonImages up,
@NotNull
@NotNull ButtonImages down,
@NotNull
@NotNull java.awt.Font font,
@NotNull
@NotNull java.awt.Color color,
@NotNull
@NotNull java.awt.Color colorSelected,
@NotNull
@NotNull java.awt.Color colorDisabled,
@NotNull
@NotNull GuiFactory guiFactory,
@NotNull
@NotNull NewCharModel newCharModel,
@NotNull
@NotNull KeybindingsManager keybindingsManager)
up - the images comprising the "up" button statedown - the images comprising the "down" button statefont - the font to usecolor - the text colorcolorSelected - the text color when selectedcolorDisabled - the text color when disabledguiFactory - the global GUI factory instancenewCharModel - the global new char model instancekeybindingsManager - the global key bindings manager instance@NotNull public @NotNull AbstractGUIElement newTextButton(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.String text, boolean autoRepeat, @NotNull @NotNull CommandList commandList)
tooltipManager - the tooltip manager to updateelementListener - the element listener to notifyname - the name of this elementtext - the button textautoRepeat - whether the button should auto-repeat while being
pressedcommandList - the commands to execute when the button is elected