Crossfire JXClient, Trunk
|
Public Member Functions | |
AbstractGUIElement | newTextButton (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final String text, final boolean autoRepeat, @NotNull final CommandList commandList) |
TextButtonFactory (@NotNull final ButtonImages up, @NotNull final ButtonImages down, @NotNull final Font font, @NotNull final Color color, @NotNull final Color colorSelected, @NotNull final Color colorDisabled, @NotNull final GuiFactory guiFactory, @NotNull final NewCharModel newCharModel, @NotNull final KeybindingsManager keybindingsManager) | |
Private Attributes | |
final Color | color |
final Color | colorDisabled |
final Color | colorSelected |
final ButtonImages | down |
final Font | font |
final GuiFactory | guiFactory |
final KeybindingsManager | keybindingsManager |
final NewCharModel | newCharModel |
final ButtonImages | up |
A factory class to create "textbutton" instances.
Definition at line 42 of file TextButtonFactory.java.
com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory | ( | @NotNull final ButtonImages | up, |
@NotNull final ButtonImages | down, | ||
@NotNull final Font | font, | ||
@NotNull final Color | color, | ||
@NotNull final Color | colorSelected, | ||
@NotNull final Color | colorDisabled, | ||
@NotNull final GuiFactory | guiFactory, | ||
@NotNull final NewCharModel | newCharModel, | ||
@NotNull final KeybindingsManager | keybindingsManager | ||
) |
Creates a new instance.
up | the images comprising the "up" button state |
down | the images comprising the "down" button state |
font | the font to use |
color | the text color |
colorSelected | the text color when selected |
colorDisabled | the text color when disabled |
guiFactory | the global GUI factory instance |
newCharModel | the global new char model instance |
keybindingsManager | the global key bindings manager instance |
Definition at line 110 of file TextButtonFactory.java.
References com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.color, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorDisabled, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorSelected, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.down, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.font, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.guiFactory, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.keybindingsManager, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newCharModel, and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.up.
AbstractGUIElement com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final String | text, | ||
final boolean | autoRepeat, | ||
@NotNull final CommandList | commandList | ||
) |
Creates a new text button.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
text | the button text |
autoRepeat | whether the button should auto-repeat while being pressed |
commandList | the commands to execute when the button is elected |
Definition at line 134 of file TextButtonFactory.java.
References com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.color, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorDisabled, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorSelected, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.down, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.font, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.guiFactory, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.keybindingsManager, com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newCharModel, and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.up.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextButton().
|
private |
The text color.
Definition at line 66 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The text color when disabled.
Definition at line 78 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The text color when selected.
Definition at line 72 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The images comprising the "down" button state.
Definition at line 54 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The font to use.
Definition at line 60 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The global GuiFactory instance.
Definition at line 84 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The global KeybindingsManager instance.
Definition at line 96 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The global NewCharModel instance.
Definition at line 90 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().
|
private |
The images comprising the "up" button state.
Definition at line 48 of file TextButtonFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newTextButton(), and com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.TextButtonFactory().