ColumnInterface

public interface ColumnInterface

A column provides a view that will be displayed as a ColumnInterface.getLabelView() that will be rendered on the header row and ColumnInterface.getDataView(int,Map) that will be rendered on each of the data rows.

A simple column definition refers to an key/value in the data map of the com.eddmash.grids.DataGridView data list.

Methods

getContext

Context getContext()

Context on which com.eddmash.grids.DataGridView is being rendered on .

getDataView

View getDataView(int index, Map datum)

This is the view that will be used to create to show the for this column on each of its data rows.

Parameters:
  • index – the id of the row being populated.
  • datum – data to be render of the row being populated.
Returns:

view to render for column on the row being populated.

getLabelView

View getLabelView()

Creates a view that will be used on the header row.

setDisplayView

void setDisplayView(DataGridView dataGridView)

The com.eddmash.grids.DataGridView that will be used to render this column.

Parameters: