Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
int | getDialogBorderBottom () |
int | getDialogBorderLeft () |
int | getDialogBorderRight () |
int | getDialogBorderTop () |
String | getName () |
abstract TooltipText | getTooltip () |
void | inhibitListeners () |
boolean | isDefault () |
boolean | isIgnore () |
void | mouseClicked (@NotNull final MouseEvent e) |
void | mouseDragged (@NotNull final MouseEvent e) |
void | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@NotNull final MouseEvent e) |
void | mousePressed (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
void | mouseWheelMoved (final int wheelRotation) |
void | setChanged () |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
void | setDefault (final boolean isDefault) |
void | setIgnore () |
String | toString () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.GUIElement | |
void | notifyOpen () |
Protected Member Functions | |
AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
TooltipText | newTooltipText (@Nullable final String tooltipText) |
void | tooltipChanged () |
Private Attributes | |
GUIElementChangedListener | changedListener |
final GUIElementListener | elementListener |
final GuiFactory | guiFactory |
boolean | ignore |
boolean | inhibitListeners |
boolean | isDefault |
final String | name |
boolean | pendingChange |
final Runnable | setChangedRunnable |
final TooltipManager | tooltipManager |
Static Private Attributes | |
static final long | serialVersionUID = 1 |
Abstract base class for GUI elements to be shown in Guis.
Definition at line 37 of file AbstractGUIElement.java.
|
protected |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
opaque | whether this element is opaque |
guiFactory | the global GUI factory instance |
Definition at line 130 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.dispose | ( | ) |
Releases all allocated resources.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2, com.realtime.crossfire.jxclient.gui.log.GUILog, com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut, com.realtime.crossfire.jxclient.gui.item.GUIItemQuest, com.realtime.crossfire.jxclient.gui.label.GUILabelStats, com.realtime.crossfire.jxclient.gui.item.GUIItemSpell, com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat, com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill, com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.item.GUIItemFloor, com.realtime.crossfire.jxclient.gui.item.GUIItemInventory, com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel, com.realtime.crossfire.jxclient.gui.list.GUIMetaElement, com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage, com.realtime.crossfire.jxclient.gui.misc.GUISpinner, com.realtime.crossfire.jxclient.gui.misc.GUICheckBox, com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar, com.realtime.crossfire.jxclient.gui.button.AbstractButton, com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< T >, com.realtime.crossfire.jxclient.gui.item.GUIItemItem, com.realtime.crossfire.jxclient.gui.label.GUILabelFailure, com.realtime.crossfire.jxclient.gui.label.GUILabelQuery, and com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.
Definition at line 141 of file AbstractGUIElement.java.
int com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getDialogBorderBottom | ( | ) |
Returns the size of the dialog's bottom border.
Reimplemented in com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.
Definition at line 313 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseVertical().
int com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getDialogBorderLeft | ( | ) |
Returns the size of the dialog's left border.
Reimplemented in com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.
Definition at line 297 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseHorizontal().
int com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getDialogBorderRight | ( | ) |
Returns the size of the dialog's right border.
Reimplemented in com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.
Definition at line 305 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseHorizontal().
int com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getDialogBorderTop | ( | ) |
Returns the size of the dialog's top border.
Reimplemented in com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.
Definition at line 289 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseVertical().
String com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getName | ( | ) |
Returns the internal name of this gui element. The name is used in skin files for identifying an element.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 174 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name.
Referenced by com.realtime.crossfire.jxclient.gui.misc.JXCWindowRenderer.activateCommandInput().
|
abstract |
Returns the current tooltip text.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground, com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge, com.realtime.crossfire.jxclient.gui.label.GUILabelStats2, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge, com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut, com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< T >, com.realtime.crossfire.jxclient.gui.list.GUICharacter, com.realtime.crossfire.jxclient.gui.button.GUITextButton, com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat, com.realtime.crossfire.jxclient.gui.item.GUIItemItem, com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar, com.realtime.crossfire.jxclient.gui.list.GUIMetaElement, com.realtime.crossfire.jxclient.gui.misc.GUICheckBox, com.realtime.crossfire.jxclient.gui.label.GUILabelStats, com.realtime.crossfire.jxclient.gui.button.AbstractButton2, com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel, com.realtime.crossfire.jxclient.gui.map.GUIMiniMap, com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel, com.realtime.crossfire.jxclient.gui.map.GUIMapDirections, com.realtime.crossfire.jxclient.gui.misc.GUISpinner, com.realtime.crossfire.jxclient.gui.map.GUIMap, com.realtime.crossfire.jxclient.gui.misc.GUIPicture, com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel, com.realtime.crossfire.jxclient.gui.textinput.GUICommandText, com.realtime.crossfire.jxclient.gui.button.GUISelectableButton, com.realtime.crossfire.jxclient.gui.log.GUILabelLog, com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText, com.realtime.crossfire.jxclient.gui.textinput.GUITextField, com.realtime.crossfire.jxclient.gui.misc.GUIFill, and com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.
Referenced by com.realtime.crossfire.jxclient.gui.label.TooltipManagerImpl.addTooltip().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.inhibitListeners | ( | ) |
Prevents change listeners to be notified.
Definition at line 279 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.inhibitListeners, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChangedRunnable.
boolean com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isDefault | ( | ) |
Returns whether this element is the default element. The default element is selected with the ENTER key.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 152 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isDefault.
boolean com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isIgnore | ( | ) |
Returns whether this gui element is to be ignored for user interaction.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 167 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.ignore.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseClicked | ( | @NotNull final MouseEvent | e | ) |
Will be called when the user has clicked (pressed+released) this element. This event will be delivered after mouseReleased(MouseEvent).
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.textinput.GUIText, com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge, com.realtime.crossfire.jxclient.gui.gauge.GUIGauge, com.realtime.crossfire.jxclient.gui.list.GUIMetaElement, com.realtime.crossfire.jxclient.gui.misc.GUICheckBox, com.realtime.crossfire.jxclient.gui.button.AbstractButton, com.realtime.crossfire.jxclient.gui.map.GUIMap, and com.realtime.crossfire.jxclient.gui.item.GUIItem.
Definition at line 179 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, and com.realtime.crossfire.jxclient.gui.gui.GUIElementListener.raiseDialog().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseDragged | ( | @NotNull final MouseEvent | e | ) |
Will be called when the mouse moves within this component while the button is pressed. This event will be delivered after mouseMoved(MouseEvent).
Note: if the mouse leaves this element's bounding box while the mouse button is still pressed, further
(but no
) events will be generated.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground, com.realtime.crossfire.jxclient.gui.log.GUILog, com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar, and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.
Definition at line 215 of file AbstractGUIElement.java.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseEntered | ( | @NotNull final MouseEvent | e | ) |
Will be called when the mouse has entered the bounding box of this element.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.
Definition at line 186 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.TooltipManager.setElement(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseExited | ( | @NotNull final MouseEvent | e | ) |
Will be called when the mouse has left the bounding box of this element. This function will not be called unless mouseEntered(MouseEvent) has been called before.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, and com.realtime.crossfire.jxclient.gui.button.AbstractButton.
Definition at line 193 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager, and com.realtime.crossfire.jxclient.gui.gui.TooltipManager.unsetElement().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseMoved | ( | @NotNull final MouseEvent | e | ) |
Will be called when the mouse moves within this component. before.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >.
Definition at line 211 of file AbstractGUIElement.java.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mousePressed | ( | @NotNull final MouseEvent | e | ) |
Will be called when the user has pressed the mouse inside this element.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground, com.realtime.crossfire.jxclient.gui.log.GUILog, com.realtime.crossfire.jxclient.gui.button.AbstractButton, com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar, com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement, and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.
Definition at line 200 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, and com.realtime.crossfire.jxclient.gui.gui.GUIElementListener.raiseDialog().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseReleased | ( | @NotNull final MouseEvent | e | ) |
Will be called when the user has released the mouse. This event may be delivered even if no previous mousePressed(MouseEvent) has been delivered before.
e | the mouse event relative to this element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground, com.realtime.crossfire.jxclient.gui.log.GUILog, com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar, com.realtime.crossfire.jxclient.gui.button.AbstractButton, and com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.
Definition at line 207 of file AbstractGUIElement.java.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseWheelMoved | ( | final int | wheelRotation | ) |
Will be called when the mouse wheel has been moved.
wheelRotation | the movement amount; negative=away from the user, positive=towards the user |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, com.realtime.crossfire.jxclient.gui.log.GUILog, and com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.
Definition at line 219 of file AbstractGUIElement.java.
|
protected |
Creates a TooltipText instance relative to this instance.
tooltipText | the text of the instance or null
null
|
Definition at line 247 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.Gui.getComponent(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory.
Referenced by com.realtime.crossfire.jxclient.gui.button.GUISelectableButton.getTooltip(), com.realtime.crossfire.jxclient.gui.misc.GUIPicture.getTooltip(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats.getTooltip(), com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.getTooltip(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.getTooltip(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.getTooltip(), com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat.getTooltip(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.getTooltip(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.getTooltip(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.getTooltip(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.getTooltip(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.getTooltip(), and com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.getTooltip().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChanged | ( | ) |
Records that the contents have changed and must be repainted.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Reimplemented in com.realtime.crossfire.jxclient.gui.list.GUIList< T extends GUIElement >, and com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.
Definition at line 223 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.inhibitListeners, com.realtime.crossfire.jxclient.util.SwingUtilities2.invokeLater(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.pendingChange, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChangedRunnable.
Referenced by com.realtime.crossfire.jxclient.gui.button.GUIButton.activeChanged(), com.realtime.crossfire.jxclient.gui.item.GUIItem.activeChanged(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.activeChanged(), com.realtime.crossfire.jxclient.gui.misc.GUISpinner.activeChanged(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.activeChanged(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.activeChanged(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.GUIMetaElement(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.keyPressed(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.mouseClicked(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.mouseClicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.scroll(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.scroll(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.scroll(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.scroll(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.scroll(), com.realtime.crossfire.jxclient.gui.button.GUISelectableButton.select(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.select(), com.realtime.crossfire.jxclient.gui.misc.MouseTracker.setActiveComponent(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.setBounds(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.setCursor(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.setHideInput(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.setIndex(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.setIndex(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.setItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.setKnowledgeItem(), com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.setPosition(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.setQuest(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.setSelected(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSelected(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.setShortcut(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.setSkill(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.setSkill(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell(), com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.setValues(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.setValues(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.setValues(), com.realtime.crossfire.jxclient.gui.item.GUIItem.setVisible(), com.realtime.crossfire.jxclient.gui.label.GUILabel.textChanged(), com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel.textChanged(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.updateSelectedItem(), and com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.updateStat().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChangedListener | ( | @Nullable final GUIElementChangedListener | changedListener | ) |
Sets the GUIElementChangedListener to be notified. Note that at most one such listener may be set per gui element.
changedListener | the listener or null
|
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 272 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.changedListener.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUIText.GUIText().
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setDefault | ( | final boolean | isDefault | ) |
Sets whether this element is the default element. The default element is selected with the ENTER key.
isDefault | whether this element is the default element |
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 157 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isDefault.
void com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setIgnore | ( | ) |
Marks this gui element to be ignored for user interaction.
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 162 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.ignore.
|
protected |
Must be called whenever the tooltip may have changed.
Definition at line 265 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager, and com.realtime.crossfire.jxclient.gui.gui.TooltipManager.tooltipTextChanged().
Referenced by com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.doTooltip(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.scroll(), com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.setChanged(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.setIndex(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.setIndex(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.setItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.setQuest(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.setShortcut(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.setSkill(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.setValues(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.setValues(), and com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.updateSelectedItem().
String com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.toString | ( | ) |
Definition at line 147 of file AbstractGUIElement.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name.
|
private |
The GUIElementChangedListener to be notified whenever this element has changed.
Definition at line 55 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChangedListener().
|
private |
The GUIElementListener to notify.
Definition at line 89 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.AbstractGUIElement(), com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.AbstractGUIMap(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.AbstractLabel(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.GUIComboBox(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.GUIDialogBackground(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.GUIDupGauge(), com.realtime.crossfire.jxclient.gui.misc.GUIFill.GUIFill(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.GUIGauge(), com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel.GUIHTMLLabel(), com.realtime.crossfire.jxclient.gui.label.GUILabel.GUILabel(), com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure(), com.realtime.crossfire.jxclient.gui.log.GUILabelLog.GUILabelLog(), com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage(), com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats.GUILabelStats(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.GUILabelStats2(), com.realtime.crossfire.jxclient.gui.log.GUILog.GUILog(), com.realtime.crossfire.jxclient.gui.map.GUIMap.GUIMap(), com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog(), com.realtime.crossfire.jxclient.gui.map.GUIMiniMap.GUIMiniMap(), com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.GUIMultiLineLabel(), com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.GUINewcharLabel(), com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.GUIOneLineLabel(), com.realtime.crossfire.jxclient.gui.misc.GUIPicture.GUIPicture(), com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat.GUIPictureStat(), com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseClicked(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mousePressed().
|
private |
The global GuiFactory instance.
Definition at line 48 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.AbstractButton.AbstractButton(), com.realtime.crossfire.jxclient.gui.button.AbstractButton2.AbstractButton2(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.AbstractGUIElement(), com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.AbstractGUIMap(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.AbstractLabel(), com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.ActivatableGUIElement(), com.realtime.crossfire.jxclient.gui.button.GUIButton.GUIButton(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.GUICharacter(), com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.GUICheckBox(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.GUIComboBox(), com.realtime.crossfire.jxclient.gui.textinput.GUICommandText.GUICommandText(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.GUIDupGauge(), com.realtime.crossfire.jxclient.gui.misc.GUIFill.GUIFill(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.GUIGauge(), com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel.GUIHTMLLabel(), com.realtime.crossfire.jxclient.gui.item.GUIItem.GUIItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.GUIItemFloor(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.GUIItemInventory(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.GUIItemItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.GUIItemKnowledge(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.GUIItemKnowledgeType(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.GUIItemQuest(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.GUIItemShortcut(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.GUIItemSpell(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.GUIItemSpellSkill(), com.realtime.crossfire.jxclient.gui.label.GUILabel.GUILabel(), com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure(), com.realtime.crossfire.jxclient.gui.log.GUILabelLog.GUILabelLog(), com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats.GUILabelStats(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.GUILabelStats2(), com.realtime.crossfire.jxclient.gui.log.GUILog.GUILog(), com.realtime.crossfire.jxclient.gui.map.GUIMap.GUIMap(), com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.GUIMetaElement(), com.realtime.crossfire.jxclient.gui.map.GUIMiniMap.GUIMiniMap(), com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.GUIMultiLineLabel(), com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.GUINewcharLabel(), com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.GUIOneLineLabel(), com.realtime.crossfire.jxclient.gui.misc.GUIPicture.GUIPicture(), com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat.GUIPictureStat(), com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.GUIQueryText(), com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.GUIScrollBar(), com.realtime.crossfire.jxclient.gui.button.GUISelectableButton.GUISelectableButton(), com.realtime.crossfire.jxclient.gui.misc.GUISpinner.GUISpinner(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.GUIText(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.GUITextButton(), com.realtime.crossfire.jxclient.gui.textinput.GUITextField.GUITextField(), com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.newTooltipText().
|
private |
Whether this gui element should be ignored for user interaction.
Definition at line 71 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isIgnore(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setIgnore().
|
private |
If set, change listeners will not be notified.
Definition at line 66 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.inhibitListeners(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChanged().
|
private |
Whether this element is the default element. The default element is selected with the ENTER key.
Definition at line 61 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Gui.getDefaultElement(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.isDefault(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setDefault().
|
private |
The name of this element.
Definition at line 77 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.AbstractButton.AbstractButton(), com.realtime.crossfire.jxclient.gui.button.AbstractButton2.AbstractButton2(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.AbstractGUIElement(), com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.AbstractGUIMap(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.AbstractLabel(), com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.ActivatableGUIElement(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.getName(), com.realtime.crossfire.jxclient.gui.button.GUIButton.GUIButton(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.GUICharacter(), com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.GUICheckBox(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.GUIComboBox(), com.realtime.crossfire.jxclient.gui.textinput.GUICommandText.GUICommandText(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.GUIDialogBackground(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.GUIDupGauge(), com.realtime.crossfire.jxclient.gui.misc.GUIFill.GUIFill(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.GUIGauge(), com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel.GUIHTMLLabel(), com.realtime.crossfire.jxclient.gui.item.GUIItem.GUIItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.GUIItemFloor(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.GUIItemInventory(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.GUIItemItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.GUIItemKnowledge(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.GUIItemKnowledgeType(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.GUIItemQuest(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.GUIItemShortcut(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.GUIItemSpell(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.GUIItemSpellSkill(), com.realtime.crossfire.jxclient.gui.label.GUILabel.GUILabel(), com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure(), com.realtime.crossfire.jxclient.gui.log.GUILabelLog.GUILabelLog(), com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage(), com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats.GUILabelStats(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.GUILabelStats2(), com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.GUIList(), com.realtime.crossfire.jxclient.gui.log.GUILog.GUILog(), com.realtime.crossfire.jxclient.gui.map.GUIMap.GUIMap(), com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.GUIMetaElement(), com.realtime.crossfire.jxclient.gui.map.GUIMiniMap.GUIMiniMap(), com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.GUIMultiLineLabel(), com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.GUINewcharLabel(), com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.GUIOneLineLabel(), com.realtime.crossfire.jxclient.gui.misc.GUIPicture.GUIPicture(), com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat.GUIPictureStat(), com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.GUIQueryText(), com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.GUIScrollBar(), com.realtime.crossfire.jxclient.gui.button.GUISelectableButton.GUISelectableButton(), com.realtime.crossfire.jxclient.gui.misc.GUISpinner.GUISpinner(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.GUIText(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.GUITextButton(), com.realtime.crossfire.jxclient.gui.textinput.GUITextField.GUITextField(), com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.toString(), and com.realtime.crossfire.jxclient.gui.textinput.GUIText.updateErrorText().
|
private |
Used to avoid refreshing items all the time.
Definition at line 94 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChanged().
|
staticprivate |
The serial version UID.
Definition at line 42 of file AbstractGUIElement.java.
|
private |
The Runnable that implements the code of setChanged() which must run on the EDT.
Definition at line 101 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.inhibitListeners(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.setChanged().
|
private |
The TooltipManager to update.
Definition at line 83 of file AbstractGUIElement.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.AbstractButton.AbstractButton(), com.realtime.crossfire.jxclient.gui.button.AbstractButton2.AbstractButton2(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.AbstractGUIElement(), com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.AbstractGUIMap(), com.realtime.crossfire.jxclient.gui.label.AbstractLabel.AbstractLabel(), com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.ActivatableGUIElement(), com.realtime.crossfire.jxclient.gui.button.GUIButton.GUIButton(), com.realtime.crossfire.jxclient.gui.list.GUICharacter.GUICharacter(), com.realtime.crossfire.jxclient.gui.misc.GUICheckBox.GUICheckBox(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.GUIComboBox(), com.realtime.crossfire.jxclient.gui.textinput.GUICommandText.GUICommandText(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogBackground.GUIDialogBackground(), com.realtime.crossfire.jxclient.gui.misc.GUIDialogTitle.GUIDialogTitle(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.GUIDupGauge(), com.realtime.crossfire.jxclient.gui.misc.GUIFill.GUIFill(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.GUIGauge(), com.realtime.crossfire.jxclient.gui.label.GUIHTMLLabel.GUIHTMLLabel(), com.realtime.crossfire.jxclient.gui.item.GUIItem.GUIItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemFloor.GUIItemFloor(), com.realtime.crossfire.jxclient.gui.item.GUIItemInventory.GUIItemInventory(), com.realtime.crossfire.jxclient.gui.item.GUIItemItem.GUIItemItem(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledge.GUIItemKnowledge(), com.realtime.crossfire.jxclient.gui.item.GUIItemKnowledgeType.GUIItemKnowledgeType(), com.realtime.crossfire.jxclient.gui.item.GUIItemQuest.GUIItemQuest(), com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.GUIItemShortcut(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.GUIItemSpell(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpellSkill.GUIItemSpellSkill(), com.realtime.crossfire.jxclient.gui.label.GUILabel.GUILabel(), com.realtime.crossfire.jxclient.gui.label.GUILabelFailure.GUILabelFailure(), com.realtime.crossfire.jxclient.gui.log.GUILabelLog.GUILabelLog(), com.realtime.crossfire.jxclient.gui.misc.GUILabelMessage.GUILabelMessage(), com.realtime.crossfire.jxclient.gui.label.GUILabelQuery.GUILabelQuery(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats.GUILabelStats(), com.realtime.crossfire.jxclient.gui.label.GUILabelStats2.GUILabelStats2(), com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.GUIList(), com.realtime.crossfire.jxclient.gui.log.GUILog.GUILog(), com.realtime.crossfire.jxclient.gui.map.GUIMap.GUIMap(), com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), com.realtime.crossfire.jxclient.gui.log.GUIMessageLog.GUIMessageLog(), com.realtime.crossfire.jxclient.gui.list.GUIMetaElement.GUIMetaElement(), com.realtime.crossfire.jxclient.gui.map.GUIMiniMap.GUIMiniMap(), com.realtime.crossfire.jxclient.gui.label.GUIMultiLineLabel.GUIMultiLineLabel(), com.realtime.crossfire.jxclient.gui.label.GUINewcharLabel.GUINewcharLabel(), com.realtime.crossfire.jxclient.gui.label.GUIOneLineLabel.GUIOneLineLabel(), com.realtime.crossfire.jxclient.gui.misc.GUIPicture.GUIPicture(), com.realtime.crossfire.jxclient.gui.misc.GUIPictureStat.GUIPictureStat(), com.realtime.crossfire.jxclient.gui.textinput.GUIQueryText.GUIQueryText(), com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.GUIScrollBar(), com.realtime.crossfire.jxclient.gui.button.GUISelectableButton.GUISelectableButton(), com.realtime.crossfire.jxclient.gui.misc.GUISpinner.GUISpinner(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.GUIText(), com.realtime.crossfire.jxclient.gui.button.GUITextButton.GUITextButton(), com.realtime.crossfire.jxclient.gui.textinput.GUITextField.GUITextField(), com.realtime.crossfire.jxclient.gui.gauge.GUITextGauge.GUITextGauge(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseEntered(), com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.mouseExited(), and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipChanged().