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

Last change on this file since 2254 was 2254, checked in by pharms, 7 years ago
  • solved some findbugs issues
  • Property svn:executable set to *
File size: 1.8 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 java.lang.Object#equals(java.lang.Object)
57     */
58    @Override
59    public boolean equals(Object obj) {
60        if (obj instanceof TextSelection) {
61            return true;
62        }
63        return false;
64    }
65
66    /*
67     * (non-Javadoc)
68     *
69     * @see java.lang.Object#hashCode()
70     */
71    @Override
72    public int hashCode() {
73        return getClass().hashCode();
74    }
75
76}
Note: See TracBrowser for help on using the repository browser.