ButtonBar

scalafx.scene.control.ButtonBar
See theButtonBar companion class
object ButtonBar

Object companion for scalafx.scene.control.ButtonBar.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ButtonBar.type

Members list

Type members

Classlikes

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

Wraps a $JFX $URL0 $FC]].

Wraps a $JFX $URL0 $FC]].

Value parameters

delegate

JavaFX ButtonData

Attributes

Constructor

Creates a new ButtonData from a JavaFX one.

Companion
object
Supertypes
trait SFXEnumDelegate[ButtonData]
trait SFXDelegate[ButtonData]
class Object
trait Matchable
class Any
Known subtypes
object Apply.type
object BackPrevious.type
object BigGap.type
object CancelClose.type
object Finish.type
object Help.type
object Help2.type
object Left.type
object NextForward.type
object No.type
object OKDone.type
object Other.type
object Right.type
object SmallGap.type
object Yes.type
Show all
object ButtonData extends SFXEnumDelegateCompanion[ButtonData, ButtonData]

Wraps a $JFX $URL0 $FC]].

Wraps a $JFX $URL0 $FC]].

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
ButtonData.type

Value members

Concrete methods

def getButtonData(button: Node): ButtonData

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 parameters

button

The button to return the previously set ButtonData for.

Attributes

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.

Attributes

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 parameters

button

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

buttonData

The ButtonData to designate the button as.

Attributes

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 parameters

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.

Attributes

Concrete fields

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

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

Attributes

The default button ordering on Mac OS.

The default button ordering on Mac OS.

Attributes

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.

Attributes

The default button ordering on Windows.

The default button ordering on Windows.

Attributes

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 parameters

v

ScalaFX ButtonBar

Attributes

Returns

JavaFX ButtonBar