Class
zebkit.ui.grid.BaseCaption
mixed with <zebkit.EventProducer> extends <zebkit.ui.Panel> |
<zebkit.ui.grid> |
Grid caption base UI component class. This class has to be used as base to implement grid caption components
public | <Integer> | calcRowColAt (x, y, [f]) |
public | <Integer> | getCaptionPS (rowcol) |
public | void | matrixResized (target, prevRows, prevCols) |
public | void | matrixSorted (target, sortInfo) |
public | void | pointerClicked (e) |
public | void | pointerDragEnded (e) |
public | void | pointerDragged (e) |
public | void | pointerDragStarted (e) |
public | void | pointerMoved (e) |
public | void | setLabels ([labels]) |
public
<Integer>
calcRowColAt (x, y, [f] )
Compute a column (for horizontal caption component) or row (for vertically aligned caption component) at the given location Parameters:
Returns:
<Integer>
a row or column |
public
<Integer>
getCaptionPS (rowcol )
Get the given row or column caption preferred size Parameters:
Returns:
<Integer>
a size of row or column caption |
public
void
matrixResized (target, prevRows, prevCols )
Implement the method to be aware when number of rows or columns in a grid model has been updated Parameters:
|
public
void
matrixSorted (target, sortInfo )
Implement the method to be aware when a grid model data has been re-ordered. Parameters:
|
public
void
pointerClicked (e )
Define pointer clicked events handler. Parameters:
|
public
void
pointerDragEnded (e )
Define pointer drag ended events handler. Parameters:
|
public
void
pointerDragged (e )
Define pointer dragged events handler. Parameters:
|
public
void
pointerDragStarted (e )
Define pointer drag started events handler. Parameters:
|
public
void
pointerMoved (e )
Define pointer moved events handler. Parameters:
|
public
chainable
setLabels ([labels] )
Set the grid caption labels Parameters:
|












public
<Integer>
activeAreaSize
Size of the active area where cells size can be changed by pointer dragging event |
public
<Boolean>
isAutoFit
Indicate if the grid cell size has to be adjusted according to the cell preferred size by pointer double click event. |
public
<Boolean>
isResizable
Indicate if the grid cells are resize-able. to the cell preferred size by pointer double click event. |
public
<Integer>
minSize
Minimal possible grid cell size |
captionResized
Fire when a grid row selection state has been changed
Parameters:
|