Package-level declarations

Types

Link copied to clipboard

Standard Label styles defined in widgetsfx.css. Use styleAs to apply these style selectors to a Label

Link copied to clipboard

Standard testing styles defined in widgetsfx.css. These place coloured borders around the Regions and set a background colour. These styleclasses are intended to make it easier to understand the extents of regions in layouts when designing layouts. They can easily be added to a Region via Node.testStyleAs()

Properties

Link copied to clipboard
const val stylesheet: String

Functions

Link copied to clipboard
infix fun <T : ButtonBase> T.addAction(eventHandler: EventHandler<ActionEvent>): T

Infix convenience function to add an onAction EventHandler to a Button

Link copied to clipboard
infix fun <T : Node> T.addStyle(newStyleClass: String): T

Infix extension function to add a styleclass selector to a Node.

Link copied to clipboard
fun Scene.addStyleSheet(sheetName: String): Scene

Extension function to add a stylesheet to a Scene

Link copied to clipboard
fun <T : Parent> T.addWidgetStyles(): T

Extension function to add the standard widgetsfx.css stylesheet to a Parent. Note that this will not have any effect unless the Parent is used as the Root element of a Scene.

fun Scene.addWidgetStyles(): Scene

Extension function to add the standard widgetsfx.css stylesheet to a Scene

Link copied to clipboard
infix fun HBox.alignTo(pos: Pos): HBox

Infix extension function to specify the alignment of on HBox

Link copied to clipboard
infix fun <T : Labeled> T.bindGraphic(graphicProperty: ObservableObjectValue<Node>): T
Link copied to clipboard
infix fun <T : Labeled> T.bindTo(value: ObservableStringValue): T
infix fun TextField.bindTo(value: StringProperty): TextField
Link copied to clipboard
fun buttonOf(text: String, handler: EventHandler<ActionEvent>): Button

Factory method to create a simple, text-only, Button with an onAction EventHandler

Link copied to clipboard
fun h1Of(value: ObservableStringValue): Label

Factory method to create a Label styled as an H1 with its Text property bound to an ObservableStringValue

fun h1Of(value: String): Label

Factory method to create a Label styled as an H1

Link copied to clipboard
fun h2Of(value: ObservableStringValue): Label

Factory method to create a Label styled as an H2 with its Text property bound to an ObservableStringValue

fun h2Of(value: String): Label

Factory method to create a Label styled as an H2

Link copied to clipboard
fun h3Of(value: ObservableStringValue): Label

Factory method to create a Label styled as an H3 with its Text property bound to an ObservableStringValue

fun h3Of(value: String): Label

Factory method to create a Label styled as an H3

Link copied to clipboard
fun labelOf(value: ObservableStringValue): Label
fun labelOf(value: ObservableStringValue, styleClass: String, graphicProperty: ObservableObjectValue<Node>): Label
fun labelOf(value: ObservableStringValue, styleClass: String, graphicNode: Node? = null): Label
Link copied to clipboard
infix fun <T : Region> T.padWith(padSize: Double): T

Infix extension function to quickly add padding to a Region with all sides padded to the same amount.

Link copied to clipboard
operator fun StringProperty.plusAssign(otherProperty: ObservableValue<String>)

operator fun Labeled.plusAssign(otherProperty: StringProperty)

Operator definition for += for Labels that binds the Label's Text property to another StringProperty

operator fun Pane.plusAssign(newChild: Node)

Operator to add a Node to a Pane or Pane subclass

Link copied to clipboard
fun promptOf(value: ObservableStringValue): Label
fun promptOf(value: String): Label
Link copied to clipboard
infix fun <T : Labeled> T.styleAs(labelStyle: LabelStyle): T

Decorator function to apply a LabelStyle to a Label

Link copied to clipboard
infix fun <T : Node> T.testStyleAs(nodeStyle: TestStyle): T

Extension function to add one of the standard testing styles defined in widgetsfx.css to a Node. These styles are intended to make it easier to understand how layout elements are related to one another and their extents when designing GUI screens.

Link copied to clipboard
fun textFieldOf(boundValue: StringProperty): TextField

Factory method to create a TextField bound to a StringProperty