Class
zebkit.ui.grid.GridCaption
extends <zebkit.ui.grid.BaseCaption> |
<zebkit.ui.grid> |
Grid caption class that implements rendered caption. Rendered means all caption titles, border are painted as a number of views.
zebkit.ui.grid.GridCaption
([titles], [render]
)
Parameters:
-
[titles]
<Array>a caption titles. Title can be a string or a zebkit.draw.View class instance
-
[render]
<zebkit.draw.BaseTextRender>a text render to be used to paint grid titles
protected
|
<Integer> | getCaptionPS (rowcol) |
public | <Object> | getTitle (rowcol) |
public | void | setCellBackground (rowcol, bg) |
public | void | setLabel (rowcol, title) |
public | void | setLabelAlignments (rowcol, xa, ya) |
public | void | setViewProvider (p) |
@Override
zebkit.ui.grid.BaseCaption
protected
<Integer>
getCaptionPS (rowcol )
Get cell caption preferred size. Parameters:
Returns:
<Integer>
a preferred width or height of the cell |
public
chainable
setCellBackground (rowcol, bg )
Set the given caption cell background Parameters:
|
public
chainable
setLabel (rowcol, title )
Put the given title for the given caption cell. Parameters:
|
public
chainable
setLabelAlignments (rowcol, xa, ya )
Set the specified alignments of the given caption column or row. Parameters: |
public
chainable
setViewProvider (p )
Set the given caption view provider. Parameters:
|











