[1002] | 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 |
|
---|
| 15 | package de.ugoe.cs.autoquest.eventcore.guimodel;
|
---|
| 16 |
|
---|
[2156] | 17 | import de.ugoe.cs.autoquest.eventcore.HierarchicalEventTargetTree;
|
---|
[1002] | 18 | import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory;
|
---|
| 19 | import 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>
|
---|
[2146] | 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.
|
---|
[1002] | 30 | * </p>
|
---|
| 31 | *
|
---|
| 32 | * @author Fabian Glaser
|
---|
| 33 | * @author Steffen Herbold
|
---|
| 34 | * @version 1.0
|
---|
| 35 | */
|
---|
[2156] | 36 | public class GUIElementTree<T> extends HierarchicalEventTargetTree<T, IGUIElement, IGUIElementSpec>
|
---|
| 37 | {
|
---|
[1002] | 38 |
|
---|
| 39 | /**
|
---|
| 40 | * <p>
|
---|
| 41 | * Creates a new GUIElementTree.
|
---|
| 42 | * </p>
|
---|
| 43 | */
|
---|
| 44 | public GUIElementTree() {
|
---|
[2156] | 45 | this(new GUIModel());
|
---|
[1002] | 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){
|
---|
[2156] | 55 | super(guiModel, GUIElementFactory.getInstance());
|
---|
[1002] | 56 | }
|
---|
| 57 |
|
---|
| 58 | /**
|
---|
| 59 | * @return the guiModel
|
---|
| 60 | */
|
---|
| 61 | public GUIModel getGUIModel() {
|
---|
[2156] | 62 | return (GUIModel) super.getHierarchicalEventTargetModel();
|
---|
[1002] | 63 | }
|
---|
| 64 |
|
---|
| 65 | }
|
---|