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