source: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java @ 1002

Last change on this file since 1002 was 927, checked in by sherbold, 12 years ago
  • added copyright under the Apache License, Version 2.0
  • Property svn:executable set to *
File size: 2.3 KB
RevLine 
[927]1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
[831]14
[922]15package de.ugoe.cs.autoquest.eventcore.guimodel;
[545]16
[922]17import de.ugoe.cs.autoquest.eventcore.IEventTarget;
[545]18
19/**
[595]20 * <p>
[831]21 * Common interface for all GUI elements.
[595]22 * </p>
[545]23 *
[831]24 * @version 1.0
25 * @author Patrick Harms
[545]26 */
27public interface IGUIElement extends IEventTarget {
[831]28
[545]29    /**
[595]30     * <p>
[831]31     * Returns the specification of the GUI element.
[595]32     * </p>
[831]33     *
34     * @return the specification
[545]35     */
[576]36    public IGUIElementSpec getSpecification();
[545]37
38    /**
[595]39     * <p>
[831]40     * Returns the parent of the GUI element.
[595]41     * </p>
[831]42     *
43     * @return the parent
[603]44     */
45    public IGUIElement getParent();
46
47    /**
48     * <p>
[831]49     * Defines that {@link IGUIElement} implementations have to define equals.
[603]50     * </p>
[831]51     *
52     * @see Object#equals(Object)
[545]53     */
[831]54    @Override
[603]55    public boolean equals(Object other);
[545]56
[576]57    /**
[595]58     * <p>
[831]59     * Defines that {@link IGUIElement} implementations have to define hashCode.
[595]60     * </p>
[831]61     *
62     * @see Object#hashCode()
[576]63     */
[831]64    @Override
[576]65    public int hashCode();
[589]66
[595]67    /**
68     * <p>
[831]69     * Updates the specification of a GUI element with another specification, e.g., to add further
70     * known names of the GUI element.
[595]71     * </p>
[831]72     *
73     * @param furtherSpec
74     *            additional specification
[595]75     */
76    public void updateSpecification(IGUIElementSpec furtherSpec);
[613]77
78    /**
79     * <p>
[831]80     * The {@link IGUIElement} that is passed by this function is equal to the current GUI element
81     * and will hereafter be treated as such.
[613]82     * </p>
[831]83     *
[613]84     * @param guiElement
[831]85     *            GUI element that is equal
[613]86     */
87    public void addEqualGUIElement(IGUIElement equalElement);
[545]88}
Note: See TracBrowser for help on using the repository browser.