| Constructor and Description | 
|---|
| CloudListModel(String type,
              int visibilityScope,
              int sortProperty,
              boolean ascending)Deprecated.  Creates a list model that shows all the cloud elements that have the given key matching
 the given value at the visibility scope listed below. | 
| CloudListModel(String type,
              int visibilityScope,
              int index,
              String queryValue,
              boolean ascending)Deprecated.  Creates a list model that shows all the cloud elements that have the given key matching
 the given value at the visibility scope listed below. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDataChangedListener(DataChangedListener l)Deprecated.  Invoked to indicate interest in future change events | 
| void | addItem(Object item)Deprecated.  Notice this method does NOT commit the data, after committing the data
 the cache MUST be cleared!
 Adds the specified item to the end of this list. | 
| void | addSelectionListener(SelectionListener l)Deprecated.  Invoked to indicate interest in future selection events | 
| void | clearCache()Deprecated.  Flushes the cache which might be essential when adding new elements | 
| int | getBatchSize()Deprecated.  Returns the batch size fetched from the server | 
| int | getCacheSize()Deprecated.  Returns the elements cached within the implementation | 
| Object | getItemAt(int index)Deprecated.  Returns the item at the given offset | 
| Hashtable | getLoadingPlaceholder()Deprecated.  When loading the element from the cloud a placehold is shown to indicate to the user that the content isn't fully
 here | 
| int | getRefreshRateMillis()Deprecated.  Indicates the rate in milliseconds in which to poll the server for the current data
 of elements that are visible at the moment. | 
| int | getSelectedIndex()Deprecated.  Returns the selected list offset | 
| int | getSize()Deprecated.  Returns the number of items in the list | 
| int | getStorageCacheSize()Deprecated.  Returns the elements cached within the persistent storage | 
| protected void | onError(CloudException err)Deprecated.  Invoked when a cloud error occurs | 
| void | refresh()Deprecated.  Refreshes the list from the server, this method blocks the EDT until
 completion. | 
| void | removeDataChangedListener(DataChangedListener l)Deprecated.  Invoked to indicate no further interest in future change events | 
| void | removeItem(int index)Deprecated.  Notice this method does NOT commit the data, after committing the data
 the cache MUST be cleared!
 Removes the item at the specified position in this list. | 
| void | removeSelectionListener(SelectionListener l)Deprecated.  Invoked to indicate no further interest in future selection events | 
| void | setBatchSize(int batchSize)Deprecated.  Updates the number of elements fetched from the server in a single batch | 
| void | setCacheSize(int elements)Deprecated.  Sets the size of the local cache | 
| void | setLoadingPlaceholder(Hashtable loadingPlaceholder)Deprecated.  When loading the element from the cloud a placehold is shown to indicate to the user that the content isn't fully
 here | 
| void | setRefreshRateMillis(int refreshRateMillis)Deprecated.  Indicates the rate in milliseconds in which to poll the server for the current data
 of elements that are visible at the moment. | 
| void | setSelectedIndex(int index)Deprecated.  Sets the selected list offset can be set to -1 to clear selection | 
| void | setStorageCacheSize(int elements)Deprecated.  Sets the size of the cache in persistent storage | 
public CloudListModel(String type, int visibilityScope, int sortProperty, boolean ascending)
type - the type of object shown on the listvisibilityScope - the scope of the list (CloudObject.ACCESS_* values)sortProperty - the index by which we sort the entries, 0 for unsortedascending - whether the sort is ascending or descendingpublic CloudListModel(String type, int visibilityScope, int index, String queryValue, boolean ascending)
type - the type of object shown on the listvisibilityScope - the scope of the list (CloudObject.ACCESS_* values)index - the index by which we limit the entriesqueryValue - the queryValue for the given indexascending - whether the sort is ascending or descendingpublic void refresh()
public void clearCache()
public void setCacheSize(int elements)
elements - elements to store in cachepublic int getCacheSize()
public void setStorageCacheSize(int elements)
elements - elements to store in cachepublic int getStorageCacheSize()
public void setLoadingPlaceholder(Hashtable loadingPlaceholder)
loadingPlaceholder - shows blank content to the userpublic Hashtable getLoadingPlaceholder()
public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize - the batch sizepublic Object getItemAt(int index)
public int getSize()
protected void onError(CloudException err)
err - the exception representing the error in cloud communicationspublic int getSelectedIndex()
getSelectedIndex in interface ListModelpublic void setSelectedIndex(int index)
setSelectedIndex in interface ListModelindex - an index into this listpublic void addDataChangedListener(DataChangedListener l)
addDataChangedListener in interface ListModell - a data changed listenerpublic void removeDataChangedListener(DataChangedListener l)
removeDataChangedListener in interface ListModell - a data changed listenerpublic void addSelectionListener(SelectionListener l)
addSelectionListener in interface ListModell - a selection listenerpublic void removeSelectionListener(SelectionListener l)
removeSelectionListener in interface ListModell - a selection listenerpublic void addItem(Object item)
public void removeItem(int index)
removeItem in interface ListModelindex - the index of the item to removedpublic int getRefreshRateMillis()
public void setRefreshRateMillis(int refreshRateMillis)
refreshRateMillis - the refreshRateMillis to set