source: trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/testutils/DummyGUIElement.java @ 557

Last change on this file since 557 was 557, checked in by pharms, 12 years ago
  • adapted task tree creation stuff to more general event handling
File size: 1.3 KB
Line 
1// Module    : $RCSfile: DummyGUIElement.java,v $
2// Version   : $Revision: 0.0 $  $Author: patrick $  $Date: 02.04.2012 $
3// Project   : TaskTreeTestUtils
4// Creation  : 2012 by patrick
5// Copyright : Patrick Harms, 2012
6
7package de.ugoe.cs.quest.tasktrees.testutils;
8
9import de.ugoe.cs.quest.eventcore.guimodel.AbstractDefaultGUIElement;
10import de.ugoe.cs.quest.eventcore.guimodel.IGUIElement;
11
12/**
13 * TODO comment
14 *
15 * @version $Revision: $ $Date: 02.04.2012$
16 * @author 2012, last modified by $Author: patrick$
17 */
18public class DummyGUIElement extends AbstractDefaultGUIElement implements IGUIElement {
19   
20    /**  */
21    private static final long serialVersionUID = 1L;
22
23    /** */
24    private String name;
25
26    /**
27     *
28     */
29    public DummyGUIElement(String name) {
30        super();
31        this.name = name;
32    }
33
34    /* (non-Javadoc)
35     * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform()
36     */
37    @Override
38    public String getPlatform() {
39        return "Dummy";
40    }
41
42    /*
43     * (non-Javadoc)
44     *
45     * @see java.lang.Object#toString()
46     */
47    @Override
48    public String toString() {
49        return name;
50    }
51
52    /*
53     * (non-Javadoc)
54     *
55     * @see de.harms.attef.userinteraction.GUIElement#equals(GUIElement)
56     */
57    public boolean equals(IGUIElement other) {
58        return this == other;
59    }
60
61}
Note: See TracBrowser for help on using the repository browser.