public class PackageTableModel extends com.google.gwt.gen2.table.client.MutableTableModel<ViewRegistryPackage>
Constructor and Description |
---|
PackageTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(String key,
String value)
Add a filter condition
|
void |
clearFilters()
Clear filters prior to new request
|
void |
deletePackage(ViewRegistryPackage registryPackage,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> asyncCallback) |
void |
getRemotePassword(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback) |
void |
getRemoteUser(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback) |
void |
getSessionId(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback) |
protected boolean |
onRowInserted(int beforeRow) |
protected boolean |
onRowRemoved(int row) |
protected boolean |
onSetRowValue(int row,
ViewRegistryPackage rowValue) |
void |
requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request,
com.google.gwt.gen2.table.client.TableModel.Callback<ViewRegistryPackage> callback)
Get rows from table as necessary.
|
void |
setServerUrl(String serverUrl) |
void |
updatePackage(ViewRegistryPackage viewRegistryPackage,
com.google.gwt.user.client.rpc.AsyncCallback<Boolean> asyncCallback) |
addRowInsertionHandler, addRowRemovalHandler, addRowValueChangeHandler, insertRow, removeRow, setRowValue
public void setServerUrl(String serverUrl)
public void addFilter(String key, String value)
key
- filter namevalue
- filter valuepublic void clearFilters()
public void requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request, com.google.gwt.gen2.table.client.TableModel.Callback<ViewRegistryPackage> callback)
requestRows
in class com.google.gwt.gen2.table.client.TableModel<ViewRegistryPackage>
request
- request containing paging and sort infocallback
- callback function to handle the responsepublic void updatePackage(ViewRegistryPackage viewRegistryPackage, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> asyncCallback)
public void deletePackage(ViewRegistryPackage registryPackage, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> asyncCallback)
public void getRemoteUser(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback)
public void getRemotePassword(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback)
public void getSessionId(com.google.gwt.user.client.rpc.AsyncCallback<String> asyncCallback)
protected boolean onRowInserted(int beforeRow)
onRowInserted
in class com.google.gwt.gen2.table.client.MutableTableModel<ViewRegistryPackage>
protected boolean onRowRemoved(int row)
onRowRemoved
in class com.google.gwt.gen2.table.client.MutableTableModel<ViewRegistryPackage>
protected boolean onSetRowValue(int row, ViewRegistryPackage rowValue)
onSetRowValue
in class com.google.gwt.gen2.table.client.MutableTableModel<ViewRegistryPackage>
Copyright © 2010–2016 Planetary Data System. All rights reserved.