public interface

AdapterSpec

com.shinobicontrols.grids.core.AdapterSpec

Class Overview

Defines some general properties of the ShinobiGridView such as the number of rows the grid will contain. An implementation of this interface should be given to the ShinobiGridView before the grid is rendered by using the setAdapterSpec(AdapterSpec) method otherwise no data will be displayed.

For example, if your data objects are held in a List, you will likely want to do the following:

 List<DataObject> data = ... // get your data from somewhere

 shinobiGridView.setAdapterSpec(new AdapterSpec() {
     @Override
     public int getRowCount() {
         return data.size();
     }
 });
 

Summary

Public Methods
abstract int getRowCount()

Returns the number of rows the ShinobiGridView will contain.

Public Methods

public abstract int getRowCount ()

Returns the number of rows the ShinobiGridView will contain. This value should not include the row containing the Column headers.

Returns
  • the number of rows the ShinobiGridView will contain