source: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/TextSelection.java @ 927

Last change on this file since 927 was 927, checked in by sherbold, 12 years ago
  • added copyright under the Apache License, Version 2.0
  • Property svn:executable set to *
File size: 2.2 KB
Line 
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
15package de.ugoe.cs.autoquest.eventcore.gui;
16
17/**
18 * <p>
19 * Event type for selecting text.
20 * </p>
21 *
22 * @version 1.0
23 * @author Patrick Harms
24 */
25public class TextSelection implements IInteraction {
26
27    /**
28     * <p>
29     * Id for object serialization.
30     * </p>
31     */
32    private static final long serialVersionUID = 1L;
33
34    /*
35     * (non-Javadoc)
36     *
37     * @see de.harms.attef.userinteraction.Interaction#getName()
38     */
39    public String getName() {
40        return "TextSelection";
41    }
42
43    /*
44     * (non-Javadoc)
45     *
46     * @see java.lang.Object#toString()
47     */
48    @Override
49    public String toString() {
50        return "text selection";
51    }
52
53    /*
54     * (non-Javadoc)
55     *
56     * @see de.harms.attef.userinteraction.Interaction#startsLogicalSequence()
57     */
58    public boolean startsLogicalSequence() {
59        return false;
60    }
61
62    /*
63     * (non-Javadoc)
64     *
65     * @see de.harms.attef.userinteraction.Interaction#finishesLogicalSequence()
66     */
67    public boolean finishesLogicalSequence() {
68        return false;
69    }
70
71    /*
72     * (non-Javadoc)
73     *
74     * @see java.lang.Object#equals(java.lang.Object)
75     */
76    @Override
77    public boolean equals(Object obj) {
78        if (obj instanceof TextSelection) {
79            return true;
80        }
81        return false;
82    }
83
84    /*
85     * (non-Javadoc)
86     *
87     * @see java.lang.Object#hashCode()
88     */
89    @Override
90    public int hashCode() {
91        return getClass().hashCode();
92    }
93
94}
Note: See TracBrowser for help on using the repository browser.