Last change
on this file since 681 was
681,
checked in by sherbold, 12 years ago
|
- added getStringIdentifier() to interface IEventTarget
- all event types and targets now implement equals and hashCode
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | package de.ugoe.cs.quest.eventcore.gui;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * TODO comment
|
---|
5 | *
|
---|
6 | * @version $Revision: $ $Date: $
|
---|
7 | * @author 2011, last modified by $Author: $
|
---|
8 | */
|
---|
9 | public class TextSelection implements IInteraction {
|
---|
10 |
|
---|
11 | /** */
|
---|
12 | private static final long serialVersionUID = 1L;
|
---|
13 |
|
---|
14 | /*
|
---|
15 | * (non-Javadoc)
|
---|
16 | *
|
---|
17 | * @see de.harms.attef.userinteraction.Interaction#getName()
|
---|
18 | */
|
---|
19 | public String getName() {
|
---|
20 | return "TextSelection";
|
---|
21 | }
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * (non-Javadoc)
|
---|
25 | *
|
---|
26 | * @see java.lang.Object#toString()
|
---|
27 | */
|
---|
28 | @Override
|
---|
29 | public String toString() {
|
---|
30 | return "text selection";
|
---|
31 | }
|
---|
32 |
|
---|
33 | /*
|
---|
34 | * (non-Javadoc)
|
---|
35 | *
|
---|
36 | * @see de.harms.attef.userinteraction.Interaction#startsLogicalSequence()
|
---|
37 | */
|
---|
38 | public boolean startsLogicalSequence() {
|
---|
39 | return false;
|
---|
40 | }
|
---|
41 |
|
---|
42 | /*
|
---|
43 | * (non-Javadoc)
|
---|
44 | *
|
---|
45 | * @see de.harms.attef.userinteraction.Interaction#finishesLogicalSequence()
|
---|
46 | */
|
---|
47 | public boolean finishesLogicalSequence() {
|
---|
48 | return false;
|
---|
49 | }
|
---|
50 |
|
---|
51 | /*
|
---|
52 | * (non-Javadoc)
|
---|
53 | *
|
---|
54 | * @see java.lang.Object#equals(java.lang.Object)
|
---|
55 | */
|
---|
56 | @Override
|
---|
57 | public boolean equals(Object obj) {
|
---|
58 | if (obj instanceof TextSelection) {
|
---|
59 | return true;
|
---|
60 | }
|
---|
61 | return false;
|
---|
62 | }
|
---|
63 |
|
---|
64 | /*
|
---|
65 | * (non-Javadoc)
|
---|
66 | *
|
---|
67 | * @see java.lang.Object#hashCode()
|
---|
68 | */
|
---|
69 | @Override
|
---|
70 | public int hashCode() {
|
---|
71 | return getClass().hashCode();
|
---|
72 | }
|
---|
73 |
|
---|
74 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.