| |
|
| java.lang.Object net.mygwt.ui.client.data.LoadResult
LoadResult | public class LoadResult implements IsSerializable(Code) | | Contains the results of a data load operation.
|
Field Summary | |
public boolean | add add specifies if the results should be added. | public int | cursor cursor specifies the current location of the data. | public IsSerializable | data The returned data. | public Map | dataMap | public boolean | success success specifies if the load was successful. | public int | totalLength totalLength specifies the total number of elements. |
Constructor Summary | |
public | LoadResult() Creates a new load result instance. | public | LoadResult(IsSerializable data) Creates a new load result and sets the success field to true . |
Method Summary | |
public IsSerializable | getData() Returns the result data. | public Object | getData(String key) Returns the application specific load property for the given name, or
null if it has not been set. | public void | setData(IsSerializable data) Sets the result data. | public void | setData(String key, Object config) Sets the application specific load property with the given name. |
add | public boolean add(Code) | | add specifies if the results should be added.
|
cursor | public int cursor(Code) | | cursor specifies the current location of the data.
|
data | public IsSerializable data(Code) | | The returned data.
|
dataMap | public Map dataMap(Code) | | dataMap contains application specific load properties
|
success | public boolean success(Code) | | success specifies if the load was successful. Default value is
true .
|
totalLength | public int totalLength(Code) | | totalLength specifies the total number of elements. This may not be the
same as the number of elements when implementing paging.
|
LoadResult | public LoadResult()(Code) | | Creates a new load result instance.
|
LoadResult | public LoadResult(IsSerializable data)(Code) | | Creates a new load result and sets the success field to true .
Parameters: data - the returned data |
getData | public IsSerializable getData()(Code) | | Returns the result data.
the data |
getData | public Object getData(String key)(Code) | | Returns the application specific load property for the given name, or
null if it has not been set.
Parameters: key - the name of the property the value or null if it has not been set |
setData | public void setData(IsSerializable data)(Code) | | Sets the result data.
Parameters: data - the result data |
setData | public void setData(String key, Object config)(Code) | | Sets the application specific load property with the given name.
Parameters: key - the name of the property Parameters: config - the new value for the property |
|
|
|