Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.gui.label.GUILabelQuery Class Reference

A GUIHTMLLabel that displays the last received "query" command. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.gui.label.GUILabelQuery:
+ Collaboration diagram for com.realtime.crossfire.jxclient.gui.label.GUILabelQuery:

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...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel
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)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel
void setText (@NotNull final String text)
 Sets the label text. More...
 
void setTextHighlight (final boolean textHighlight)
 Sets whether the text should be highlighted. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement
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

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel
void textChanged ()
 Will be called whenever text or getTextColor() has changed. More...
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.GUILabel
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...
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.label.AbstractLabel
 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...
 
- 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)
 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...
 

Detailed Description

A GUIHTMLLabel that displays the last received "query" command.

Author
Andreas Kirschbaum

Definition at line 39 of file GUILabelQuery.java.

Constructor & Destructor Documentation

◆ GUILabelQuery()

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 
)

Member Function Documentation

◆ dispose()

Member Data Documentation

◆ crossfireQueryListener

final CrossfireQueryListener com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireQueryListener = (prompt, queryType) -> setText(prompt)
private

◆ crossfireServerConnection

final CrossfireServerConnection com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.crossfireServerConnection
private

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 44 of file GUILabelQuery.java.


The documentation for this class was generated from the following file: