[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.
|
---|
[681] | 14 |
|
---|
[922] | 15 | package de.ugoe.cs.autoquest.eventcore.gui;
|
---|
[544] | 16 |
|
---|
| 17 | /**
|
---|
[786] | 18 | * <p>
|
---|
| 19 | * Event type for keyboard focus changes. The target of the respective event has obtained the
|
---|
| 20 | * keyboard focus of the application.
|
---|
| 21 | * </p>
|
---|
[544] | 22 | *
|
---|
[786] | 23 | * @version 1.0
|
---|
| 24 | * @author Patrick Harms
|
---|
[544] | 25 | */
|
---|
| 26 | public class KeyboardFocusChange implements IInteraction {
|
---|
[681] | 27 |
|
---|
[786] | 28 | /**
|
---|
| 29 | * <p>
|
---|
| 30 | * Id for object serialization.
|
---|
| 31 | * </p>
|
---|
| 32 | */
|
---|
[544] | 33 | private static final long serialVersionUID = 1L;
|
---|
| 34 |
|
---|
| 35 | /*
|
---|
| 36 | * (non-Javadoc)
|
---|
| 37 | *
|
---|
| 38 | * @see de.harms.attef.userinteraction.Interaction#getName()
|
---|
| 39 | */
|
---|
| 40 | public String getName() {
|
---|
| 41 | return "KeyboardFocusChange";
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | /*
|
---|
| 45 | * (non-Javadoc)
|
---|
| 46 | *
|
---|
| 47 | * @see de.ugoe.cs.tasktree.userinteraction.Interaction#startsLogicalSequence()
|
---|
| 48 | */
|
---|
| 49 | @Override
|
---|
| 50 | public boolean startsLogicalSequence() {
|
---|
| 51 | return true;
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | /*
|
---|
| 55 | * (non-Javadoc)
|
---|
| 56 | *
|
---|
| 57 | * @see de.ugoe.cs.tasktree.userinteraction.Interaction#finishesLogicalSequence()
|
---|
| 58 | */
|
---|
| 59 | @Override
|
---|
| 60 | public boolean finishesLogicalSequence() {
|
---|
| 61 | return true;
|
---|
| 62 | }
|
---|
| 63 |
|
---|
| 64 | /*
|
---|
| 65 | * (non-Javadoc)
|
---|
| 66 | *
|
---|
| 67 | * @see java.lang.Object#toString()
|
---|
| 68 | */
|
---|
| 69 | @Override
|
---|
| 70 | public String toString() {
|
---|
[1359] | 71 | return "KB focus changed";
|
---|
[544] | 72 | }
|
---|
[681] | 73 |
|
---|
| 74 | /*
|
---|
| 75 | * (non-Javadoc)
|
---|
| 76 | *
|
---|
| 77 | * @see java.lang.Object#equals(java.lang.Object)
|
---|
| 78 | */
|
---|
| 79 | @Override
|
---|
| 80 | public boolean equals(Object obj) {
|
---|
| 81 | if (obj instanceof KeyboardFocusChange) {
|
---|
| 82 | return true;
|
---|
| 83 | }
|
---|
| 84 | return false;
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | /*
|
---|
| 88 | * (non-Javadoc)
|
---|
| 89 | *
|
---|
| 90 | * @see java.lang.Object#hashCode()
|
---|
| 91 | */
|
---|
| 92 | @Override
|
---|
| 93 | public int hashCode() {
|
---|
| 94 | return getClass().hashCode();
|
---|
| 95 | }
|
---|
[544] | 96 | }
|
---|