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 de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; |
---|
18 | import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTarget; |
---|
19 | import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTargetModel; |
---|
20 | |
---|
21 | public class MockGUIElement implements IGUIElement { |
---|
22 | |
---|
23 | /** */ |
---|
24 | private static final long serialVersionUID = 1L; |
---|
25 | |
---|
26 | MockGUIElementSpec spec; |
---|
27 | |
---|
28 | IGUIElement parent; |
---|
29 | |
---|
30 | public MockGUIElement(MockGUIElementSpec spec, IGUIElement parent){ |
---|
31 | this.spec = spec; |
---|
32 | this.parent = parent; |
---|
33 | } |
---|
34 | |
---|
35 | @Override |
---|
36 | public String getPlatform() { |
---|
37 | return null; |
---|
38 | } |
---|
39 | |
---|
40 | @Override |
---|
41 | public String getStringIdentifier() { |
---|
42 | return null; |
---|
43 | } |
---|
44 | |
---|
45 | @Override |
---|
46 | public IGUIElementSpec getSpecification() { |
---|
47 | return spec; |
---|
48 | } |
---|
49 | |
---|
50 | @Override |
---|
51 | public IGUIElement getParent() { |
---|
52 | return parent; |
---|
53 | } |
---|
54 | |
---|
55 | @Override |
---|
56 | public GUIModel getGUIModel() { |
---|
57 | return null; |
---|
58 | } |
---|
59 | |
---|
60 | @Override |
---|
61 | public void updateSpecification(IEventTargetSpec furtherSpec) { } |
---|
62 | |
---|
63 | @Override |
---|
64 | public IHierarchicalEventTargetModel<?> getEventTargetModel() { |
---|
65 | return null; |
---|
66 | } |
---|
67 | |
---|
68 | @Override |
---|
69 | public void addEqualEventTarget(IHierarchicalEventTarget equalElement) { } |
---|
70 | |
---|
71 | @Override |
---|
72 | public IGUIView getView() { |
---|
73 | return null; |
---|
74 | } |
---|
75 | |
---|
76 | @Override |
---|
77 | public double getDistanceTo(IGUIElement otherElement) { |
---|
78 | return 0.0; |
---|
79 | } |
---|
80 | |
---|
81 | @Override |
---|
82 | public boolean isUsed() { |
---|
83 | return false; |
---|
84 | } |
---|
85 | |
---|
86 | @Override |
---|
87 | public void markUsed() { } |
---|
88 | |
---|
89 | } |
---|