Class pvr.widget.PropertyTable


Extends dijit.layout._LayoutWidget, dijit._TemplatedMixin, dijit._WidgetsInTemplateMixin, pvr.widget.mixins._ParentMixin, pvr.widget.mixins._ShowWhenEmptyMixin, pvr.widget.mixins._ResizableMixin,.
Represents a property table container.
Defined in: <pvr\widget\PropertyTable.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
The container type.
 
maxRow 
to control maximum number of rows it could hold the value

Method Summary

Method Attributes Method Name and Description
 
addRow(beginEdit)
Adds a new row to the table and optionally begins edit mode for the new row.
 
bind(controller, view, container, boundProperties)
 
 
 
editRow(row)
 
 
Returns the pvr.widget.Property objects that are children of this container.
 
Gets the indexes of the selected rows.
 
insertRow(position, beginEdit)
Inserts a new row into the table at the specified position and optionally begins edit mode for the new row.
 
Indicates whether all data in the property table is valid.
 
 
 
moveRow(row, position)
Moves the specified rows to the given position.
 
onCellAdded(property, row, value, row)
Event fired for a property when a row gets added to the table.
 
onCellChange(property, row, value, row)
Event fired when a cell value is modified.
 
onCellClicked(property, row, value, row)
Event fired when a cell is clicked.
 
onCellDoubleClicked(property, row, value, row)
Event fired when a cell is double clicked.
 
onCellInserted(property, row, value, row)
Event fired for a property when a row gets inserted into the table.
 
onCellMoved(property, row, value, row)
Event fired for a property when a row gets moved within the table.
 
onCellRemoved(property, row, value, row)
Event fired for a property when a row gets removed from the table.
 
onCellUpdated(row, row, value, error)
Event fired when a cell value within a table is modified.
 
Event fired when a row gets added to the table.
 
Event fired when a cell value within a table row is modified.
 
Event fired when a row is clicked in the table.
 
Event fired when a row is double clicked in the table.
 
Event fired when a row gets inserted into the table.
 
Event fired when a row is moved within the table.
 
Event fired when a row is removed from the table.
 
Event fired when a selection change occurs in the table.
 
Event fired when a cell value within a table is modified.
 
 
 
removeRow(row)
Removes the specified rows from the table.
 
 
 
Selects the specified rows.

Constructor Detail

pvr.widget.PropertyTable()

Field Detail

containerType

The container type.
Defined in: <pvr\widget\ObjectTable.js>.

maxRow

to control maximum number of rows it could hold the value
Defined in: <pvr\widget\ObjectTable.js>.

Method Detail

addRow(beginEdit)

Adds a new row to the table and optionally begins edit mode for the new row.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
beginEdit
Indicates whether to begin edit mode in the new row.

bind(controller, view, container, boundProperties)

Parameters:
controller
view
container
boundProperties

buildRendering()


destroyRecursive()


editRow(row)


Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row

getBOParentController()


Defined in: <pvr\widget\ObjectTable.js>.

getProperties()

Returns the pvr.widget.Property objects that are children of this container.
Defined in: <pvr\widget\ObjectTable.js>.
Returns:
The array of pvr.widget.Property objects.

getSelectedRows()

Gets the indexes of the selected rows.
Defined in: <pvr\widget\ObjectTable.js>.
Returns:
The indexes of the selected rows.

insertRow(position, beginEdit)

Inserts a new row into the table at the specified position and optionally begins edit mode for the new row.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
position
The row position.
beginEdit
Indicates whether to begin edit mode in the new row.

isValid()

Indicates whether all data in the property table is valid.

Changes in the Object table data are not committed to the controller until all data in the Object table is valid. Use this method to determine the valid status of the table.


Defined in: <pvr\widget\ObjectTable.js>.
Returns:
true if all data is valid.

layout()


logStore()


moveRow(row, position)

Moves the specified rows to the given position.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The indexes of the rows to be moved. Can be a single value or an array.
position
The position where the rows will be moved.

onCellAdded(property, row, value, row)

Event fired for a property when a row gets added to the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The added row number.
value
The cell value.
row
The cell error.

onCellChange(property, row, value, row)

Event fired when a cell value is modified.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The modified row number.
value
The cell value.
row
The cell error.

onCellClicked(property, row, value, row)

Event fired when a cell is clicked.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The clicked row number.
value
The cell value.
row
The cell error.

onCellDoubleClicked(property, row, value, row)

Event fired when a cell is double clicked.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The clicked row number.
value
The cell value.
row
The cell error.

onCellInserted(property, row, value, row)

Event fired for a property when a row gets inserted into the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The inserted row number.
value
The cell value.
row
The cell error.

onCellMoved(property, row, value, row)

Event fired for a property when a row gets moved within the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The moved row number.
value
The cell value.
row
The cell error.

onCellRemoved(property, row, value, row)

Event fired for a property when a row gets removed from the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
property
The property.
row
The removed row number.
value
The cell value.
row
The cell error.

onCellUpdated(row, row, value, error)

Event fired when a cell value within a table is modified.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The updated row number.
row
value
error

onRowAdded(row)

Event fired when a row gets added to the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The added row number.

onRowChange(row)

Event fired when a cell value within a table row is modified.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The modified row number.

onRowClicked(rows)

Event fired when a row is clicked in the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
rows
The clicked row numbers.

onRowDoubleClicked(rows)

Event fired when a row is double clicked in the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
rows
The clicked row numbers.

onRowInserted(row)

Event fired when a row gets inserted into the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The inserted row number.

onRowMoved(row)

Event fired when a row is moved within the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The moved row number.

onRowRemoved(rows)

Event fired when a row is removed from the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
rows
The removed row number.

onRowSelected(rows)

Event fired when a selection change occurs in the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
rows
The selected row numbers.

onRowUpdated(row)

Event fired when a cell value within a table is modified.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The modified row number.

postCreate()


postMixInProperties()


removeRow(row)

Removes the specified rows from the table.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The indexes of the rows to be removed. Can be a single value or an array.

setBOTitle()


Defined in: <pvr\widget\ObjectTable.js>.

setDefaultTitle(title)


Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
title

setSelectedRows(row)

Selects the specified rows.
Defined in: <pvr\widget\ObjectTable.js>.
Parameters:
row
The indexes of the rows to be selected. Can be a single value or an array.