 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.label;
30 import java.awt.Color;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
60 public void failure(@NotNull
final String command, @NotNull
final String arguments) {
61 setText(arguments.replaceFirst(
"^([0-9]+ )?",
""));
65 public void clearFailure() {
Interface for listeners interested in the "failure" messages received from the Crossfire server.
final CrossfireServerConnection crossfireServerConnection
The CrossfireServerConnection to monitor.
void dispose()
Releases all allocated resources.
final Color backgroundColor
If set, the opaque background color.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
final GUIElementListener elementListener
The GUIElementListener to notify.
static final long serialVersionUID
The serial version UID.
GUILabelFailure(@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.
void addCrossfireFailureListener(@NotNull CrossfireFailureListener listener)
Adds a listener to be notified of failure messages.
final CrossfireFailureListener crossfireFailureListener
The CrossfireFailureListener registered to receive failure messages.
void setText(@NotNull final String text)
Sets the label text.
final GuiFactory guiFactory
The global GuiFactory instance.
Factory for creating Gui instances.
final String name
The name of this element.
A GUIHTMLLabel that displays the last received "failure" message.
void removeCrossfireFailureListener(@NotNull CrossfireFailureListener listener)
Removes a listener to be notified of failure messages.
A AbstractLabel that renders the text as a list of plain strings.
final TooltipManager tooltipManager
The TooltipManager to update.
Listener for GUIElement related events.