Changeset 550
- Timestamp:
- 08/16/12 15:16:22 (12 years ago)
- Location:
- trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/InteractionEventList.java
r544 r550 21 21 @SuppressWarnings("serial") 22 22 public class InteractionEventList extends ArrayList<Event> implements List<Event> { 23 23 24 /** stores the events to be handled later in the order, they should be processed */ 24 private List<KeyEventPair> mEventPairs = new ArrayList<KeyEventPair>();25 private List<KeyEventPair> eventPairs = new ArrayList<KeyEventPair>(); 25 26 26 27 /** … … 35 36 public boolean add(Event event) { 36 37 if (event.getType() instanceof KeyInteraction) { 37 for (int i = 0; i < mEventPairs.size(); i++) {38 KeyEventPair eventPair = mEventPairs.get(i);38 for (int i = 0; i < eventPairs.size(); i++) { 39 KeyEventPair eventPair = eventPairs.get(i); 39 40 40 41 if (eventPair.process(event)) { 41 42 // handle all leading and completed event pairs, if any 42 while (( mEventPairs.size() > 0) && (mEventPairs.get(0).isComplete())) {43 addEventPair( mEventPairs.get(0));44 mEventPairs.remove(0);43 while ((eventPairs.size() > 0) && (eventPairs.get(0).isComplete())) { 44 addEventPair(eventPairs.get(0)); 45 eventPairs.remove(0); 45 46 } 46 47 return true; … … 48 49 } 49 50 50 mEventPairs.add(new KeyEventPair(event));51 eventPairs.add(new KeyEventPair(event)); 51 52 return true; 52 53 } -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/KeyInteraction.java
r544 r550 21 21 22 22 /** the key, that was actually pressed */ 23 private VirtualKey mKey;23 private VirtualKey key; 24 24 25 25 /** … … 28 28 public KeyInteraction(VirtualKey key) { 29 29 super(); 30 mKey = key;30 this.key = key; 31 31 } 32 32 … … 35 35 */ 36 36 public VirtualKey getKey() { 37 return mKey;37 return key; 38 38 } 39 39 -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/MouseButtonInteraction.java
r544 r550 24 24 25 25 /** the button used for mouse interaction */ 26 private Button mButton;26 private Button button; 27 27 28 28 /** … … 30 30 */ 31 31 public MouseButtonInteraction(Button button) { 32 mButton = button;32 this.button = button; 33 33 } 34 34 … … 37 37 */ 38 38 public Button getButton() { 39 return mButton;39 return button; 40 40 } 41 41 -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/ValueSelection.java
r544 r550 19 19 20 20 /** */ 21 private T mSelectedValue;21 private T selectedValue; 22 22 23 23 /** … … 27 27 */ 28 28 public ValueSelection(T selectedValue) { 29 mSelectedValue = selectedValue;29 this.selectedValue = selectedValue; 30 30 } 31 31 … … 71 71 */ 72 72 public T getSelectedValue() { 73 return mSelectedValue;73 return selectedValue; 74 74 } 75 75 … … 89 89 return 90 90 ((otherValueSelection != null) && 91 (( mSelectedValue == otherValueSelection.mSelectedValue) ||92 (( mSelectedValue != null) &&93 ( mSelectedValue.equals(otherValueSelection.mSelectedValue)))));91 ((selectedValue == otherValueSelection.selectedValue) || 92 ((selectedValue != null) && 93 (selectedValue.equals(otherValueSelection.selectedValue))))); 94 94 } 95 95 -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/AbstractDefaultGUIElement.java
r545 r550 19 19 20 20 /** the parent interaction element */ 21 private IGUIElement mParent;21 private IGUIElement parent; 22 22 23 23 /** the information about the original type before the mapping */ 24 private String mOriginalTypeInfo;24 private String originalTypeInfo; 25 25 26 26 /* … … 30 30 */ 31 31 public IGUIElement getParent() { 32 return mParent;32 return parent; 33 33 } 34 34 … … 40 40 @Override 41 41 public String getOriginalTypeInfo() { 42 return mOriginalTypeInfo;42 return originalTypeInfo; 43 43 } 44 44 … … 49 49 */ 50 50 void setOriginalTypeInfo(String originalTypeInfo) { 51 mOriginalTypeInfo = originalTypeInfo;51 this.originalTypeInfo = originalTypeInfo; 52 52 } 53 53 -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/AbstractDefaultGUIElementFactory.java
r545 r550 23 23 24 24 /** */ 25 private Properties m MappingsFromConfiguration;25 private Properties mappingsFromConfiguration; 26 26 27 27 /** … … 178 178 */ 179 179 private synchronized Properties getMappingsFromConfiguration() { 180 if (m MappingsFromConfiguration != null) {181 return m MappingsFromConfiguration;180 if (mappingsFromConfiguration != null) { 181 return mappingsFromConfiguration; 182 182 } 183 183 else { 184 m MappingsFromConfiguration = new Properties();184 mappingsFromConfiguration = new Properties(); 185 185 186 186 InputStream inStream = … … 189 189 if (inStream != null) { 190 190 try { 191 m MappingsFromConfiguration.load(inStream);191 mappingsFromConfiguration.load(inStream); 192 192 } 193 193 catch (IOException e) { … … 198 198 } 199 199 200 return m MappingsFromConfiguration;200 return mappingsFromConfiguration; 201 201 } 202 202 }
Note: See TracChangeset
for help on using the changeset viewer.