Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface CellInfo<T, R> : IndexedItem
Link copied to clipboard
Link copied to clipboard
interface Column<T>
Link copied to clipboard
interface ColumnBuilder
Link copied to clipboard
interface ColumnFactory<T>
Link copied to clipboard
data class ColumnInfo<K, V, T>(val header: View? = null, val visualizer: CellVisualizer<Pair<K, V>, T>, val footer: View? = null, val builder: ColumnBuilder.() -> Unit)

Data describing a KeyValueTable column.

Link copied to clipboard

Defines how columns within Table and related controls are sized.

Link copied to clipboard
open class DynamicTable<T, M : DynamicListModel<T>>(model: M, selectionModel: SelectionModel<Int>? = null, scrollCache: Int = 0, block: ColumnFactory<T>.() -> Unit) : Table<T, M>
Link copied to clipboard
Link copied to clipboard
typealias ExpansionObserver<T> = (source: TreeTable<T, *>, paths: Set<Path<Int>>) -> Unit

Created by Nicholas Eddy on 5/5/19.

Link copied to clipboard
Link copied to clipboard
interface KeyValueModel<K, V> : ListModel<Pair<K, V>>

Map based model used with KeyValueTable.

Link copied to clipboard
class KeyValueTable<K, V>(model: KeyValueModel<K, V>, keyColumn: ColumnInfo<K, V, K>, valueColumn: ColumnInfo<K, V, V>, selectionModel: SelectionModel<Int>? = null, scrollCache: Int = 0) : Table<Pair<K, V>, KeyValueModel<K, V>>

A visual component that renders an immutable list of key (K) - value (V) pairs using a TableBehavior. Items are obtained via the model and selection is managed via the optional selectionModel. Large ("infinite") lists are supported efficiently, since Table recycles the Views generated to render its items.

Link copied to clipboard
class MetaRowGeometry(val insetTop: Double = 0.0, val insetBottom: Double = 0.0, val height: Double = 0.0)

Indicates the y-offset and height of a table's header.

Link copied to clipboard
Link copied to clipboard
interface MutableColumn<T, R> : Column<R>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class MutableTable<T, M : MutableListModel<T>>(model: M, selectionModel: SelectionModel<Int>? = null, scrollCache: Int = 0, block: MutableColumnFactory<T>.() -> Unit) : DynamicTable<T, M> , Editable

A visual component that renders a mutable list of items of type T using a TableBehavior.

Link copied to clipboard

KeyValueModel that simply wraps a Map

Link copied to clipboard
typealias Sorter<T, S> = Extractor<T, S>
Link copied to clipboard
open class Table<T, M : ListModel<T>>(val model: M, val selectionModel: SelectionModel<Int>? = null, scrollCache: Int = 0, columns: ColumnFactory<T>.() -> Unit) : View, ListLike, Selectable<Int>

A visual component that renders an immutable list of items of type T using a TableBehavior. Items are obtained via the model and selection is managed via the optional selectionModel. Large ("infinite") lists are supported efficiently, since Table recycles the Views generated to render its items.

Link copied to clipboard
abstract class TableBehavior<T> : AbstractTableBehavior<Table<T, *>>

Controls the look and feel for a Table.

Link copied to clipboard
interface TableCellEditor<T, R>

Defines how cells in a MutableTable are edited.

Link copied to clipboard
open class TreeTable<T, M : TreeModel<T>>(model: M, val selectionModel: SelectionModel<Path<Int>>? = null, scrollCache: Int = 0, block: ColumnFactory<T>.() -> Unit) : View, TreeLike
Link copied to clipboard

Controls the look and feel for a TreeTable.

Functions

Link copied to clipboard

Creates a FooterCellGenerator based on the given lambda.

Link copied to clipboard

Creates a HeaderCellGenerator based on the given lambda.

Link copied to clipboard

Creates a MetaRowPositioner based on the given lambda.

Link copied to clipboard
fun <T, R> simpleTableCellEditor(cell: T.() -> R, result: T.(updatedCell: R) -> T, cellEditor: (table: MutableTable<T, *>, column: MutableColumn<T, R>, cell: R, index: Int, current: View, result: (R) -> T) -> EditOperation<R>): TableCellEditor<T, R>

Creates a TableCellEditor that modifies a single cell R within a row T.

Link copied to clipboard
fun <T, R> tableCellEditor(block: (table: MutableTable<T, *>, row: T, column: MutableColumn<T, R>, index: Int, current: View) -> EditOperation<T>): TableCellEditor<T, R>

DSL for creating TableCellEditor from a lambda.

Inherited functions

Link copied to clipboard
fun <T, R> TreeModel<T>.map(mapper: (T) -> R): TreeModel<R>
fun <T, R> Iterator<T>.map(mapper: (T) -> R): Iterator<R>
fun <T : Any, R : Any> SelectionModel<T>.map(mapper: (T) -> R?, unmapper: (R) -> T?): SelectionModel<R>
Link copied to clipboard
fun <T, R : Any> Iterator<T>.mapNotNull(mapper: (T) -> R?): Iterator<R>