[927] | 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.
|
---|
[830] | 14 |
|
---|
[922] | 15 | package de.ugoe.cs.autoquest.eventcore.gui;
|
---|
[544] | 16 |
|
---|
| 17 | /**
|
---|
[830] | 18 | * <p>
|
---|
| 19 | * Event type for selecting text.
|
---|
| 20 | * </p>
|
---|
[544] | 21 | *
|
---|
[830] | 22 | * @version 1.0
|
---|
| 23 | * @author Patrick Harms
|
---|
[544] | 24 | */
|
---|
| 25 | public class TextSelection implements IInteraction {
|
---|
| 26 |
|
---|
[830] | 27 | /**
|
---|
| 28 | * <p>
|
---|
| 29 | * Id for object serialization.
|
---|
| 30 | * </p>
|
---|
| 31 | */
|
---|
[544] | 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 | }
|
---|
[830] | 70 |
|
---|
[681] | 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 | }
|
---|
[544] | 83 |
|
---|
[681] | 84 | /*
|
---|
| 85 | * (non-Javadoc)
|
---|
| 86 | *
|
---|
| 87 | * @see java.lang.Object#hashCode()
|
---|
| 88 | */
|
---|
| 89 | @Override
|
---|
| 90 | public int hashCode() {
|
---|
| 91 | return getClass().hashCode();
|
---|
| 92 | }
|
---|
| 93 |
|
---|
[544] | 94 | }
|
---|