class ItemMonitor |
|
The class ItemMonitor is a convenience class to monitor a single item.
This class can be used as a base class for classes that want to show a single item to the user and keep track of status changes of the item without having to using a Monitor object themself. |
|
Creates a new item monitor. |
|
|
Returns the item fetch scope.
Since this returns a reference it can be used to conveniently modify the current scope in-place, i.e. by calling a method on the returned reference without storing it in a local variable. See the ItemFetchScope documentation for an example. Returns a reference to the current item fetch scope See also setFetchScope() for replacing the current item fetch scope |
|
Returns the currently monitored item. |
|
This method is called whenever the monitored item has changed.
item - The data of the changed item. |
|
This method is called whenever the monitored item has been removed. |
|
Sets the item fetch scope.
Controls how much of an item's data is fetched from the server, e.g. whether to fetch the full item payload or only metadata. fetchScope - the new scope for item fetch operations See also fetchScope() |
|
Sets the item that shall be monitored. |