Package overit.geocall.ui
Class UIMessage.ControlValues
java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
overit.geocall.util.HashGetter
overit.geocall.ui.UIMessage.ControlValues
- Enclosing class:
UIMessage
Acts as a wrapper for managing the control values, provides facilities and utilities
for checking the pressure of the control keys (alt, ctr, shift, etc.) simultaneously
with the sendEvent
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()The string that contains the ordered list of pressed keys while the action triggering the event occurredbooleanIndicates if the control key was pressedbooleanIndicates if the shift key was pressedbooleanIndicates if a function button was pressed while the action triggering the event occurredMethods inherited from class overit.geocall.util.HashGetter
containsKey, get, get, getboolean, getBoolean, getDate, getdouble, getDouble, getfloat, getFloat, getint, getInteger, getlong, getLong, getString, global, keyIterator, put, putAll, putByPrefix, putByRE, putOnly, putOnly, setMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ControlValues
Creates a ControlValues instance- Parameters:
m- TheHashMapthat contains the control parameters, such as "code", "__refed", "__keys" and in general all those who start with "__"
-
-
Method Details
-
isRangeKey
public boolean isRangeKey()Indicates if the shift key was pressed- Returns:
trueif at the same time as the action that triggered the event, the shift key was pressed;falseotherwise
-
isPunctualKey
public boolean isPunctualKey()Indicates if the control key was pressed- Returns:
trueif at the same time as the action that triggered the event, the ctrl key (or the Command key on OSX) was pressed;falseotherwise
-
getKeys
The string that contains the ordered list of pressed keys while the action triggering the event occurred- Returns:
- The string composed in the following way:
- a = Alt
- c = Control
- m = Command / Windows, depending on the OS
- s = Shift
-
keyPressed
public boolean keyPressed()Indicates if a function button was pressed while the action triggering the event occurred- Returns:
trueif, while the action triggering the event (for example the click of the mouse) occurred, at the same time a function key was pressed (alt, ctrl, etc.);falseotherwise
-