gov.nasa.pds.registry.ui.client
Class SerializableProductResponse<RowType extends com.google.gwt.user.client.rpc.IsSerializable>

java.lang.Object
  extended by com.google.gwt.gen2.table.client.TableModelHelper.Response<RowType>
      extended by com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<RowType>
          extended by 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

Constructor Summary
SerializableProductResponse()
          Default constructor used for RPC.
SerializableProductResponse(Collection<RowType> rowValues)
          Create a new TableModelHelper.SerializableResponse.
 
Method Summary
 Iterator<RowType> getRowValues()
          An iterator on the values
 Collection<RowType> getValues()
          Get the values directly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableProductResponse

public SerializableProductResponse()
Default constructor used for RPC.


SerializableProductResponse

public SerializableProductResponse(Collection<RowType> rowValues)
Create a new TableModelHelper.SerializableResponse.

Method Detail

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 © 2005-2010 Planetary Data System. All Rights Reserved.