Class: GridRow

GridRow

new GridRow(grid, height, opt_domHelper)

DataRow
Parameters:
Name Type Argument Description
grid pear.ui.Grid
height number
opt_domHelper goog.dom.DomHelper <optional>
DOM helper, used for document interaction.
Source:

Extends

Members

<static> CSS_CLASS :string

Default CSS class to be applied to the root element of containers rendered by this renderer.
Type:
  • string
Source:

Methods

addCell(cell, opt_render)

add Cell
Parameters:
Name Type Argument Description
cell pear.ui.Cell
opt_render boolean <optional>
Whether the new child should be rendered immediately after being added (defaults to false).
Inherited From:
Source:

applyBottomBorder(display)

[applyBottomBorder description]
Parameters:
Name Type Description
display boolean [description]
Source:

clearHighlight()

Clear row highlight
Source:

disposeInternal()

Source:

enterDocument()

Source:

exitDocument()

Configures the component after its DOM has been rendered, and sets up event handling. Overrides goog.ui.Component#exitDocument.
Source:

getCellAt(index) → {pear.ui.Cell}

get Child Cell at
Parameters:
Name Type Description
index number
Inherited From:
Source:
Returns:
Type
pear.ui.Cell

getCellComputedWidth(index) → {number}

return computed cell width
Parameters:
Name Type Description
index number of cell
Inherited From:
Source:
Returns:
Type
number

getComputedHeight() → {number}

get computed height of row
Inherited From:
Source:
Returns:
Type
number

getDataRowId() → {string}

[getDataRowId description]
Source:
Returns:
Type
string

getDataRowView() → {pear.data.RowView}

Inherited From:
Source:
Returns:
Type
pear.data.RowView

getGrid() → {pear.ui.Grid}

Get Instance of Grid , which owns this Row
Inherited From:
Source:
Returns:
Type
pear.ui.Grid

getGridRowDetailsContainer() → {goog.ui.Component}

Get GridRow Details Container
Source:
Returns:
[description]
Type
goog.ui.Component

getHeaderCellByColumnId(id) → {pear.ui.GridHeaderCell}

Get Header Cell
Parameters:
Name Type Description
id string Column Id
Inherited From:
Source:
Returns:
Type
pear.ui.GridHeaderCell

getHeaderCellByDataField(fieldName) → {pear.ui.GridHeaderCell}

Get Header Cell By Data Field
Parameters:
Name Type Description
fieldName string
Inherited From:
Source:
Returns:
Type
pear.ui.GridHeaderCell

getHeight() → {number}

get height of row
Inherited From:
Source:
Returns:
Type
number

getLocationTop() → {number}

Get Top Postion of Gridrow
Source:
Returns:
Type
number

getNodeOwnerControl(node) → {pear.ui.GridCell}

Returns the child control that owns the given DOM node, or null if no such control is found.
Parameters:
Name Type Description
node Node DOM node whose owner is to be returned.
Inherited From:
Source:
Returns:
Control hosted in the Component to which the node belongs (if found)
Type
pear.ui.GridCell

getRowPosition() → {number}

get position of row
Inherited From:
Source:
Returns:
Type
number

getWidth() → {number}

get width of row
Inherited From:
Source:
Returns:
Type
number

highlightChildAt(index)

Highlight Child (GridCell)
Parameters:
Name Type Description
index number
Source:

isAllowAlternateRowHighlight() → {boolean}

[isAllowAlternateRowHighlight description]
Source:
Returns:
Type
boolean

isEnabled() → {boolean}

IsEnabled
Source:
Returns:
[description]
Type
boolean

isHighLighted() → {boolean}

[isHighLighted description]
Source:
Returns:
Type
boolean

isSelected() → {boolean}

[isSelected description]
Source:
Returns:
Type
boolean

isVisible() → {boolean}

IsVisible
Source:
Returns:
[description]
Type
boolean

repositionCells()

For each child @link {pear.ui.GridCell} update size
Source:

setDataRowView(rowview)

set Data RowView
Parameters:
Name Type Description
rowview pear.data.RowView
Inherited From:
Source:

setGrid(grid)

setGrid
Parameters:
Name Type Description
grid pear.ui.Grid [description]
Inherited From:
Source:

setHeight(height)

set height of row
Parameters:
Name Type Description
height number
Inherited From:
Source:

setHighlight(highlight)

[setHighlight description]
Parameters:
Name Type Description
highlight boolean
Source:

setLocationTop(top)

Set location top
Parameters:
Name Type Description
top number
Source:

setPosition()

Inherited From:
Source:

setRowPosition(pos)

set positon of row
Parameters:
Name Type Description
pos number
Inherited From:
Source:

setSelect(select)

[setSelect description]
Parameters:
Name Type Description
select boolean
Source:

showGridRowDetailsContainer(display)

showGridRowDetailsContainer
Parameters:
Name Type Description
display boolean
Source: