 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.button;
35 import java.awt.Dimension;
36 import java.awt.event.ActionListener;
37 import java.awt.event.KeyEvent;
38 import java.awt.event.MouseEvent;
39 import javax.swing.Timer;
40 import org.jetbrains.annotations.NotNull;
41 import org.jetbrains.annotations.Nullable;
135 super.mouseClicked(e);
141 final int b = e.getButton();
143 case MouseEvent.BUTTON1:
150 case MouseEvent.BUTTON2:
153 case MouseEvent.BUTTON3:
160 super.mouseReleased(e);
166 final int b = e.getButton();
168 case MouseEvent.BUTTON1:
175 case MouseEvent.BUTTON2:
178 case MouseEvent.BUTTON3:
185 super.mousePressed(e);
191 final int b = e.getButton();
193 case MouseEvent.BUTTON1:
200 case MouseEvent.BUTTON2:
203 case MouseEvent.BUTTON3:
210 super.mouseExited(e);
231 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
238 @SuppressWarnings(
"MethodDoesntCallSuperMethod")
256 switch (e.getKeyCode()) {
257 case KeyEvent.VK_SPACE:
258 case KeyEvent.VK_ENTER:
boolean containsCommand(@NotNull final Class<? extends GUICommand > command)
Returns whether this command list contains a command of the given type.
void addListener(@NotNull final NewCharModelListener listener)
Adds a listener to notify of changes.
A GUIElement that can be set to active or inactive.
Represents a pressed or released key.
Interface for listeners interested in NewCharModel related changes.
General information for creating new characters.
final GuiFactory guiFactory
The global GuiFactory instance.
void removeListener(@NotNull final NewCharModelListener listener)
Removes a listener to be notified of changes.
final GUIElementListener elementListener
The GUIElementListener to notify.
Interface for classes that may handle "pressed" key events.
Factory for creating Gui instances.
void execute()
Execute the command list by calling GUICommand#execute() for each command in order.
A list of GUICommand instances.
final String name
The name of this element.
A GUICommand sending a character creation request.
final TooltipManager tooltipManager
The TooltipManager to update.
void setActive(final boolean active)
Sets the active state of a GUI element.
boolean hasNonServerFailureErrorText()
Returns the error text to show.
Listener for GUIElement related events.