Skip to main content
Version: Java (Groovy)

atBack

The atBack method is used within setLayoutHints to keep specified columns at the back of the table. They will not be movable and will scroll off screen.

Syntax

atBack(cols...)

Parameters

ParameterTypeDescription
colsString...

The columns to place at the back of the table.

colsCollection<String>

The columns to place at the back of the table.

Returns

A new table with layout instructions for the UI.

Examples

In the following example, the column Even is moved to the back of the table.

import io.deephaven.engine.util.LayoutHintBuilder

source = newTable(
stringCol("A", "A", "a"),
stringCol("B", "B", "b"),
stringCol("C", "C", "c"),
stringCol("D", "D", "d"),
stringCol("E", "E", "e"),
stringCol("Y", "Y", "y"),
intCol("Even", 2, 4),
intCol("Odd", 1, 3)
)

result = source.setLayoutHints(
LayoutHintBuilder.get()
.atBack("Even")
.build()
)