public static final class

Column.Callback

extends Object
java.lang.Object
   ↳ com.shinobicontrols.grids.core.Column.Callback

Class Overview

A callback providing 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.

Summary

Public Methods
final int getColumnCount()

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

final int getColumnIndex()

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

final boolean isHeaderItemSelected()

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

final boolean isHeaderItemVisible()

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

final boolean isItemSelected(int rowIndex)

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

final boolean isItemVisible(int rowIndex)

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

final void notifyDataSetChanged()

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

[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public final 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 final 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 final boolean isHeaderItemSelected ()

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

Returns

public final boolean isHeaderItemVisible ()

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

Returns

public final 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 final 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 final 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.