Last change
on this file since 830 was
830,
checked in by sherbold, 12 years ago
|
- TextInput? now returns an unmodifiable view of the internal event list
- code documentation and formating
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 |
|
---|
2 | package de.ugoe.cs.quest.eventcore.gui;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * <p>
|
---|
6 | * Event type for selecting text.
|
---|
7 | * </p>
|
---|
8 | *
|
---|
9 | * @version 1.0
|
---|
10 | * @author Patrick Harms
|
---|
11 | */
|
---|
12 | public class TextSelection implements IInteraction {
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * <p>
|
---|
16 | * Id for object serialization.
|
---|
17 | * </p>
|
---|
18 | */
|
---|
19 | private static final long serialVersionUID = 1L;
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * (non-Javadoc)
|
---|
23 | *
|
---|
24 | * @see de.harms.attef.userinteraction.Interaction#getName()
|
---|
25 | */
|
---|
26 | public String getName() {
|
---|
27 | return "TextSelection";
|
---|
28 | }
|
---|
29 |
|
---|
30 | /*
|
---|
31 | * (non-Javadoc)
|
---|
32 | *
|
---|
33 | * @see java.lang.Object#toString()
|
---|
34 | */
|
---|
35 | @Override
|
---|
36 | public String toString() {
|
---|
37 | return "text selection";
|
---|
38 | }
|
---|
39 |
|
---|
40 | /*
|
---|
41 | * (non-Javadoc)
|
---|
42 | *
|
---|
43 | * @see de.harms.attef.userinteraction.Interaction#startsLogicalSequence()
|
---|
44 | */
|
---|
45 | public boolean startsLogicalSequence() {
|
---|
46 | return false;
|
---|
47 | }
|
---|
48 |
|
---|
49 | /*
|
---|
50 | * (non-Javadoc)
|
---|
51 | *
|
---|
52 | * @see de.harms.attef.userinteraction.Interaction#finishesLogicalSequence()
|
---|
53 | */
|
---|
54 | public boolean finishesLogicalSequence() {
|
---|
55 | return false;
|
---|
56 | }
|
---|
57 |
|
---|
58 | /*
|
---|
59 | * (non-Javadoc)
|
---|
60 | *
|
---|
61 | * @see java.lang.Object#equals(java.lang.Object)
|
---|
62 | */
|
---|
63 | @Override
|
---|
64 | public boolean equals(Object obj) {
|
---|
65 | if (obj instanceof TextSelection) {
|
---|
66 | return true;
|
---|
67 | }
|
---|
68 | return false;
|
---|
69 | }
|
---|
70 |
|
---|
71 | /*
|
---|
72 | * (non-Javadoc)
|
---|
73 | *
|
---|
74 | * @see java.lang.Object#hashCode()
|
---|
75 | */
|
---|
76 | @Override
|
---|
77 | public int hashCode() {
|
---|
78 | return getClass().hashCode();
|
---|
79 | }
|
---|
80 |
|
---|
81 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.