Crossfire JXClient, Trunk
|
Public Member Functions | |
void | execute () |
TooltipText | getTooltip () |
GUIQueryText (@NotNull final CrossfireServerConnection server, @Nullable final CommandHistory commandHistory, @NotNull final CommandCallback commandCallback, @NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final NewCharModel newCharModel, @NotNull final Image activeImage, @NotNull final Image inactiveImage, @NotNull final Font font, @NotNull final Color inactiveColor, @NotNull final Color activeColor, final int margin, @NotNull final String text, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.textinput.GUIText | |
Dimension | getMaximumSize () |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
String | getText () |
boolean | keyPressed (@NotNull final KeyEvent2 e) |
void | mouseClicked (@NotNull final MouseEvent e) |
void | paintComponent (@NotNull final Graphics g) |
void | setHideInput (final boolean hideInput) |
void | setText (@NotNull final String text) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement | |
void | activateNextElement () |
void | activatePrevElement () |
boolean | isActive () |
void | mousePressed (@NotNull final MouseEvent e) |
void | setActive (final boolean active) |
void | setNextActive (@NotNull final ActivatableGUIElement next) |
void | setPrevActive (@NotNull final ActivatableGUIElement prev) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
void | dispose () |
int | getDialogBorderBottom () |
int | getDialogBorderLeft () |
int | getDialogBorderRight () |
int | getDialogBorderTop () |
String | getName () |
void | inhibitListeners () |
boolean | isDefault () |
boolean | isIgnore () |
void | mouseDragged (@NotNull final MouseEvent e) |
void | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
void | mouseWheelMoved (final int wheelRotation) |
void | setChanged () |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
void | setDefault (final boolean isDefault) |
void | setIgnore () |
String | toString () |
Protected Member Functions | |
void | execute (@NotNull final String command) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.textinput.GUIText | |
void | activeChanged () |
GUIText (@NotNull final CommandCallback commandCallback, @Nullable final CommandHistory commandHistory, @NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final NewCharModel newCharModel, @NotNull final Image activeImage, @NotNull final Image inactiveImage, @NotNull final Font font, @NotNull final Color inactiveColor, @NotNull final Color activeColor, final int margin, @NotNull final String text, @NotNull final GuiFactory guiFactory) | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement | |
ActivatableGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
void | markInactivePending () |
void | setInactiveIfPending () |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
TooltipText | newTooltipText (@Nullable final String tooltipText) |
void | tooltipChanged () |
Private Attributes | |
final CrossfireServerConnection | server |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
Input field for "query" dialogs.
Definition at line 42 of file GUIQueryText.java.
com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.GUIQueryText | ( | @NotNull final CrossfireServerConnection | server, |
@Nullable final CommandHistory | commandHistory, | ||
@NotNull final CommandCallback | commandCallback, | ||
@NotNull final TooltipManager | tooltipManager, | ||
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final NewCharModel | newCharModel, | ||
@NotNull final Image | activeImage, | ||
@NotNull final Image | inactiveImage, | ||
@NotNull final Font | font, | ||
@NotNull final Color | inactiveColor, | ||
@NotNull final Color | activeColor, | ||
final int | margin, | ||
@NotNull final String | text, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
server | the crossfire server connection for sending reply commands |
commandHistory | the command history to use or null
|
commandCallback | the command callback to use |
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
newCharModel | the new char model to show |
activeImage | the element's background image when it is active |
inactiveImage | the element's background image when it is inactive |
font | the font for rendering displayed text |
inactiveColor | the color for rendering displayed text when the element is active; also cursor color |
activeColor | the color for rendering displayed text when the element is active |
margin | the left margin in pixels |
text | the initially entered text |
guiFactory | the global GUI factory instance |
Definition at line 76 of file GUIQueryText.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUIText.activeColor, com.realtime.crossfire.jxclient.gui.textinput.GUIText.activeImage, com.realtime.crossfire.jxclient.gui.textinput.GUIText.commandCallback, com.realtime.crossfire.jxclient.gui.textinput.GUIText.commandHistory, com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.textinput.GUIText.font, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.textinput.GUIText.inactiveColor, com.realtime.crossfire.jxclient.gui.textinput.GUIText.inactiveImage, com.realtime.crossfire.jxclient.gui.textinput.GUIText.margin, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.textinput.GUIText.newCharModel, com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.server, com.realtime.crossfire.jxclient.gui.textinput.GUIText.text, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.execute | ( | ) |
Executes the actions associated with this GUI element. Does nothing if this element has no associated actions.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.
Definition at line 98 of file GUIQueryText.java.
|
protected |
Will be called to execute the entered command.
command | the entered command |
Reimplemented from com.realtime.crossfire.jxclient.gui.textinput.GUIText.
Definition at line 82 of file GUIQueryText.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.sendReply(), com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.server, and com.realtime.crossfire.jxclient.gui.textinput.GUIText.setText().
TooltipText com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.getTooltip | ( | ) |
Returns the current tooltip text.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 93 of file GUIQueryText.java.
void com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.notifyOpen | ( | ) |
Called each time the enclosing dialog is opened (or raised).
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 88 of file GUIQueryText.java.
|
staticprivate |
The serial version UID.
Definition at line 47 of file GUIQueryText.java.
|
private |
The CrossfireServerConnection for sending reply commands.
Definition at line 53 of file GUIQueryText.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.execute(), and com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.GUIQueryText().