ButtonBar

object ButtonBar

Object companion for scalafx.scene.control.ButtonBar.

Object companion for scalafx.scene.control.ButtonBar.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

sealed abstract class ButtonData(val delegate: ButtonData) extends SFXEnumDelegate[ButtonData]

Wraps a $JFX $URL0 $FC]].

Wraps a $JFX $URL0 $FC]].

Value Params
delegate

JavaFX ButtonData

Constructor

Creates a new ButtonData from a JavaFX one.

Companion
object
object ButtonData extends SFXEnumDelegateCompanion[ButtonData, ButtonData]

Wraps a $JFX $URL0 $FC]].

Wraps a $JFX $URL0 $FC]].

Companion
class

Value members

Concrete methods

Returns the previously set ButtonData property on the given button. If this was never set, this method will return null.

Returns the previously set ButtonData property on the given button. If this was never set, this method will return null.

Value Params
button

The button to return the previously set ButtonData for.

def isButtonUniformSize(button: Node): Boolean

Returns whether the given node is part of the uniform sizing calculations or not. By default all nodes that have not opted out (via N o d e, b o o l e a n) will return true here.

Returns whether the given node is part of the uniform sizing calculations or not. By default all nodes that have not opted out (via N o d e, b o o l e a n) will return true here.

def setButtonData(button: Node, buttonData: ButtonData): Unit

Sets the given ButtonData on the given button. If this button is subsequently placed in a scalafx.scene.control.ButtonBar it will be placed in the correct position relative to all other buttons in the bar.

Sets the given ButtonData on the given button. If this button is subsequently placed in a scalafx.scene.control.ButtonBar it will be placed in the correct position relative to all other buttons in the bar.

Value Params
button

The button to annotate with the given { @link ButtonData} value.

buttonData

The ButtonData to designate the button as.

def setButtonUniformSize(button: Node, uniformSize: Boolean): Unit

By default all buttons are uniformly sized in a ButtonBar, meaning that all buttons take the width of the widest button. It is possible to opt-out of this on a per-button basis, but calling the setButtonUniformSize method with a boolean value of false.

By default all buttons are uniformly sized in a ButtonBar, meaning that all buttons take the width of the widest button. It is possible to opt-out of this on a per-button basis, but calling the setButtonUniformSize method with a boolean value of false.

If a button is excluded from uniform sizing, it is both excluded from being resized away from its preferred size, and also excluded from the measuring process, so its size will not influence the maximum size calculated for all buttons in the ButtonBar.

Value Params
button

The button to include / exclude from uniform sizing.

uniformSize

Boolean true to force uniform sizing on the button, false to exclude the button from uniform sizing.

Concrete fields

val ButtonOrderLinux: String

The default button ordering on Linux (specifically, GNOME).

The default button ordering on Linux (specifically, GNOME).

val ButtonOrderMacOs: String

The default button ordering on Mac OS.

The default button ordering on Mac OS.

val ButtonOrderNone: String

A button ordering string that specifies there is no button ordering. In other words, buttons will be placed in the order that exist in the scalafx.scene.control.ButtonBar.buttons list. The only aspect of layout that makes this different than using an HBox is that the buttons are right-aligned.

A button ordering string that specifies there is no button ordering. In other words, buttons will be placed in the order that exist in the scalafx.scene.control.ButtonBar.buttons list. The only aspect of layout that makes this different than using an HBox is that the buttons are right-aligned.

val ButtonOrderWindows: String

The default button ordering on Windows.

The default button ordering on Windows.

Implicits

Implicits

implicit def sfxButtonBar2jfx(v: ButtonBar): ButtonBar

Converts a ScalaFX ButtonBar to its JavaFX counterpart.

Converts a ScalaFX ButtonBar to its JavaFX counterpart.

Value Params
v

ScalaFX ButtonBar

Returns

JavaFX ButtonBar