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.test; |
---|
16 | |
---|
17 | import de.ugoe.cs.autoquest.eventcore.guimodel.AbstractDefaultGUIElement; |
---|
18 | import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; |
---|
19 | import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; |
---|
20 | |
---|
21 | /** |
---|
22 | * TODO comment |
---|
23 | * |
---|
24 | * @version $Revision: $ $Date: 02.04.2012$ |
---|
25 | * @author 2012, last modified by $Author: patrick$ |
---|
26 | */ |
---|
27 | public class DummyGUIElement extends AbstractDefaultGUIElement implements IGUIElement { |
---|
28 | |
---|
29 | /** */ |
---|
30 | private static final long serialVersionUID = 1L; |
---|
31 | |
---|
32 | /** */ |
---|
33 | private String name; |
---|
34 | |
---|
35 | /** |
---|
36 | * |
---|
37 | */ |
---|
38 | public DummyGUIElement(String name) { |
---|
39 | this(name, null); |
---|
40 | } |
---|
41 | |
---|
42 | /** |
---|
43 | * |
---|
44 | */ |
---|
45 | public DummyGUIElement(String name, IGUIElement parent) { |
---|
46 | super(null, parent); |
---|
47 | this.name = name; |
---|
48 | } |
---|
49 | |
---|
50 | /* |
---|
51 | * (non-Javadoc) |
---|
52 | * |
---|
53 | * @see de.ugoe.cs.autoquest.eventcore.IEventTarget#getPlatform() |
---|
54 | */ |
---|
55 | @Override |
---|
56 | public String getPlatform() { |
---|
57 | return "Dummy"; |
---|
58 | } |
---|
59 | |
---|
60 | /* |
---|
61 | * (non-Javadoc) |
---|
62 | * |
---|
63 | * @see de.ugoe.cs.autoquest.eventcore.IEventTarget#getStringIdentifier() |
---|
64 | */ |
---|
65 | @Override |
---|
66 | public String getStringIdentifier() { |
---|
67 | return name; |
---|
68 | } |
---|
69 | |
---|
70 | /* |
---|
71 | * (non-Javadoc) |
---|
72 | * |
---|
73 | * @see java.lang.Object#toString() |
---|
74 | */ |
---|
75 | @Override |
---|
76 | public String toString() { |
---|
77 | return name; |
---|
78 | } |
---|
79 | |
---|
80 | /* |
---|
81 | * (non-Javadoc) |
---|
82 | * |
---|
83 | * @see de.harms.attef.userinteraction.GUIElement#equals(GUIElement) |
---|
84 | */ |
---|
85 | public boolean equals(IGUIElement other) { |
---|
86 | return this == other; |
---|
87 | } |
---|
88 | |
---|
89 | @Override |
---|
90 | public void updateSpecification(IGUIElementSpec specToIntegrateElementFor) { |
---|
91 | // dummy |
---|
92 | } |
---|
93 | |
---|
94 | } |
---|