Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory:
Collaboration graph

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
 

Detailed Description

A factory class to create "textbutton" instances.

Author
Andreas Kirschbaum

Definition at line 42 of file TextButtonFactory.java.

Constructor & Destructor Documentation

◆ TextButtonFactory()

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.

Parameters
upthe images comprising the "up" button state
downthe images comprising the "down" button state
fontthe font to use
colorthe text color
colorSelectedthe text color when selected
colorDisabledthe text color when disabled
guiFactorythe global GUI factory instance
newCharModelthe global new char model instance
keybindingsManagerthe 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.

Member Function Documentation

◆ newTextButton()

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 
)

Member Data Documentation

◆ color

final Color com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.color
private

◆ colorDisabled

final Color com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorDisabled
private

◆ colorSelected

final Color com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.colorSelected
private

◆ down

final ButtonImages com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.down
private

◆ font

final Font com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.font
private

◆ guiFactory

final GuiFactory com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.guiFactory
private

◆ keybindingsManager

final KeybindingsManager com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.keybindingsManager
private

◆ newCharModel

final NewCharModel com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.newCharModel
private

◆ up

final ButtonImages com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory.up
private

The documentation for this class was generated from the following file: