22 package com.realtime.crossfire.jxclient.gui.gui;
24 import java.awt.event.MouseEvent;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
85 void mouseEntered(@NotNull MouseEvent e,
boolean debugGui);
148 void setTooltipText(@Nullable String tooltipText,
int x,
int y,
int w,
int h);
boolean isDefault()
Returns whether this element is the default element.
void dispose()
Releases all allocated resources.
boolean isIgnore()
Returns whether this gui element is to be ignored for user interaction.
void setIgnore()
Marks this gui element to be ignored for user interaction.
String getName()
Returns the internal name of this gui element.
void mouseMoved(@NotNull MouseEvent e)
Will be called when the mouse moves within this component.
void mouseClicked(@NotNull MouseEvent e)
Will be called when the user has clicked (pressed+released) this element.
void setDefault(boolean isDefault)
Sets whether this element is the default element.
Interface defining an abstract GUI element.
void mouseEntered(@NotNull MouseEvent e, boolean debugGui)
Will be called when the mouse has entered the bounding box of this element.
void mouseExited(@NotNull MouseEvent e)
Will be called when the mouse has left the bounding box of this element.
void mouseReleased(@NotNull MouseEvent e)
Will be called when the user has released the mouse.
void mouseDragged(@NotNull MouseEvent e)
Will be called when the mouse moves within this component while the button is pressed.
Interface for listeners interested in the changed flag of GUIElement instances.
void setChangedListener(@Nullable GUIElementChangedListener changedListener)
Sets the GUIElementChangedListener to be notified.
boolean hasTooltipText()
Returns whether the tooltip is enabled.
void setChanged()
Records that the contents have changed and must be repainted.
void setTooltipText(@Nullable String tooltipText)
Sets the tooltip text to show when the mouse is inside this element.
void mousePressed(@NotNull MouseEvent e)
Will be called when the user has pressed the mouse inside this element.