source:
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/IGUIElement.java
@
846
Last change on this file since 846 was 831, checked in by sherbold, 12 years ago | |
---|---|
|
|
File size: 1.7 KB |
Rev | Line | |
---|---|---|
[831] | 1 | |
[545] | 2 | package de.ugoe.cs.quest.eventcore.guimodel; |
3 | ||
4 | import de.ugoe.cs.quest.eventcore.IEventTarget; | |
5 | ||
6 | /** | |
[595] | 7 | * <p> |
[831] | 8 | * Common interface for all GUI elements. |
[595] | 9 | * </p> |
[545] | 10 | * |
[831] | 11 | * @version 1.0 |
12 | * @author Patrick Harms | |
[545] | 13 | */ |
14 | public interface IGUIElement extends IEventTarget { | |
[831] | 15 | |
[545] | 16 | /** |
[595] | 17 | * <p> |
[831] | 18 | * Returns the specification of the GUI element. |
[595] | 19 | * </p> |
[831] | 20 | * |
21 | * @return the specification | |
[545] | 22 | */ |
[576] | 23 | public IGUIElementSpec getSpecification(); |
[545] | 24 | |
25 | /** | |
[595] | 26 | * <p> |
[831] | 27 | * Returns the parent of the GUI element. |
[595] | 28 | * </p> |
[831] | 29 | * |
30 | * @return the parent | |
[603] | 31 | */ |
32 | public IGUIElement getParent(); | |
33 | ||
34 | /** | |
35 | * <p> | |
[831] | 36 | * Defines that {@link IGUIElement} implementations have to define equals. |
[603] | 37 | * </p> |
[831] | 38 | * |
39 | * @see Object#equals(Object) | |
[545] | 40 | */ |
[831] | 41 | @Override |
[603] | 42 | public boolean equals(Object other); |
[545] | 43 | |
[576] | 44 | /** |
[595] | 45 | * <p> |
[831] | 46 | * Defines that {@link IGUIElement} implementations have to define hashCode. |
[595] | 47 | * </p> |
[831] | 48 | * |
49 | * @see Object#hashCode() | |
[576] | 50 | */ |
[831] | 51 | @Override |
[576] | 52 | public int hashCode(); |
[589] | 53 | |
[595] | 54 | /** |
55 | * <p> | |
[831] | 56 | * Updates the specification of a GUI element with another specification, e.g., to add further |
57 | * known names of the GUI element. | |
[595] | 58 | * </p> |
[831] | 59 | * |
60 | * @param furtherSpec | |
61 | * additional specification | |
[595] | 62 | */ |
63 | public void updateSpecification(IGUIElementSpec furtherSpec); | |
[613] | 64 | |
65 | /** | |
66 | * <p> | |
[831] | 67 | * The {@link IGUIElement} that is passed by this function is equal to the current GUI element |
68 | * and will hereafter be treated as such. | |
[613] | 69 | * </p> |
[831] | 70 | * |
[613] | 71 | * @param guiElement |
[831] | 72 | * GUI element that is equal |
[613] | 73 | */ |
74 | public void addEqualGUIElement(IGUIElement equalElement); | |
[545] | 75 | } |
Note: See TracBrowser
for help on using the repository browser.