public interface

PropertyBinder

com.shinobicontrols.grids.supplement.PropertyBinder<T>

Class Overview

Type Parameters:

  • T - the type of the object returned as a result of binding to a property

A PropertyBinder defines how a rowIndex relates to a piece of data. In most cases that data will come from a property of some model object, with the particular object being identified by the rowIndex.

The PropertyBinder is parameterized by the type of the data it provides. This does not necessarily match the type of the data in the model object. For example, you may require the value of some enum in the model object to be mapped to a resource id for a corresponding image, thus the PropertyBinder would be paramterized by java.lang.Integer.

Summary

Public Methods
abstract T bind(int rowIndex)

Provides some data, of type T, based on the given rowIndex.

Public Methods

public abstract T bind (int rowIndex)

Provides some data, of type T, based on the given rowIndex.

Parameters
rowIndex the row index for the item being queried
Returns
  • some data, of type T, based on the given rowIndex