22 package com.realtime.crossfire.jxclient.gui.label;
28 import java.awt.Color;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
67 super(tooltipManager, elementListener, name, null, font, color, backgroundColor,
Alignment.
LEFT,
"");
Listener for GUIElement related events.
void setText(@NotNull final String text)
The label text.
A AbstractLabel that renders the text as a list of plain strings.
final TooltipManager tooltipManager
The TooltipManager to update.
final CrossfireServerConnection crossfireServerConnection
The CrossfireServerConnection to monitor.
A GUIHTMLLabel that displays the last received "query" command.
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)
Creates a new instance.
final GUIElementListener elementListener
The GUIElementListener to notify.
final Color backgroundColor
If set, the opaque background color.
final String name
The name of this element.
static final long serialVersionUID
The serial version UID.
final CrossfireQueryListener crossfireQueryListener
The CrossfireQueryListener registered to receive query commands.
void addCrossfireQueryListener(@NotNull CrossfireQueryListener listener)
Adds a new listener monitoring the query S->C messages.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Interface for listeners interested in query messages received from the Crossfire server.
void dispose()
Releases all allocated resources.
void removeCrossfireQueryListener(@NotNull CrossfireQueryListener listener)
Removes the given listener from the list of objects listening to the query S->C messages.