gov.nasa.pds.registry.ui.client
Class SerializableProductResponse<RowType extends com.google.gwt.user.client.rpc.IsSerializable>
java.lang.Object
com.google.gwt.gen2.table.client.TableModelHelper.Response<RowType>
com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<RowType>
gov.nasa.pds.registry.ui.client.SerializableProductResponse<RowType>
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class SerializableProductResponse<RowType extends com.google.gwt.user.client.rpc.IsSerializable>
- extends com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<RowType>
- implements com.google.gwt.user.client.rpc.IsSerializable
A special version of SerializableResponse that supports direct
access to values rather than access to an iterator. As the list is
encapsulated in an instance of ViewProducts, and extension of ArrayList that
has a size separate from count representing objects in the registry, we can
get the total number of objects expected to page through.
- Author:
- jagander
- See Also:
gov.nasa.pds.registry.ui.client.ProductTableModel#requestRows()
,
ViewProducts
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableProductResponse
public SerializableProductResponse()
- Default constructor used for RPC.
SerializableProductResponse
public SerializableProductResponse(Collection<RowType> rowValues)
- Create a new
TableModelHelper.SerializableResponse
.
getRowValues
public Iterator<RowType> getRowValues()
- An iterator on the values
- Overrides:
getRowValues
in class com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<RowType extends com.google.gwt.user.client.rpc.IsSerializable>
getValues
public Collection<RowType> getValues()
- Get the values directly.
NOTE: In this case the values should be castable to an instance of
ViewProducts
Copyright © 2010-2013 Planetary Data System. All Rights Reserved.