Crossfire JXClient, Trunk
GUIElement.java
Go to the documentation of this file.
1 /*
2  * This file is part of JXClient, the Fullscreen Java Crossfire Client.
3  *
4  * JXClient is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * JXClient is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with JXClient; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * Copyright (C) 2005-2008 Yann Chachkoff
19  * Copyright (C) 2006-2017,2019-2023 Andreas Kirschbaum
20  * Copyright (C) 2010-2012,2014-2018,2020-2023 Nicolas Weeger
21  */
22 
23 package com.realtime.crossfire.jxclient.gui.gui;
24 
25 import java.awt.event.MouseEvent;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
28 
33 public interface GUIElement {
34 
38  void dispose();
39 
45  boolean isDefault();
46 
52  void setDefault(boolean isDefault);
53 
57  void setIgnore();
58 
63  boolean isIgnore();
64 
70  @NotNull
71  String getName();
72 
78  void mouseClicked(@NotNull MouseEvent e);
79 
85  void mouseEntered(@NotNull MouseEvent e);
86 
93  void mouseExited(@NotNull MouseEvent e);
94 
99  void mousePressed(@NotNull MouseEvent e);
100 
107  void mouseReleased(@NotNull MouseEvent e);
108 
113  void mouseMoved(@NotNull MouseEvent e);
114 
125  void mouseDragged(@NotNull MouseEvent e);
126 
132  void mouseWheelMoved(int wheelRotation);
133 
137  void setChanged();
138 
144  void setChangedListener(@Nullable GUIElementChangedListener changedListener);
145 
149  void notifyOpen();
150 
151 }
com.realtime.crossfire.jxclient.gui.gui.GUIElement.isDefault
boolean isDefault()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseWheelMoved
void mouseWheelMoved(int wheelRotation)
com.realtime.crossfire.jxclient.gui.gui.GUIElementChangedListener
Definition: GUIElementChangedListener.java:30
com.realtime.crossfire.jxclient.gui.gui.GUIElement.setDefault
void setDefault(boolean isDefault)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseClicked
void mouseClicked(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseDragged
void mouseDragged(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.getName
String getName()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.setIgnore
void setIgnore()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseEntered
void mouseEntered(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.notifyOpen
void notifyOpen()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.isIgnore
boolean isIgnore()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseMoved
void mouseMoved(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.setChangedListener
void setChangedListener(@Nullable GUIElementChangedListener changedListener)
com.realtime.crossfire.jxclient.gui.gui.GUIElement
Definition: GUIElement.java:33
com.realtime.crossfire.jxclient.gui.gui.GUIElement.dispose
void dispose()
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseReleased
void mouseReleased(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mouseExited
void mouseExited(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.mousePressed
void mousePressed(@NotNull MouseEvent e)
com.realtime.crossfire.jxclient.gui.gui.GUIElement.setChanged
void setChanged()