TableBehavior

Controls the look and feel for a Table.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface CellGenerator<T>

Responsible for creating a View to represent each cell in the Table.

Link copied to clipboard
interface RowPositioner<T>

Determines the location and height of rows in the Table.

Properties

Link copied to clipboard

PointerListeners that are notified during the sinking phase of pointer event handling for the Table's body.

Link copied to clipboard

PointerMotionListeners that are notified during the sinking phase of pointer-motion event handling for the Table's body.

Link copied to clipboard
Link copied to clipboard

PointerListeners that are notified during the sinking phase of pointer event handling for the Table's footer.

Link copied to clipboard

PointerMotionListeners that are notified during the sinking phase of pointer-motion event handling for the Table's footer.

Link copied to clipboard

PointerListeners that are notified during the sinking phase of pointer event handling for the Table's header.

Link copied to clipboard

PointerMotionListeners that are notified during the sinking phase of pointer-motion event handling for the Table's header.

Link copied to clipboard

Functions

Link copied to clipboard
protected fun Table<T, *>.bodyDirty()

Requests that the Table repaint its body. This will result in a call to renderBody.

Link copied to clipboard
protected fun Table<T, *>.columnDirty(column: Column<*>)

Requests that the Table repaint a column. This will result in a call to renderColumnBody.

Link copied to clipboard
protected fun Table<T, *>.footerDirty()

Requests that the Table repaint its footer. This will result in a call to renderFooter.

Link copied to clipboard
protected fun Table<T, *>.headerDirty()

Requests that the Table repaint its header. This will result in a call to renderHeader.

Inherited functions

Link copied to clipboard
open fun childrenClipPath(view: Table<T, *>): View.ClipPath?
Link copied to clipboard
open fun clipCanvasToBounds(view: Table<T, *>): Boolean
Link copied to clipboard
open fun <A> columnMoved(table: Table<T, *>, column: Column<A>)

Called each time a column's position changes in table.

Link copied to clipboard
open fun <A> columnMoveEnd(table: Table<T, *>, column: Column<A>)

Called whenever movement of a column (started when moveColumn was called) ends.

Link copied to clipboard
open fun <A> columnMoveStart(table: Table<T, *>, column: Column<A>)

Called whenever a column begins moving in table.

Link copied to clipboard
open fun contains(view: Table<T, *>, point: Point): Boolean
Link copied to clipboard
open fun install(view: Table<T, *>)
Link copied to clipboard
open fun mirrorWhenRightToLeft(view: Table<T, *>): Boolean
Link copied to clipboard
open fun moveColumn(table: Table<T, *>, distance: Double, block: (progress: Float) -> Unit): Completable

Called whenever a column needs to automatically move to a location. This happens (for example) if a column is being reordered. The given block controls the progress and timing of this move, allowing for custom animation.

Link copied to clipboard
open fun render(view: Table<T, *>, canvas: Canvas)
Link copied to clipboard
open fun renderBody(table: Table<T, *>, canvas: Canvas)

Used to render the Table's body background.

Link copied to clipboard
open fun <A> renderColumnBody(table: Table<T, *>, column: Column<A>, canvas: Canvas)

Used to render individual backgrounds for the Table's columns. This draws above the Table's body; and is useful for cases where columns need distinct visuals (i.e. when being dragged).

Link copied to clipboard
open fun renderFooter(table: Table<T, *>, canvas: Canvas)

Used to render the Table's footer background.

Link copied to clipboard
open fun renderHeader(table: Table<T, *>, canvas: Canvas)

Used to render the Table's header background.

Link copied to clipboard
open fun uninstall(view: Table<T, *>)