public static interface

Column.Callback

com.shinobicontrols.grids.core.Column.Callback

Class Overview

Implementations of this callback interface provide controlled access to the Column through a number of useful methods. This includes the notifyDataSetChanged() method which can be used to notify the ShinobiGridView that the visual appearance of the items in the Column this Column.Callback refers to has changed.

Typically a default implementation of this interface is instantiated and used by the Column class. As such you should not need to implement this yourself.

Summary

Public Methods
abstract int getColumnCount()

Returns the total number of Columns in the ShinobiGridView that the Column this Column.Callback refers to is in.

abstract int getColumnIndex()

Returns the index in the list of columns in the ShinobiGridView for the Column that this Column.Callback refers to.

abstract boolean isHeaderItemSelected()

Returns whether the header item in the Column this Column.Callback refers to is selected.

abstract boolean isHeaderItemVisible()

Returns whether the header item in the Column this Column.Callback refers to is visible.

abstract boolean isItemSelected(int rowIndex)

Returns whether the item at the given rowIndex in the Column this Column.Callback refers to is selected.

abstract boolean isItemVisible(int rowIndex)

Returns whether the item at the given rowIndex in the Column this Column.Callback refers to is visible.

abstract void notifyDataSetChanged()

Call this when something has changed which has invalidated the layout of the Column to which this Column.Callback refers to.

Public Methods

public abstract int getColumnCount ()

Returns the total number of Columns in the ShinobiGridView that the Column this Column.Callback refers to is in. If the Column has not been added to a grid then a value of -1 will be returned.

Returns

public abstract int getColumnIndex ()

Returns the index in the list of columns in the ShinobiGridView for the Column that this Column.Callback refers to. If the Column has not been added to a grid then a value of -1 will be returned.

Returns

public abstract boolean isHeaderItemSelected ()

Returns whether the header item in the Column this Column.Callback refers to is selected.

Returns

public abstract boolean isHeaderItemVisible ()

Returns whether the header item in the Column this Column.Callback refers to is visible.

Returns

public abstract boolean isItemSelected (int rowIndex)

Returns whether the item at the given rowIndex in the Column this Column.Callback refers to is selected. If no row exists in the grid for the given rowIndex then this will return false.

Parameters
rowIndex the zero-based index of the row in the grid whose selection state is being queried
Returns
  • true if the item at the given rowIndex in the Column this Column.Callback refers to is selected, false otherwise

public abstract boolean isItemVisible (int rowIndex)

Returns whether the item at the given rowIndex in the Column this Column.Callback refers to is visible. If no row exists in the grid for the given rowIndex then this will return false.

Parameters
rowIndex the zero-based index of the row in the grid whose visibility state is being queries
Returns
  • true if the item at the given rowIndex in the Column this Column.Callback refers to is selected, false otherwise

public abstract void notifyDataSetChanged ()

Call this when something has changed which has invalidated the layout of the Column to which this Column.Callback refers to. This will notify the ShinobiGridView of the change and schedule a layout pass of the view tree.