![]() |
Crossfire JXClient, Trunk
|
A GUIHTMLLabel that displays the last received "query" command. More...
Public Member Functions | |
void | dispose () |
Releases all allocated resources. More... | |
GUILabelQuery (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final Font font, @NotNull final Color color, @Nullable final Color backgroundColor, @NotNull final GuiFactory guiFactory) | |
Creates a new instance. More... | |
![]() | |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
TooltipText | getTooltip () |
Returns the current tooltip text. More... | |
GUIMultiLineLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final Font textFont, @NotNull final Color textColor, @Nullable final Color backgroundColor, @NotNull final Alignment alignment, @NotNull final String text, @NotNull final GuiFactory guiFactory) | |
Creates a new instance. More... | |
void | notifyOpen () |
Called each time the enclosing dialog is opened (or raised). More... | |
void | paintComponent (@NotNull final Graphics g) |
![]() | |
void | setText (@NotNull final String text) |
Sets the label text. More... | |
void | setTextHighlight (final boolean textHighlight) |
Sets whether the text should be highlighted. More... | |
![]() | |
int | getDialogBorderBottom () |
Returns the size of the dialog's bottom border. More... | |
int | getDialogBorderLeft () |
Returns the size of the dialog's left border. More... | |
int | getDialogBorderRight () |
Returns the size of the dialog's right border. More... | |
int | getDialogBorderTop () |
Returns the size of the dialog's top border. More... | |
String | getName () |
Returns the internal name of this gui element. More... | |
void | inhibitListeners () |
Prevents change listeners to be notified. More... | |
boolean | isDefault () |
Returns whether this element is the default element. More... | |
boolean | isIgnore () |
Returns whether this gui element is to be ignored for user interaction. More... | |
void | mouseClicked (@NotNull final MouseEvent e) |
Will be called when the user has clicked (pressed+released) this element. More... | |
void | mouseDragged (@NotNull final MouseEvent e) |
Will be called when the mouse moves within this component while the button is pressed. More... | |
void | mouseEntered (@NotNull final MouseEvent e) |
Will be called when the mouse has entered the bounding box of this element. More... | |
void | mouseExited (@NotNull final MouseEvent e) |
Will be called when the mouse has left the bounding box of this element. More... | |
void | mouseMoved (@NotNull final MouseEvent e) |
Will be called when the mouse moves within this component. More... | |
void | mousePressed (@NotNull final MouseEvent e) |
Will be called when the user has pressed the mouse inside this element. More... | |
void | mouseReleased (@NotNull final MouseEvent e) |
Will be called when the user has released the mouse. More... | |
void | mouseWheelMoved (final int wheelRotation) |
Will be called when the mouse wheel has been moved. More... | |
void | setChanged () |
Records that the contents have changed and must be repainted. More... | |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
Sets the GUIElementChangedListener to be notified. More... | |
void | setDefault (final boolean isDefault) |
Sets whether this element is the default element. More... | |
void | setIgnore () |
Marks this gui element to be ignored for user interaction. More... | |
String | toString () |
Private Attributes | |
final CrossfireQueryListener | crossfireQueryListener = (prompt, queryType) -> setText(prompt) |
The CrossfireQueryListener registered to receive query commands. More... | |
final CrossfireServerConnection | crossfireServerConnection |
The CrossfireServerConnection to monitor. More... | |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
The serial version UID. More... | |
Additional Inherited Members | |
![]() | |
void | textChanged () |
Will be called whenever text or getTextColor() has changed. More... | |
![]() | |
void | drawLine (@NotNull final Graphics2D g, final int y0, final int h0, @NotNull final String text) |
Draws one line of text. More... | |
GUILabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final BufferedImage picture, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final Color backgroundColor, @NotNull final Alignment textAlignment, @NotNull final GuiFactory guiFactory) | |
Creates a new instance. More... | |
![]() | |
AbstractLabel (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final String text, @NotNull final Font textFont, @NotNull final Color textColor, @NotNull final Color textHighlightColor, @Nullable final BufferedImage backgroundPicture, @Nullable final Color backgroundColor, @NotNull final GuiFactory guiFactory) | |
Creates a new instance. More... | |
String | getText () |
Returns the label text. More... | |
Color | getTextColor () |
Returns the text color. More... | |
Font | getTextFont () |
Returns the font. More... | |
![]() | |
AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
Creates a new instance. More... | |
TooltipText | newTooltipText (@Nullable final String tooltipText) |
Creates a TooltipText instance relative to this instance. More... | |
void | tooltipChanged () |
Must be called whenever the tooltip may have changed. More... | |
A GUIHTMLLabel that displays the last received "query" command.
Definition at line 39 of file GUILabelQuery.java.
com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final CrossfireServerConnection | crossfireServerConnection, | ||
@NotNull final Font | font, | ||
@NotNull final Color | color, | ||
@Nullable final Color | backgroundColor, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
crossfireServerConnection | the connection instance |
font | the font to use |
color | the color to use |
backgroundColor | the background color |
guiFactory | the global GUI factory instance |
Definition at line 69 of file GUILabelQuery.java.
References com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.addCrossfireQueryListener(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.backgroundColor, com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireQueryListener, com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireServerConnection, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.label.Alignment.LEFT, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.dispose | ( | ) |
Releases all allocated resources.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 76 of file GUILabelQuery.java.
References com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireQueryListener, com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireServerConnection, and com.realtime.crossfire.jxclient.server.crossfire.CrossfireServerConnection.removeCrossfireQueryListener().
|
private |
The CrossfireQueryListener registered to receive query commands.
Definition at line 56 of file GUILabelQuery.java.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.dispose(), and com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery().
|
private |
The CrossfireServerConnection to monitor.
Definition at line 50 of file GUILabelQuery.java.
Referenced by com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.dispose(), and com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery().
|
staticprivate |
The serial version UID.
Definition at line 44 of file GUILabelQuery.java.