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

Last change on this file was 2146, checked in by pharms, 7 years ago
  • refactored GUI model so that hierarchical event target structures can also be used and created by plugins not being strictly for GUIs
  • Property svn:mime-type set to text/plain
File size: 2.2 KB
RevLine 
[1113]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
[1005]15package de.ugoe.cs.autoquest.eventcore.guimodel;
16
[2146]17import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec;
18import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTarget;
19import de.ugoe.cs.autoquest.eventcore.IHierarchicalEventTargetModel;
20
[1005]21public class MockGUIElement implements IGUIElement {
[1051]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    }
[1005]34
[1051]35    @Override
36    public String getPlatform() {
37        return null;
38    }
[1005]39
[1051]40    @Override
41    public String getStringIdentifier() {
42        return null;
43    }
[1005]44
[1051]45    @Override
46    public IGUIElementSpec getSpecification() {
47        return spec;
48    }
[1005]49
[1051]50    @Override
51    public IGUIElement getParent() {
52        return parent;
53    }
[1005]54
[1051]55    @Override
[1433]56    public GUIModel getGUIModel() {
57        return null;
58    }
59
60    @Override
[2146]61    public void updateSpecification(IEventTargetSpec furtherSpec) { }
[1005]62
[1051]63    @Override
[2146]64    public IHierarchicalEventTargetModel<?> getEventTargetModel() {
65        return null;
66    }
[1005]67
[1051]68    @Override
[2146]69    public void addEqualEventTarget(IHierarchicalEventTarget equalElement) { }
70
71    @Override
[1876]72    public IGUIView getView() {
73        return null;
74    }
75
76    @Override
[1490]77    public double getDistanceTo(IGUIElement otherElement) {
78        return 0.0;
79    }
80
81    @Override
[1051]82    public boolean isUsed() {
83        return false;
84    }
[1010]85
[1051]86    @Override
[1396]87    public void markUsed() { }
[1051]88
[1005]89}
Note: See TracBrowser for help on using the repository browser.