 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.log;
29 import java.awt.Color;
30 import java.awt.Image;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
82 public void updateText(@NotNull
final CharSequence
string,
final int type,
final int subtype) {
GUILabelLog(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final Image backgroundImage, @NotNull final Fonts fonts, @NotNull final Color defaultColor, @NotNull final Color selectionColor, @NotNull final GuiFactory guiFactory)
Creates a new instance.
Abstract base class for gui elements implementing text fields.
Buffer getBuffer()
Returns the Buffer instance containing the text messages.
TooltipText getTooltip()
Returns the current tooltip text.
final GUIElementListener elementListener
The GUIElementListener to notify.
Parser for parsing drawextinfo messages received from a Crossfire server to update a Buffer instance.
final Buffer buffer
The Buffer containing all received text messages.
void parse(@NotNull final CharSequence text, final int type, final int subtype, @NotNull final Color defaultColor, @NotNull final Buffer buffer)
Parses a text message.
Manages the contents of the contents of a log window.
static final long serialVersionUID
The serial version UID.
final GuiFactory guiFactory
The global GuiFactory instance.
void scrollTo(final int pos)
Scrolls to the given location.
Information for displaying tooltips.
Factory for creating Gui instances.
final String name
The name of this element.
void notifyOpen()
Called each time the enclosing dialog is opened (or raised).
void clear()
Clears all lines from the buffer.
void updateText(@NotNull final CharSequence string, final int type, final int subtype)
Sets the displayed text by parsing a string.
final TooltipManager tooltipManager
The TooltipManager to update.
final Image backgroundImage
The background image drawn below the text contents.
final Color defaultColor
The default color to use for text message not specifying a color.
A gui element implementing a static text field which may contain media tags.
final Parser parser
The Parser instance for parsing drawextinfo messages.
Listener for GUIElement related events.