ColumnSelection

data class ColumnSelection(val tableId: String, val columnIndex: Int, val columnHeaderRow: Int, val childrenOfSelectedHeader: Map<Int, TableSelection.HeaderCellRange>) : TableSelection

Represents a selection of a column in the table.

Constructors

Link copied to clipboard
constructor(tableId: String, columnIndex: Int, columnHeaderRow: Int, childrenOfSelectedHeader: Map<Int, TableSelection.HeaderCellRange>)

Properties

Link copied to clipboard

The children of the selected header.

Link copied to clipboard

The index of the header row of the selected column.

Link copied to clipboard

The index of the selected column.

Link copied to clipboard
open override val tableId: String

The ID of the table.

Functions

Link copied to clipboard

Check if reset button can be displayed.

Link copied to clipboard
fun getSelectedCellRowIndex(selectedTableId: String): Int

Gets the row index of the selected cell if the table ID matches.

Link copied to clipboard
fun isCellParentSelected(selectedTableId: String, columnIndex: Int, rowIndex: Int): Boolean

Checks if a cell's parent is selected.

Link copied to clipboard
fun isCellSelected(selectedTableId: String, columnIndex: Int, rowIndex: Int): Boolean

Checks if a cell is selected.

Link copied to clipboard
fun isCornerSelected(selectedTableId: String): Boolean

Checks if the corner of the table is selected.

Link copied to clipboard
fun isHeaderSelected(selectedTableId: String, columnIndex: Int, columnHeaderRowIndex: Int): Boolean

Checks if a header cell is selected.

Link copied to clipboard
fun isOtherRowSelected(selectedTableId: String, rowHeaderIndexes: List<Int>, rowHeaderColumnIndex: Int): Boolean

Checks if another row is selected.

Link copied to clipboard
fun isParentHeaderSelected(selectedTableId: String, columnIndex: Int, columnHeaderRowIndex: Int): Boolean

Checks if a parent header is selected.

Link copied to clipboard
fun isRowSelected(selectedTableId: String, rowHeaderIndex: Int): Boolean

Checks if a row is selected.

fun isRowSelected(selectedTableId: String, rowHeaderIndexes: List<Int>): Boolean