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

Last change on this file was 2156, checked in by pharms, 7 years ago

added first version of generic event plugin and required adaptations

  • Property svn:mime-type set to text/plain
File size: 2.0 KB
Line 
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.
14
15package de.ugoe.cs.autoquest.eventcore.guimodel;
16
17import de.ugoe.cs.autoquest.eventcore.HierarchicalEventTargetTree;
18import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory;
19import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel;
20
21/**
22 * <p>
23 * This class provides the interfaces for GUI element trees.
24 * </p>
25 * <p>
26 * The GUIElementTree represents the hierarchical structure of the GUI elements "as it is"
27 * currently during a session. It may change during the session due to creation and destruction
28 * of GUI elements. The parameter T represents the id type of the GUI elements that are handled
29 * internally.
30 * </p>
31 *
32 * @author Fabian Glaser
33 * @author Steffen Herbold
34 * @version 1.0
35 */
36public class GUIElementTree<T> extends HierarchicalEventTargetTree<T, IGUIElement, IGUIElementSpec>
37{
38
39    /**
40     * <p>
41     * Creates a new GUIElementTree.
42     * </p>
43     */
44    public GUIElementTree() {
45        this(new GUIModel());
46    }
47   
48    /**
49     * <p>
50     * Creates a GUIElementTree with an already existing guiModel
51     * @param guiModel
52     * </p>
53     */
54    public GUIElementTree(GUIModel guiModel){
55        super(guiModel, GUIElementFactory.getInstance());
56    }
57
58    /**
59     * @return the guiModel
60     */
61    public GUIModel getGUIModel() {
62        return (GUIModel) super.getHierarchicalEventTargetModel();
63    }
64
65}
Note: See TracBrowser for help on using the repository browser.