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 | |
---|
17 | import java.io.Serializable; |
---|
18 | import java.util.List; |
---|
19 | |
---|
20 | import de.ugoe.cs.autoquest.eventcore.HierarchicalEventTargetModel; |
---|
21 | |
---|
22 | /** |
---|
23 | * <p> |
---|
24 | * A GUI model is a tree of {@link IGUIElements} and represents a complete GUI of a software. It is |
---|
25 | * platform independent. It may have several root nodes, as some GUIs are made up of several Frames |
---|
26 | * being independent from each other. The GUI model is filled using the |
---|
27 | * {@link #integratePath(List, de.ugoe.cs.autoquest.eventcore.IEventTargetFactory)} method. |
---|
28 | * </p> |
---|
29 | * |
---|
30 | * @version 1.0 |
---|
31 | * @author Patrick Harms, Steffen Herbold |
---|
32 | */ |
---|
33 | public class GUIModel extends HierarchicalEventTargetModel<IGUIElement> |
---|
34 | implements Serializable |
---|
35 | { |
---|
36 | |
---|
37 | /** */ |
---|
38 | private static final long serialVersionUID = 1L; |
---|
39 | |
---|
40 | /** |
---|
41 | * <p> |
---|
42 | * instantiate a default unvalidated model |
---|
43 | * </p> |
---|
44 | * |
---|
45 | */ |
---|
46 | public GUIModel() { |
---|
47 | super(); |
---|
48 | } |
---|
49 | |
---|
50 | /** |
---|
51 | * <p> |
---|
52 | * instantiate a model that will validate itself internally if the provided parameters is set |
---|
53 | * to true. This is typically rather slow. |
---|
54 | * </p> |
---|
55 | */ |
---|
56 | public GUIModel(boolean validate) { |
---|
57 | super(validate); |
---|
58 | } |
---|
59 | |
---|
60 | } |
---|