public class AuRequests
extends java.lang.Object
Constructor and Description |
---|
AuRequests() |
Modifier and Type | Method and Description |
---|---|
static <T extends Component> |
convertToItems(Desktop desktop,
java.util.List<java.lang.String> uuids)
Converts the data of the specified request to a set of Component.
|
static boolean |
getBoolean(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key)
Returns whether the specified key is defined.
|
static double |
getDouble(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
long defVal)
Returns the double value of the specified key in the data.
|
static double |
getDouble(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
long defVal,
boolean silent)
Returns the double value of the specified key in the data.
|
static java.lang.String |
getInnerWidth(AuRequest request)
Returns the inner width of an AU request representing the update
of inner width.
|
static int |
getInt(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
int defVal)
Returns the integer value of the specified key in the data.
|
static int |
getInt(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
int defVal,
boolean silent)
Returns the integer value of the specified key in the data.
|
static long |
getLong(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
long defVal)
Returns the integer value of the specified key in the data.
|
static long |
getLong(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.String key,
long defVal,
boolean silent)
Returns the integer value of the specified key in the data.
|
static java.lang.Object |
getUpdateResult(AuRequest request)
Returns the result of an AU request representing the update result.
|
static int |
parseKeys(java.util.Map<java.lang.String,java.lang.Object> data)
Parses the key flags of a mouse event.
|
public static <T extends Component> java.util.Set<T> convertToItems(Desktop desktop, java.util.List<java.lang.String> uuids)
public static int parseKeys(java.util.Map<java.lang.String,java.lang.Object> data)
MouseEvent.ALT_KEY
,
MouseEvent.SHIFT_KEY
and MouseEvent.CTRL_KEY
,public static java.lang.String getInnerWidth(AuRequest request) throws UiException
UiException
public static java.lang.Object getUpdateResult(AuRequest request) throws UiException
UiException
public static int getInt(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, int defVal)
getInt(data, key, defVal, false)
.defVal
- the default value; used if not found.public static int getInt(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, int defVal, boolean silent)
defVal
- the default value; used if not found.silent
- whether not to throw an exception if failed to convertpublic static long getLong(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, long defVal)
getLong(data, key, defVal, false)
.defVal
- the default value; used if not found.public static long getLong(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, long defVal, boolean silent)
defVal
- the default value; used if not found.silent
- whether not to throw an exception if failed to convertpublic static double getDouble(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, long defVal)
getDouble(data, key, defVal, false)
.defVal
- the default value; used if not found.public static double getDouble(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key, long defVal, boolean silent)
defVal
- the default value; used if not found.silent
- whether not to throw an exception if failed to convertpublic static boolean getBoolean(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.String key)
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.