This is the Grid Row class. It is just a thyPanel with a thyVisualCollection of thyGridCell elements.
This is the Grid Row class. | |
Initialization Method. | |
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow | |
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. | |
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow | |
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. | |
Removes all CSS classes from both cellCSSClasses and cellIndexedCSSClasses | |
Sets the Index of this Row | |
Returns the index of this Row | |
Inserts a Cell into the specified column | |
Returns the contents of the Cell that resides on the specified column | |
Returns the thyGridCell element that resides on the specified position | |
Returns a thyCollection with the contents of the Selected Cells | |
Returns the number of cells this row has | |
Removes the Cell on the specified column | |
Changes the position of a Cell to a new place | |
Used to check if the cell is selected or not | |
Selects the whole row, BUT DO NOT CALL event ‘onselectrow’ | |
Selects the whole Row, that means, all Cells and calls event handler ‘onselectrow’ and ‘onselectrow<n>’ where <n> is the row index. | |
Unselects the whole row, BUT DO NOT CALL event ‘onunselectrow’ | |
Unselectes the whole Row, that means, all Cells and calls event handler ‘onselectrow’ and ‘onselectrow<n>’ where <n> is the row index. | |
Changes the selected state to its oposit state | |
Selects all cells if any cell is selected | |
Selects all cells only if clicking on row header | |
Overwritten method that draws TR element instead of DIV | |
Overloaded method that creates the TR element and inserts it into parent | |
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow | |
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. | |
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow | |
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. | |
Removes all CSS classes from both cellCSSClasses and cellIndexedCSSClasses | |
Creates a Cell and sets all CSS Classes that has been passed to thyGridRow | |
Updates the names of all Cells to reflect their real positions and also updates all CSS indexed classes | |
Updates the classes of the specified cell | |
Updates the classes of every cell | |
Removes the classes of every cell |
p.addCellCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
cssClass | The CSS class |
p.addCellIndexedCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. This classes will be appended with the Cell column index
cssClass | The CSS class |
p.removeCellCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
cssClass | The CSS class |
p.removeCellIndexedCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. This classes will be appended with the Cell column index
cssClass | The CSS class |
p.getCellElement = function ( column )
Returns the thyGridCell element that resides on the specified position
If what you want is just the cell contents, please use thyGridRow::getCell
This method should ONLY be used if developer wants to manipulate cell properties! Be warned that messing with wrong property may break encapsulation and thus produce undesired effects on thyGridRow
column | The column index |
p.getSelectedCells = function ()
Returns a thyCollection with the contents of the Selected Cells
p._addCellCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
cssClass | The CSS class |
p._addCellIndexedCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. This classes will be appended with the Cell column index
cssClass | The CSS class |
p._removeCellCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
cssClass | The CSS class |
p._removeCellIndexedCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow. This classes will be appended with the Cell column index
cssClass | The CSS class |
p._createCell = function ( colIndex, type )
Creates a Cell and sets all CSS Classes that has been passed to thyGridRow
colIndex | The column index of this cell |
type | The Cell type. Can be ‘n’ for normal or ‘h’ for header |
Initialization Method.
p.initThyGridRow = function ()
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
p.addCellCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow.
p.addCellIndexedCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
p.removeCellCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow.
p.removeCellIndexedCSSClass = function ( cssClass )
Removes all CSS classes from both cellCSSClasses and cellIndexedCSSClasses
p.removeAllCellClasses = function ()
Sets the Index of this Row
p.setIndex = function ( index )
Returns the index of this Row
p.getIndex = function ()
Inserts a Cell into the specified column
p.insertCell = function ( content, column, type )
Returns the contents of the Cell that resides on the specified column
p.getCell = function ( column )
Returns the thyGridCell element that resides on the specified position
p.getCellElement = function ( column )
Returns a thyCollection with the contents of the Selected Cells
p.getSelectedCells = function ()
Returns the number of cells this row has
p.getCellsCount = function ()
Removes the Cell on the specified column
p.removeCell = function ( column )
Changes the position of a Cell to a new place
p.moveCell = function ( orig, dest )
Used to check if the cell is selected or not
p.isSelected = function ()
Selects the whole row, BUT DO NOT CALL event ‘onselectrow’
p.selectOnly = function ()
Selects the whole Row, that means, all Cells and calls event handler ‘onselectrow’ and ‘onselectrow<n>’ where n is the row index.
p.select = function ()
Unselects the whole row, BUT DO NOT CALL event ‘onunselectrow’
p.unselectOnly = function ()
Unselectes the whole Row, that means, all Cells and calls event handler ‘onselectrow’ and ‘onselectrow<n>’ where n is the row index.
p.unselect = function ()
Changes the selected state to its oposit state
p.switchSelectedState = function ()
Selects all cells if any cell is selected
p.setSelectCellSelectRow = function ()
Selects all cells only if clicking on row header
p.unsetSelectCellSelectRow = function ()
Overwritten method that draws TR element instead of DIV
p.getOuterHTML = function ()
Overloaded method that creates the TR element and inserts it into parent
p._create = function ()
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
p._addCellCSSClass = function ( cssClass )
Append a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow.
p._addCellIndexedCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow
p._removeCellCSSClass = function ( cssClass )
Remove a CSS class to the list of classes that will be added to all Cells created/manipulated by thyGridRow.
p._removeCellIndexedCSSClass = function ( cssClass )
Creates a Cell and sets all CSS Classes that has been passed to thyGridRow
p._createCell = function ( colIndex, type )
Updates the names of all Cells to reflect their real positions and also updates all CSS indexed classes
p._updateNames = function ()
Updates the classes of the specified cell
p._updateClasses = function ( cell, cellIdx )
Updates the classes of every cell
p._updateAllClasses = function ()
Removes the classes of every cell
p._removeAllClasses = function ()