Class TextButtonFactory
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory
-
public class TextButtonFactory extends java.lang.ObjectA factory class to create "textbutton" instances.
-
-
Constructor Summary
Constructors Constructor 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)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AbstractGUIElementnewTextButton(@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.
-
-
-
Constructor Detail
-
TextButtonFactory
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)Creates a new instance.- Parameters:
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 instance
-
-
Method Detail
-
newTextButton
@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)
Creates a new text button.- Parameters:
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- Returns:
- the new text button
-
-