Changeset 681 for trunk/quest-core-events/src
- Timestamp:
- 08/29/12 10:05:50 (12 years ago)
- Location:
- trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/Event.java
r655 r681 161 161 String id = type.toString(); 162 162 if( target!=null ) { 163 id += "." + target. toString();163 id += "." + target.getStringIdentifier(); 164 164 } 165 165 return id; -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/IEventTarget.java
r655 r681 15 15 16 16 public String getPlatform(); 17 18 public String getStringIdentifier(); 17 19 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/KeyboardFocusChange.java
r655 r681 1 1 2 package de.ugoe.cs.quest.eventcore.gui; 2 3 … … 8 9 */ 9 10 public class KeyboardFocusChange implements IInteraction { 10 11 11 12 /** */ 12 13 private static final long serialVersionUID = 1L; … … 50 51 return "keyboard focus changed"; 51 52 } 53 54 /* 55 * (non-Javadoc) 56 * 57 * @see java.lang.Object#equals(java.lang.Object) 58 */ 59 @Override 60 public boolean equals(Object obj) { 61 if (obj instanceof KeyboardFocusChange) { 62 return true; 63 } 64 return false; 65 } 66 67 /* 68 * (non-Javadoc) 69 * 70 * @see java.lang.Object#hashCode() 71 */ 72 @Override 73 public int hashCode() { 74 return getClass().hashCode(); 75 } 52 76 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonDown.java
r655 r681 77 77 return false; 78 78 } 79 80 /* 81 * (non-Javadoc) 82 * 83 * @see java.lang.Object#equals(java.lang.Object) 84 */ 85 @Override 86 public boolean equals(Object obj) { 87 if (obj instanceof MouseButtonDown) { 88 return getButton().equals(((MouseButtonDown) obj).getButton()); 89 } 90 return false; 91 } 92 93 /* 94 * (non-Javadoc) 95 * 96 * @see java.lang.Object#hashCode() 97 */ 98 @Override 99 public int hashCode() { 100 return getButton().hashCode(); 101 } 79 102 80 103 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonInteraction.java
r655 r681 33 33 return button; 34 34 } 35 36 /* 37 * (non-Javadoc) 38 * 39 * @see java.lang.Object#equals(java.lang.Object) 40 */ 41 @Override 42 public boolean equals(Object obj) { 43 if (obj instanceof MouseButtonInteraction) { 44 return getButton().equals(((MouseButtonInteraction) obj).getButton()); 45 } 46 return false; 47 } 35 48 49 /* 50 * (non-Javadoc) 51 * 52 * @see java.lang.Object#hashCode() 53 */ 54 @Override 55 public int hashCode() { 56 return getButton().hashCode(); 57 } 36 58 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonUp.java
r655 r681 78 78 } 79 79 80 /* 81 * (non-Javadoc) 82 * 83 * @see java.lang.Object#equals(java.lang.Object) 84 */ 85 @Override 86 public boolean equals(Object obj) { 87 if (obj instanceof MouseButtonUp) { 88 return getButton().equals(((MouseButtonUp) obj).getButton()); 89 } 90 return false; 91 } 92 93 /* 94 * (non-Javadoc) 95 * 96 * @see java.lang.Object#hashCode() 97 */ 98 @Override 99 public int hashCode() { 100 return getButton().hashCode(); 101 } 80 102 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseClick.java
r655 r681 78 78 } 79 79 80 /* 81 * (non-Javadoc) 82 * 83 * @see java.lang.Object#equals(java.lang.Object) 84 */ 85 @Override 86 public boolean equals(Object obj) { 87 if (obj instanceof MouseClick) { 88 return getButton().equals(((MouseClick) obj).getButton()); 89 } 90 return false; 91 } 92 93 /* 94 * (non-Javadoc) 95 * 96 * @see java.lang.Object#hashCode() 97 */ 98 @Override 99 public int hashCode() { 100 return getButton().hashCode(); 101 } 80 102 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseDoubleClick.java
r655 r681 78 78 } 79 79 80 /* 81 * (non-Javadoc) 82 * 83 * @see java.lang.Object#equals(java.lang.Object) 84 */ 85 @Override 86 public boolean equals(Object obj) { 87 if (obj instanceof MouseDoubleClick) { 88 return getButton().equals(((MouseDoubleClick) obj).getButton()); 89 } 90 return false; 91 } 92 93 /* 94 * (non-Javadoc) 95 * 96 * @see java.lang.Object#hashCode() 97 */ 98 @Override 99 public int hashCode() { 100 return getButton().hashCode(); 101 } 80 102 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/TextInput.java
r655 r681 48 48 return false; 49 49 } 50 51 /* 52 * (non-Javadoc) 53 * 54 * @see java.lang.Object#equals(java.lang.Object) 55 */ 56 @Override 57 public boolean equals(Object obj) { 58 if (obj instanceof TextInput) { 59 return true; 60 } 61 return false; 62 } 63 64 /* 65 * (non-Javadoc) 66 * 67 * @see java.lang.Object#hashCode() 68 */ 69 @Override 70 public int hashCode() { 71 return getClass().hashCode(); 72 } 50 73 51 74 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/TextSelection.java
r655 r681 48 48 return false; 49 49 } 50 51 /* 52 * (non-Javadoc) 53 * 54 * @see java.lang.Object#equals(java.lang.Object) 55 */ 56 @Override 57 public boolean equals(Object obj) { 58 if (obj instanceof TextSelection) { 59 return true; 60 } 61 return false; 62 } 63 64 /* 65 * (non-Javadoc) 66 * 67 * @see java.lang.Object#hashCode() 68 */ 69 @Override 70 public int hashCode() { 71 return getClass().hashCode(); 72 } 50 73 51 74 }
Note: See TracChangeset
for help on using the changeset viewer.