 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.item;
31 import java.awt.event.MouseEvent;
32 import org.jetbrains.annotations.NotNull;
59 super.mouseClicked(e);
65 switch (e.getButton()) {
66 case MouseEvent.BUTTON1:
71 case MouseEvent.BUTTON2:
75 case MouseEvent.BUTTON3:
111 super.setVisible(aFlag);
GUIItem(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final GuiFactory guiFactory)
Creates a new instance.
void setChanged()
Records that the contents have changed and must be repainted.
static final long serialVersionUID
The serial version UID.
void activeChanged()
Will be called whenever the active state has changed.
A GUIElement that can be set to active or inactive.
A GUIElement representing an in-game object.
Interface defining an abstract GUI element.
abstract void button1Clicked(final int modifiers)
Called when the left mouse button was pressed.
abstract void button2Clicked(final int modifiers)
Called when the middle mouse button was pressed.
final GuiFactory guiFactory
The global GuiFactory instance.
abstract void button3Clicked(final int modifiers)
Called when the right mouse button was pressed.
final GUIElementListener elementListener
The GUIElementListener to notify.
Factory for creating Gui instances.
final String name
The name of this element.
void execute()
Executes the actions associated with this GUI element.
void setVisible(final boolean aFlag)
final TooltipManager tooltipManager
The TooltipManager to update.
void mouseClicked(@NotNull final MouseEvent e)
Will be called when the user has clicked (pressed+released) this element.
void setActive(final boolean active)
Sets the active state of a GUI element.
Listener for GUIElement related events.