Last change
on this file since 922 was
922,
checked in by sherbold, 12 years ago
|
- renaming of packages from de.ugoe.cs.quest to de.ugoe.cs.autoquest
|
-
Property svn:executable set to
*
|
File size:
1.6 KB
|
Rev | Line | |
---|
[830] | 1 |
|
---|
[922] | 2 | package de.ugoe.cs.autoquest.eventcore.gui;
|
---|
[544] | 3 |
|
---|
| 4 | /**
|
---|
[830] | 5 | * <p>
|
---|
| 6 | * Event type for selecting text.
|
---|
| 7 | * </p>
|
---|
[544] | 8 | *
|
---|
[830] | 9 | * @version 1.0
|
---|
| 10 | * @author Patrick Harms
|
---|
[544] | 11 | */
|
---|
| 12 | public class TextSelection implements IInteraction {
|
---|
| 13 |
|
---|
[830] | 14 | /**
|
---|
| 15 | * <p>
|
---|
| 16 | * Id for object serialization.
|
---|
| 17 | * </p>
|
---|
| 18 | */
|
---|
[544] | 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 | }
|
---|
[830] | 57 |
|
---|
[681] | 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 | }
|
---|
[544] | 70 |
|
---|
[681] | 71 | /*
|
---|
| 72 | * (non-Javadoc)
|
---|
| 73 | *
|
---|
| 74 | * @see java.lang.Object#hashCode()
|
---|
| 75 | */
|
---|
| 76 | @Override
|
---|
| 77 | public int hashCode() {
|
---|
| 78 | return getClass().hashCode();
|
---|
| 79 | }
|
---|
| 80 |
|
---|
[544] | 81 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.