Zebra API Doc

zebra.ui.grid.Metrics Class

Interface that describes a grid component metrics

Methods

getCellsVisibility

() zebra.ui.grid.CellsVisibility

Get a structure that describes a grid component columns and rows visibility


Return: zebra.ui.grid.CellsVisibility

a grid cells visibility

getColWidth

(
  • col
)
Integer

Get the given column width of a grid component

Parameters:

  • col Integer

    a column index


Return: Integer

a column width

getGridCols

() Integer

Get number of columns in a grid component


Return: Integer

a number of columns

getGridRows

() Integer

Get number of rows in a grid component


Return: Integer

a number of rows

getPSColWidth

(
  • col
)
Integer

Get the given column preferred width of a grid component

Parameters:

  • col Integer

    a column index


Return: Integer

a column preferred width

getPSRowHeight

(
  • row
)
Integer

Get the given row preferred height of a grid component

Parameters:

  • row Integer

    a row index


Return: Integer

a row preferred height

getRowHeight

(
  • row
)
Integer

Get the given row height of a grid component

Parameters:

  • row Integer

    a row index


Return: Integer

a row height

getXOrigin

() Integer

Get a x origin of a grid component. Origin indicates how the grid component content has been scrolled


Return: Integer

a x origin

getYOrigin

() Integer

Get a y origin of a grid component. Origin indicates how the grid component content has been scrolled


Return: Integer

a y origin

setColWidth

(
  • col
  • w
)

Set the given column width of a grid component

Parameters:

  • col Integer

    a column index

  • w Integer

    a column width

setRowHeight

(
  • row
  • h
)

Set the given row height of a grid component

Parameters:

  • row Integer

    a row index

  • h Integer

    a row height

Attributes

isUsePsMetric

Boolean readonly

Indicate if a grid sizes its rows and cols basing on its preferred sizes

lineSize

Integer readonly

Grid line size