Package org.zkoss.zk.au
Class AuRequests
java.lang.Object
org.zkoss.zk.au.AuRequests
- Since:
- 5.0.0
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToItems(Desktop desktop, List<String> uuids) Converts the data of the specified request to a set of Component.static booleangetBoolean(Map<String, Object> data, String key) Returns whether the specified key is defined.static doubleReturns the double value of the specified key in the data.static doubleReturns the double value of the specified key in the data.static StringgetInnerWidth(AuRequest request) Returns the inner width of an AU request representing the update of inner width.static intReturns the integer value of the specified key in the data.static intReturns the integer value of the specified key in the data.static longReturns the integer value of the specified key in the data.static longReturns the integer value of the specified key in the data.static ObjectgetUpdateResult(AuRequest request) Returns the result of an AU request representing the update result.static intParses the key flags of a mouse event.
-
Constructor Details
-
AuRequests
public AuRequests()
-
-
Method Details
-
convertToItems
Converts the data of the specified request to a set of Component. The data is assumed to contain a list of item ID in the comman-separated format- Returns:
- a set of components.
-
parseKeys
Parses the key flags of a mouse event.- Returns:
- a combination of
MouseEvent.ALT_KEY,MouseEvent.SHIFT_KEYandMouseEvent.CTRL_KEY,
-
getInnerWidth
Returns the inner width of an AU request representing the update of inner width.- Throws:
UiException
-
getUpdateResult
Returns the result of an AU request representing the update result.- Throws:
UiException
-
getInt
Returns the integer value of the specified key in the data. It is the same asgetInt(data, key, defVal, false).- Parameters:
defVal- the default value; used if not found.
-
getInt
Returns the integer value of the specified key in the data.- Parameters:
defVal- the default value; used if not found.silent- whether not to throw an exception if failed to convert- Since:
- 5.0.2
-
getLong
Returns the integer value of the specified key in the data. It is the same asgetLong(data, key, defVal, false).- Parameters:
defVal- the default value; used if not found.
-
getLong
Returns the integer value of the specified key in the data.- Parameters:
defVal- the default value; used if not found.silent- whether not to throw an exception if failed to convert- Since:
- 5.0.2
-
getDouble
Returns the double value of the specified key in the data. It is the same asgetDouble(data, key, defVal, false).- Parameters:
defVal- the default value; used if not found.- Since:
- 7.0.1
-
getDouble
Returns the double value of the specified key in the data.- Parameters:
defVal- the default value; used if not found.silent- whether not to throw an exception if failed to convert- Since:
- 7.0.1
-
getBoolean
Returns whether the specified key is defined.
-