Class zebkit.ui.grid.CellSelectMode <zebkit.ui.grid>

Class to that defines grid cell selection mode. This implementation allows users single grid cell selection.

Constructor:
zebkit.ui.grid.CellSelectMode (target)

Parameters:


public chainable clearSelect ( )

Clear all selected cells

protected void fireSelected (row, col, b)

Fire selected or de-selected event.


Parameters:
  • row <Integer>

    a selected or de-selected row

  • col <Integer>

    a selected or de-selected column

  • b <Boolean>

    a state of selected cell

public void install (target)

Call back method that is called every time the select mode is attached to the given target grid component


Parameters:
public <Boolean> isSelected (row, col)

Evaluates if the given cell is selected.


Parameters:
  • row <Integer>

    a cell row

  • col <Integer>

    a cell column


Returns: <Boolean>

true if the given cell is selected

public void posChanged (pos, prevOffset, prevLine, prevCol)

Call back method that is called every time a grid position marker has been updated.


Parameters:
  • pos <zebkit.util.Position>

    a position manager

  • prevOffset <Integer>

    a previous position offset

  • prevLine <Integer>

    a previous position line

  • prevCol <Integer>

    a previous position column

protected void repaintTarget (row, col)

Force cells repainting.


Parameters:
  • row <Integer>

    a cell row

  • col <Integer>

    a cell column

public chainable select (row, col, b)

Select of de-select the given grid cell


Parameters:
  • row <Integer>

    a row of selected or de-selected cell

  • col <Integer>

    a column of selected or de-selected cell

  • b <Boolean>

    a selection status

public void uninstall (target)

Call back method that is called every time the select mode is detached from the given target grid component


Parameters:

public <zebkit.ui.grid.Grid> target

Target grid cell selection mode belongs