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

Public Member Functions

 KeyBindingState (@Nullable final KeyBindings keyBindings, @Nullable final KeyBindings keyBindings2, @Nullable final CommandList commands)
 
void keyPressed (@NotNull final KeyEvent2 keyEvent)
 
boolean keyReleased ()
 

Private Attributes

final CommandList commands
 
final KeyBindings keyBindings
 
final KeyBindings keyBindings2
 
KeyEvent2 keyEvent
 
int state
 
int type = -1
 

Detailed Description

Manages the state for the key binding dialog.

Author
Andreas Kirschbaum

Definition at line 33 of file KeyBindingState.java.

Constructor & Destructor Documentation

◆ KeyBindingState()

com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.KeyBindingState ( @Nullable final KeyBindings  keyBindings,
@Nullable final KeyBindings  keyBindings2,
@Nullable final CommandList  commands 
)

Creates a new instance.

Parameters
keyBindingsthe
KeyBindings
to modify; may be
null
when removing bindings
keyBindings2the
KeyBindings
to modify; only used when removing bindings; may be
null
when removing bindings
commandsthe commands to bind, or
null
to unbind

Definition at line 78 of file KeyBindingState.java.

References com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.commands, com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyBindings, and com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyBindings2.

Member Function Documentation

◆ keyPressed()

void com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyPressed ( @NotNull final KeyEvent2  keyEvent)

◆ keyReleased()

boolean com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyReleased ( )

Member Data Documentation

◆ commands

final CommandList com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.commands
private

◆ keyBindings

final KeyBindings com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyBindings
private

◆ keyBindings2

final KeyBindings com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyBindings2
private

◆ keyEvent

KeyEvent2 com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyEvent
private

◆ state

int com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.state
private

The dialog state: 0=waiting for initial key press, 1=waiting for key release.

Definition at line 57 of file KeyBindingState.java.

Referenced by com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyPressed(), and com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.keyReleased().

◆ type

int com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.type = -1
private

The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.keybindings.KeyBindingState.type
int type
Definition: KeyBindingState.java:63