 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.gui;
26 import java.awt.event.MouseEvent;
27 import org.jetbrains.annotations.NotNull;
89 super.mousePressed(e);
132 public abstract void execute();
abstract void activeChanged()
Will be called whenever the active state has changed.
ActivatableGUIElement prev
The previous activatable GUI element in the same dialog.
abstract void execute()
Executes the actions associated with this GUI element.
void activateNextElement()
Activates the following element.
Abstract base class for GUI elements to be shown in Guis.
A GUIElement that can be set to active or inactive.
ActivatableGUIElement(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory)
Creates a new instance.
boolean pendingInactive
Set if the next call to setInactiveIfPending() will deactivate this GUI element.
boolean isActive(@NotNull ActivatableGUIElement element)
Returns whether an ActivatableGUIElement is active.
void setPrevActive(@NotNull final ActivatableGUIElement prev)
Sets the previous activatable GUI element in the same dialog.
boolean isActive()
Returns whether a GUI element is active.
ActivatableGUIElement next
The next activatable GUI element in the same dialog.
void mousePressed(@NotNull final MouseEvent e)
Will be called when the user has pressed the mouse inside this element.
void markInactivePending()
Marks this GUI element as pending inactive.
void setNextActive(@NotNull final ActivatableGUIElement next)
Sets the next activatable GUI element in the same dialog.
void activatePrevElement()
Activates the previous element.
final GuiFactory guiFactory
The global GuiFactory instance.
final GUIElementListener elementListener
The GUIElementListener to notify.
Factory for creating Gui instances.
final String name
The name of this element.
void activeChanged(@NotNull ActivatableGUIElement element, boolean active)
The active state of an AbstractGUIElement has changed.
static final long serialVersionUID
The serial version UID.
final TooltipManager tooltipManager
The TooltipManager to update.
void setActive(final boolean active)
Sets the active state of a GUI element.
void setInactiveIfPending()
Unsets the active state of this GUI element if it is pending.
Listener for GUIElement related events.