editor.plugins.TableEditor.CellSelection_ Extends
Class representing the selected cell objects within a single table.

Inheritance

Constructor

goog.editor.plugins.TableEditor.CellSelection_(rangegetParentTableFunction)

Parameters

range : goog.dom.AbstractRange
Selected range from which to calculate selected cells.
getParentTableFunction : ?function(Element):Element
A function that finds the user-editable table from a given element.

Instance Methods

Public Protected Private
containsSingleCell() boolean
Returns a boolean value indicating whether or not there is exactly one cell in this selection. Note that this may not be the same as checking whether getCells().length == 1; if there is a single cell with rowSpan/colSpan set it will appear multiple times.
Returns: boolean  Whether there is exatly one cell in this selection.
code »
getCells() !Array.<Element>
Returns the cells in this selection.
Returns: !Array.<Element>  Cells in this selection.
code »
getFirstColumnIndex() number
Returns the column index of the farthest left cell in this selection.
Returns: number  The column index.
code »
getFirstRowIndex() number
Returns the row index of the uppermost cell in this selection.
Returns: number  The row index.
code »
getLastColumnIndex() number
Returns the column index of the farthest right cell in this selection.
Returns: number  The column index.
code »
getLastRowIndex() number
Returns the row index of the lowermost cell in this selection.
Returns: number  The row index.
code »
getTable() !goog.editor.Table
Returns the EditableTable object of which this selection's cells are a subset.
Returns: !goog.editor.Table  the table.
code »
isRectangle() boolean
Returns a boolean value indicating whether or not the cells in this selection form a rectangle.
Returns: boolean  Whether the selection forms a rectangle.
code »

Instance Properties

cells_ :
No description.
Code »
firstColIndex_ :
No description.
Code »
firstRowIndex_ :
No description.
Code »
lastColIndex_ :
No description.
Code »
lastRowIndex_ :
No description.
Code »
parentTable_ : goog.editor.Table
No description.
Code »

Package editor.plugins.TableEditor

Package Reference