| java.lang.Object net.mygwt.ui.client.util.Observable net.mygwt.ui.client.viewer.RemoteContentProvider
All known Subclasses: net.mygwt.ui.client.viewer.RemoteTreeContentProvider, net.mygwt.ui.client.viewer.ModelRemoteContentProvider,
getData | public Object getData()(Code) | | Returns the last data from the last load.
the current remote data |
getData | abstract public void getData(LoadConfig config, DataCallback callback)(Code) | | Subclasses must implement and return the remote data based on the given
load config. The viewer's setInput method will be called, passing the data
being returned from the callback.
Parameters: config - the load config Parameters: callback - the callback |
getRemoteSort | public boolean getRemoteSort()(Code) | | |
getSortDir | public int getSortDir()(Code) | | |
getSortField | public String getSortField()(Code) | | Sets the sort field.
the sort field |
getTotalLength | public int getTotalLength()(Code) | | Returns the total number of records which may not equal the local elements
when using paging.
the total length |
load | public void load()(Code) | | Loads the data.
|
load | public void load(int start, int limit)(Code) | | Loads the data using the specified start and limit parameters.
Parameters: start - the start mark Parameters: limit - the limit mark |
load | public void load(LoadConfig config)(Code) | | Loads the data using the specified configuation.
Parameters: config - the configuration |
reload | public void reload()(Code) | | Reloads using the last load config.
|
setRemoteSort | public void setRemoteSort(boolean remoteSort)(Code) | | Sets whether sorting should be done server side.
Parameters: remoteSort - true to enable remote sorting |
setSortDir | public void setSortDir(int sortDir)(Code) | | Sets the sort direction.
Parameters: sortDir - the sort direction |
setSortField | public void setSortField(String sortField)(Code) | | Sets the current sort field.
Parameters: sortField - the sort field |
sort | public void sort(String sortField, int sortDir)(Code) | | Sorts the elements.
Parameters: sortField - the sort field Parameters: sortDir - the sort direction |
|
|