tornadofx / tornadofx / ExpanderColumn

ExpanderColumn

class ExpanderColumn<S> : TableColumn<S, Boolean>

Constructors

<init> ExpanderColumn(expandedNodeCallback: RowExpanderPane.(S) -> Unit)

Functions

getExpandedNode fun getExpandedNode(item: S): Node?
getExpandedProperty fun getExpandedProperty(item: S): BooleanProperty
getOrCreateExpandedNode fun getOrCreateExpandedNode(tableRow: TableRow<S>): Node?
toggleExpanded fun toggleExpanded(index: Int): Unit

Extension Properties

tag var EventTarget.tag: Any?
tagProperty var EventTarget.tagProperty: Property<Any?>

Extension Functions

accordion fun EventTarget.accordion(vararg panes: TitledPane, op: Accordion.() -> Unit = {}): Accordion
add fun EventTarget.add(node: Node): Unit
addChildIfPossible fun EventTarget.addChildIfPossible(node: Node, index: Int? = null): Unit
addClass fun <S, T> TableColumnBase<S, T>.addClass(className: String): TableColumnBase<S, T>
fun <S, T> TableColumnBase<S, T>.addClass(vararg cssClass: CssRule): TableColumnBase<S, T>
addViewsWhen fun EventTarget.addViewsWhen(acceptor: (ViewProvider) -> Boolean): Unit

Subscribe to ViewProvider events from other OSGi bundles and add the provided view to this UI element if the acceptor returns true.

anchorpane fun EventTarget.anchorpane(vararg nodes: Node, op: AnchorPane.() -> Unit = {}): AnchorPane
areachart fun <X, Y> EventTarget.areachart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: AreaChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create an AreaChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

barchart fun <X, Y> EventTarget.barchart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: BarChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create a BarChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

bindChildren fun <T> EventTarget.bindChildren(sourceList: ObservableList<T>, converter: (T) -> Node): ListConversionListener<T, Node>

Bind the children of this Layout node to the given observable list of items by converting them into nodes via the given converter function. Changes to the source list will be reflected in the children list of this layout node.

fun <T> EventTarget.bindChildren(sourceList: ListProperty<T>, converter: (T) -> Node): ListConversionListener<T, Node>

Bind the children of this Layout node to the items of the given ListPropery by converting them into nodes via the given converter function. Changes to the source list and changing the list inside the ListProperty will be reflected in the children list of this layout node.

fun <T> EventTarget.bindChildren(sourceSet: ObservableSet<T>, converter: (T) -> Node): SetConversionListener<T, Node>

Bind the children of this Layout node to the given observable set of items by converting them into nodes via the given converter function. Changes to the source set will be reflected in the children list of this layout node.

fun <K, V> EventTarget.bindChildren(sourceMap: ObservableMap<K, V>, converter: (K, V) -> Node): MapConversionListener<K, V, Node>
bindComponents fun <T> EventTarget.bindComponents(sourceList: ObservableList<T>, converter: (T) -> UIComponent): ListConversionListener<T, Node>

Bind the children of this Layout node to the given observable list of items by converting them into UIComponents via the given converter function. Changes to the source list will be reflected in the children list of this layout node.

borderpane fun EventTarget.borderpane(op: BorderPane.() -> Unit = {}): <ERROR CLASS>
bubblechart fun <X, Y> EventTarget.bubblechart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: BubbleChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create a BubbleChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

button fun EventTarget.button(text: String = "", graphic: Node? = null, op: Button.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.button(text: ObservableValue<String>, graphic: Node? = null, op: Button.() -> Unit = {}): <ERROR CLASS>
buttonbar fun EventTarget.buttonbar(buttonOrder: String? = null, forceLabelIndent: Boolean = true, op: ButtonBar.() -> Unit = {}): ButtonBarField

Creates a ButtonBarFiled with the given button order (refer to javafx.scene.control.ButtonBar#buttonOrderProperty for more information about buttonOrder).

fun EventTarget.buttonbar(buttonOrder: String? = null, op: ButtonBar.() -> Unit): <ERROR CLASS>
canvas fun EventTarget.canvas(width: Double = 0.0, height: Double = 0.0, op: Canvas.() -> Unit = {}): <ERROR CLASS>
cellCache fun <S, T> TableColumn<S, T>.cellCache(scope: Scope = FX.defaultScope, cachedGraphicProvider: (T) -> Node): Unit

Calculate a unique Node per item and set this Node as the graphic of the TableCell.

cellDecorator fun <S, T> TableColumn<S, T>.cellDecorator(decorator: TableCell<S, T>.(T) -> Unit): Unit
cellFormat fun <S, T> TableColumn<S, T>.cellFormat(scope: Scope = FX.defaultScope, formatter: TableCell<S, T>.(T) -> Unit): Unit
cellFragment fun <S, T, F : TableCellFragment<S, T>> TableColumn<S, T>.cellFragment(scope: Scope = FX.defaultScope, fragment: KClass<F>): Unit
checkbox fun EventTarget.checkbox(text: String? = null, property: Property<Boolean>? = null, op: CheckBox.() -> Unit = {}): <ERROR CLASS>
choicebox fun <T> EventTarget.choicebox(property: Property<T>? = null, values: List<T>? = null, op: ChoiceBox<T>.() -> Unit = {}): <ERROR CLASS>
colorpicker fun EventTarget.colorpicker(color: Color? = null, mode: ColorPickerMode = ColorPickerMode.Button, op: ColorPicker.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.colorpicker(colorProperty: ObjectProperty<Color>, mode: ColorPickerMode = ColorPickerMode.Button, op: ColorPicker.() -> Unit = {}): <ERROR CLASS>
combobox fun <T> EventTarget.combobox(property: Property<T>? = null, values: List<T>? = null, op: ComboBox<T>.() -> Unit = {}): <ERROR CLASS>
contentWidth fun <S, T> TableColumn<S, T>.contentWidth(padding: Double = 0.0, useAsMin: Boolean = false, useAsMax: Boolean = false): <ERROR CLASS>

Make the column fit the content plus an optional padding width. Optionally constrain the min or max width to be this width.

contextmenu fun EventTarget.contextmenu(op: ContextMenu.() -> Unit = {}): ContextMenu
converter fun <T, S> TableColumn<T, S?>.converter(converter: StringConverter<in S>): TableColumn<T, S?>
datagrid fun <T> EventTarget.datagrid(items: List<T>? = null, scope: Scope = FX.defaultScope, op: DataGrid<T>.() -> Unit = {}): <ERROR CLASS>
datepicker fun EventTarget.datepicker(op: DatePicker.() -> Unit = {}): DatePicker
fun EventTarget.datepicker(property: Property<LocalDate>, op: DatePicker.() -> Unit = {}): <ERROR CLASS>
drawer fun EventTarget.drawer(side: Side = Side.LEFT, multiselect: Boolean = false, floatingContent: Boolean = false, op: Drawer.() -> Unit): Drawer
enableTextWrap fun <S, T> TableColumn<S, T>.enableTextWrap(): <ERROR CLASS>
field fun EventTarget.field(text: String? = null, orientation: Orientation = HORIZONTAL, forceLabelIndent: Boolean = false, op: Field.() -> Unit = {}): Field

Create a field with the given text and operate on it.

fieldset fun EventTarget.fieldset(text: String? = null, icon: Node? = null, labelPosition: Orientation? = null, wrapWidth: Double? = null, op: Fieldset.() -> Unit = {}): Fieldset
fixedWidth fun <S, T> TableColumn<S, T>.fixedWidth(width: Number): <ERROR CLASS>
flowpane fun EventTarget.flowpane(op: FlowPane.() -> Unit = {}): <ERROR CLASS>
form fun EventTarget.form(op: Form.() -> Unit = {}): <ERROR CLASS>
getChildList fun EventTarget.getChildList(): MutableList<Node>?

Find the list of children from a Parent node. Gleaned code from ControlsFX for this.

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
getTableColumnProperty fun <S, T> TableColumn<S, T>.getTableColumnProperty(item: S): ObservableValue<T?>

Get the property representing this TableColumn for the given item.

getToggleGroup fun EventTarget.getToggleGroup(): ToggleGroup?
getValue fun <S, T> TableColumn<S, T>.getValue(item: S): T?

Get the value from the property representing this TableColumn.

gridpane fun EventTarget.gridpane(op: GridPane.() -> Unit = {}): <ERROR CLASS>
group fun EventTarget.group(initialChildren: Iterable<Node>? = null, op: Group.() -> Unit = {}): <ERROR CLASS>
hasClass fun <S, T> TableColumnBase<S, T>.hasClass(className: String): Boolean
fun <S, T> TableColumnBase<S, T>.hasClass(className: CssRule): Boolean
hbox fun EventTarget.hbox(spacing: Number? = null, alignment: Pos? = null, op: HBox.() -> Unit = {}): HBox
htmleditor fun EventTarget.htmleditor(html: String? = null, op: HTMLEditor.() -> Unit = {}): <ERROR CLASS>
hyperlink fun EventTarget.hyperlink(text: String = "", graphic: Node? = null, op: Hyperlink.() -> Unit = {}): Hyperlink
fun EventTarget.hyperlink(observable: ObservableValue<String>, graphic: Node? = null, op: Hyperlink.() -> Unit = {}): <ERROR CLASS>
imageview fun EventTarget.imageview(url: String? = null, lazyload: Boolean = true, op: ImageView.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.imageview(url: ObservableValue<String>, lazyload: Boolean = true, op: ImageView.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.imageview(image: ObservableValue<Image?>, op: ImageView.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.imageview(image: Image, op: ImageView.() -> Unit = {}): ImageView
isInsideRow fun EventTarget.isInsideRow(): Boolean

Did the event occur inside a TableRow, TreeTableRow or ListCell?

keyboard fun EventTarget.keyboard(op: KeyboardLayout.() -> Unit): <ERROR CLASS>
label fun EventTarget.label(text: String = "", graphic: Node? = null, op: Label.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.label(observable: ObservableValue<T>, graphicProperty: ObservableValue<Node>? = null, converter: StringConverter<in T>? = null, op: Label.() -> Unit = {}): <ERROR CLASS>
lazyContextmenu fun EventTarget.lazyContextmenu(op: ContextMenu.() -> Unit = {}): <ERROR CLASS>

Add a context menu to the target which will be created on demand.

linechart fun <X, Y> EventTarget.linechart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: LineChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create a LineChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

listmenu fun EventTarget.listmenu(orientation: Orientation = VERTICAL, iconPosition: Side = Side.LEFT, theme: String? = null, tag: Any? = null, op: ListMenu.() -> Unit = {}): <ERROR CLASS>
listview fun <T> EventTarget.listview(values: ObservableList<T>? = null, op: ListView<T>.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.listview(values: ReadOnlyListProperty<T>, op: ListView<T>.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.listview(values: ObservableValue<ObservableList<T>>, op: ListView<T>.() -> Unit = {}): <ERROR CLASS>
makeEditable fun <T, S : Any> TableColumn<T, S>.makeEditable(): <ERROR CLASS>
fun <T, S : Any> TableColumn<T, S>.makeEditable(converter: StringConverter<S>): TableColumn<T, S>
maxWidth fun <S, T> TableColumn<S, T>.maxWidth(width: Number): <ERROR CLASS>
menubar fun EventTarget.menubar(op: MenuBar.() -> Unit = {}): MenuBar
menubutton fun EventTarget.menubutton(text: String = "", graphic: Node? = null, op: MenuButton.() -> Unit = {}): <ERROR CLASS>
minWidth fun <S, T> TableColumn<S, T>.minWidth(width: Number): <ERROR CLASS>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>
pagination fun EventTarget.pagination(pageCount: Int? = null, pageIndex: Int? = null, op: Pagination.() -> Unit = {}): Pagination
pane fun EventTarget.pane(op: Pane.() -> Unit = {}): <ERROR CLASS>
passwordfield fun EventTarget.passwordfield(value: String? = null, op: PasswordField.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.passwordfield(property: ObservableValue<String>, op: PasswordField.() -> Unit = {}): <ERROR CLASS>
pctWidth fun <S, T> TableColumn<S, T>.pctWidth(pct: Number): <ERROR CLASS>
piechart fun EventTarget.piechart(title: String? = null, data: ObservableList<Data>? = null, op: PieChart.() -> Unit = {}): PieChart

Create a PieChart with optional title data and add to the parent pane. The optional op will be performed on the new instance.

plusAssign operator fun EventTarget.plusAssign(node: Node): Unit
operator fun EventTarget.plusAssign(view: UIComponent): Unit
prefWidth fun <S, T> TableColumn<S, T>.prefWidth(width: Number): <ERROR CLASS>
progressbar fun EventTarget.progressbar(initialValue: Double? = null, op: ProgressBar.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.progressbar(property: ObservableValue<Number>, op: ProgressBar.() -> Unit = {}): <ERROR CLASS>
progressindicator fun EventTarget.progressindicator(op: ProgressIndicator.() -> Unit = {}): ProgressIndicator
fun EventTarget.progressindicator(property: Property<Number>, op: ProgressIndicator.() -> Unit = {}): <ERROR CLASS>
radiobutton fun EventTarget.radiobutton(text: String? = null, group: ToggleGroup? = getToggleGroup(), value: Any? = null, op: RadioButton.() -> Unit = {}): <ERROR CLASS>

Create a radiobutton inside the current or given toggle group. The optional value parameter will be matched against the extension property selectedValueProperty() on Toggle Group. If the #ToggleGroup.selectedValueProperty is used, its value will be updated to reflect the value for this radio button when its selected.

region fun EventTarget.region(op: Region.() -> Unit = {}): <ERROR CLASS>
remainingWidth fun <S, T> TableColumn<S, T>.remainingWidth(): <ERROR CLASS>
removeClass fun <S, T> TableColumnBase<S, T>.removeClass(vararg cssClass: CssRule, removeAll: Boolean = true): TableColumnBase<S, T>
fun <S, T> TableColumnBase<S, T>.removeClass(className: String, removeAll: Boolean = true): TableColumnBase<S, T>
removeFromParent fun EventTarget.removeFromParent(): Unit
replaceChildren fun EventTarget.replaceChildren(vararg node: Node): Unit
scatterchart fun <X, Y> EventTarget.scatterchart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: ScatterChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create a ScatterChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

scrollpane fun EventTarget.scrollpane(fitToWidth: Boolean = false, fitToHeight: Boolean = false, op: ScrollPane.() -> Unit = {}): ScrollPane
separator fun EventTarget.separator(orientation: Orientation = Orientation.HORIZONTAL, op: Separator.() -> Unit = {}): <ERROR CLASS>
setValue fun <S, T> TableColumn<S, T>.setValue(item: S, value: T?): Unit

Write a value into the property representing this TableColumn, provided the property is writable.

slider fun EventTarget.slider(min: Number? = null, max: Number? = null, value: Number? = null, orientation: Orientation? = null, op: Slider.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.slider(range: ClosedRange<T>, value: Number? = null, orientation: Orientation? = null, op: Slider.() -> Unit = {}): Slider where T : Comparable<T>, T : Number
spinner fun <T> EventTarget.spinner(editable: Boolean = false, property: Property<T>? = null, enableScroll: Boolean = false, op: Spinner<T>.() -> Unit = {}): <ERROR CLASS>

Create a spinner for an arbitrary type. This spinner requires you to configure a value factory, or it will throw an exception.

fun <T : Number> EventTarget.spinner(min: T? = null, max: T? = null, initialValue: T? = null, amountToStepBy: T? = null, editable: Boolean = false, property: Property<T>? = null, enableScroll: Boolean = false, op: Spinner<T>.() -> Unit = {}): Spinner<T>
fun <T> EventTarget.spinner(items: ObservableList<T>, editable: Boolean = false, property: Property<T>? = null, enableScroll: Boolean = false, op: Spinner<T>.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.spinner(valueFactory: SpinnerValueFactory<T>, editable: Boolean = false, property: Property<T>? = null, enableScroll: Boolean = false, op: Spinner<T>.() -> Unit = {}): <ERROR CLASS>
splitpane fun EventTarget.splitpane(orientation: Orientation = Orientation.HORIZONTAL, vararg nodes: Node, op: SplitPane.() -> Unit = {}): SplitPane
squeezebox fun EventTarget.squeezebox(multiselect: Boolean = true, fillHeight: Boolean = true, op: SqueezeBox.() -> Unit): SqueezeBox
stackedbarchart fun <X, Y> EventTarget.stackedbarchart(title: String? = null, x: Axis<X>, y: Axis<Y>, op: StackedBarChart<X, Y>.() -> Unit = {}): <ERROR CLASS>

Create a BarChart with optional title, axis and add to the parent pane. The optional op will be performed on the new instance.

stackpane fun EventTarget.stackpane(initialChildren: Iterable<Node>? = null, op: StackPane.() -> Unit = {}): <ERROR CLASS>
style fun Styleable.style(append: Boolean = false, op: InlineCss.() -> Unit): Unit
svgicon fun EventTarget.svgicon(shape: String, size: Number = 16, color: Paint = Color.BLACK, op: SVGIcon.() -> Unit = {}): SVGIcon
tableview fun <T> EventTarget.tableview(items: ObservableList<T>? = null, op: TableView<T>.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.tableview(items: ReadOnlyListProperty<T>, op: TableView<T>.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.tableview(items: ObservableValue<ObservableList<T>>, op: TableView<T>.() -> Unit = {}): <ERROR CLASS>
tabpane fun EventTarget.tabpane(op: TabPane.() -> Unit = {}): TabPane
text fun EventTarget.text(op: Text.() -> Unit = {}): Text
fun EventTarget.text(initialValue: String? = null, op: Text.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.text(property: Property<String>, op: Text.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.text(observable: ObservableValue<String>, op: Text.() -> Unit = {}): <ERROR CLASS>
textarea fun EventTarget.textarea(value: String? = null, op: TextArea.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.textarea(property: ObservableValue<String>, op: TextArea.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.textarea(property: Property<T>, converter: StringConverter<T>, op: TextArea.() -> Unit = {}): <ERROR CLASS>
textfield fun EventTarget.textfield(value: String? = null, op: TextField.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.textfield(property: ObservableValue<String>, op: TextField.() -> Unit = {}): <ERROR CLASS>
fun EventTarget.textfield(property: ObservableValue<Number>, op: TextField.() -> Unit = {}): <ERROR CLASS>
fun <T> EventTarget.textfield(property: Property<T>, converter: StringConverter<T>, op: TextField.() -> Unit = {}): <ERROR CLASS>
textflow fun EventTarget.textflow(op: TextFlow.() -> Unit = {}): TextFlow
tilepane fun EventTarget.tilepane(op: TilePane.() -> Unit = {}): <ERROR CLASS>
titledpane fun EventTarget.titledpane(title: String? = null, node: Node? = null, collapsible: Boolean = true, op: TitledPane.() -> Unit = {}): TitledPane
fun EventTarget.titledpane(title: ObservableValue<String>, node: Node? = null, collapsible: Boolean = true, op: TitledPane.() -> Unit = {}): TitledPane
toTornadoFXColumn fun TableColumn<*, *>.toTornadoFXColumn(): TornadoFxNormalTableColumn
toggleClass fun <S, T> TableColumnBase<S, T>.toggleClass(cssClass: CssRule, predicate: Boolean): TableColumnBase<S, T>
fun <S, T> TableColumnBase<S, T>.toggleClass(className: String, predicate: Boolean): TableColumnBase<S, T>
togglebutton fun EventTarget.togglebutton(text: String? = null, group: ToggleGroup? = getToggleGroup(), selectFirst: Boolean = true, value: Any? = null, op: ToggleButton.() -> Unit = {}): <ERROR CLASS>

Create a togglebutton inside the current or given toggle group. The optional value parameter will be matched against the extension property selectedValueProperty() on Toggle Group. If the #ToggleGroup.selectedValueProperty is used, its value will be updated to reflect the value for this radio button when its selected.

fun EventTarget.togglebutton(text: ObservableValue<String>? = null, group: ToggleGroup? = getToggleGroup(), selectFirst: Boolean = true, value: Any? = null, op: ToggleButton.() -> Unit = {}): <ERROR CLASS>
toolbar fun EventTarget.toolbar(vararg nodes: Node, op: ToolBar.() -> Unit = {}): ToolBar
treetableview fun <T> EventTarget.treetableview(root: TreeItem<T>? = null, op: TreeTableView<T>.() -> Unit = {}): <ERROR CLASS>
treeview fun <T> EventTarget.treeview(root: TreeItem<T>? = null, op: TreeView<T>.() -> Unit = {}): <ERROR CLASS>
useCheckbox fun <S> TableColumn<S, Boolean?>.useCheckbox(editable: Boolean = true): <ERROR CLASS>
useChoiceBox fun <S, T> TableColumn<S, T?>.useChoiceBox(items: ObservableList<T>, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
useComboBox fun <S, T> TableColumn<S, T?>.useComboBox(items: ObservableList<T>, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
useProgressBar fun <S> TableColumn<S, out Number?>.useProgressBar(scope: Scope, afterCommit: (CellEditEvent<S, Number?>) -> Unit = {}): <ERROR CLASS>
useTextField fun <S, T> TableColumn<S, T?>.useTextField(converter: StringConverter<T>? = null, afterCommit: (CellEditEvent<S, T?>) -> Unit = {}): <ERROR CLASS>
value infix fun <S> TableColumn<S, *>.value(cellValueFactory: (CellDataFeatures<S, Any>) -> Any?): <ERROR CLASS>

Configure a cellValueFactory for the column. If the returned value is not observable, it is automatically wrapped in a SimpleObjectProperty for convenience.

vbox fun EventTarget.vbox(spacing: Number? = null, alignment: Pos? = null, op: VBox.() -> Unit = {}): VBox
webview fun EventTarget.webview(op: WebView.() -> Unit = {}): WebView
weightedWidth fun <S, T> TableColumn<S, T>.weightedWidth(weight: Number, padding: Double = 0.0, minContentWidth: Boolean = false): <ERROR CLASS>