Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
CellCoordinates

Package | flashx.textLayout.elements
Class | public class CellCoordinates
Inheritance | CellCoordinates Object

Describes the location of table cell by row and column

Public Properties

| Property | Defined By
--- | --- | ---
|  | column : int The column the cell belongs to | CellCoordinates
|  | row : int The row the cell belongs to | CellCoordinates
|  | table : TableElement | CellCoordinates

Public Methods

| Method | Defined By
--- | --- | ---
|  | CellCoordinates(row:int, column:int, table:TableElement = null) | CellCoordinates
|  | areEqual(coords1:CellCoordinates, coords2:CellCoordinates):Boolean [static] Checks if two coordiates are in the same location | CellCoordinates
|  | clone():CellCoordinates Creates a new CellCoordinates with the same row and column values | CellCoordinates
|  | isValid():Boolean Returns true if the column and row are greater than -1 | CellCoordinates

Property Detail

column | property

`column:int`

The column the cell belongs to

Implementation
`public function get column():int`
`public function set column(value:int):void`

row | property |

`row:int`

The row the cell belongs to

Implementation
`public function get row():int`
`public function set row(value:int):void`

table | property |

`public var table:TableElement`

Constructor Detail

CellCoordinates | () | Constructor

`public function CellCoordinates(row:int, column:int, table:TableElement = null)`

Parameters

| `row:int`
| `column:int`
| `table:TableElement` (default = `null`)``

Method Detail

areEqual | () | method

`public static function areEqual(coords1:CellCoordinates, coords2:CellCoordinates):Boolean`

Checks if two coordiates are in the same location

Parameters

| `coords1:CellCoordinates`
| `coords2:CellCoordinates`

Returns

| `Boolean`

clone | () | method |

`public function clone():CellCoordinates`

Creates a new CellCoordinates with the same row and column values

Returns

| `CellCoordinates`

isValid | () | method |

`public function isValid():Boolean`

Returns true if the column and row are greater than -1

Returns

| `Boolean`

Wed Nov 15 2017, 09:50 AM +01:00