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

Last change on this file since 2156 was 2146, checked in by pharms, 7 years ago
  • refactored GUI model so that hierarchical event target structures can also be used and created by plugins not being strictly for GUIs
File size: 1.7 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;
[576]16
[778]17import java.io.Serializable;
18
[2146]19import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec;
20
[576]21/**
22 * <p>
[831]23 * Common interface for GUI element specifications.
[576]24 * </p>
25 *
[966]26 * @version 1.1
27 * @author Patrick Harms, Steffen Herbold
[576]28 */
[2146]29public interface IGUIElementSpec extends Serializable, IEventTargetSpec {
[576]30
31    /**
32     * <p>
[966]33     * Returns a string representation of the GUI element type that this specification represents.
[576]34     * </p>
[831]35     *
[576]36     * @return
37     */
38    public String getType();
[966]39   
40    /**
41     * <p>
42     * Returns a string array with the names of the classes in the hierarchy of the GUI element that
43     * this specification represents. The first element is the GUI element's class, the second its
44     * parent, the third its grand-parent, etc.
45     * </p>
46     * <p>
47     * In case the class hierarchy is unknown or the GUI elements are not based on
48     * object-orientation, this method should <code>return new String[]{getType()};</code>.
49     * </p>
50     *
51     * @return
52     */
[990]53    public String[] getTypeHierarchy();
[831]54
[576]55}
Note: See TracBrowser for help on using the repository browser.