Top Description Fields Constructors Methods
com.calendarfx.view

public Class ButtonBar

extends CalendarFXControl
Class Inheritance
Known Direct Subclasses
impl.com.calendarfx.view.NavigateDateView
Imports
impl.com.calendarfx.view.ButtonBarSkin, javafx.collections.FXCollections, .ObservableList, javafx.scene.control.Button, .Skin

A segmented button bar control based on the segmented button control found in ControlsFX but this one working with regular buttons and not toggle buttons. Button Bar

Field Summary

Modifier and TypeField and Description
private final ObservableList<Button>

Constructor Summary

AccessConstructor and Description
public
ButtonBar()

Constructs a new button bar.

public
ButtonBar(Button...
the buttons to add to the control
buttons
)

Constructs a new button bar for the given buttons.

public
ButtonBar(ObservableList<Button>
the buttons to add to the control
buttons
)

Constructs a new button bar for the given buttons.

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final ObservableList<Button>

Returns:

the list of buttons managed by the control
getButtons
()

The list of buttons managed by this button bar.

Inherited from com.calendarfx.view.CalendarFXControl:
getPropertySheetItemsgetUserAgentStylesheet

Field Detail

buttonsback to summary
private final ObservableList<Button> buttons

Constructor Detail

ButtonBarback to summary
public ButtonBar()

Constructs a new button bar.

ButtonBarback to summary
public ButtonBar(Button... buttons)

Constructs a new button bar for the given buttons.

Parameters
buttons:Button[]

the buttons to add to the control

ButtonBarback to summary
public ButtonBar(ObservableList<Button> buttons)

Constructs a new button bar for the given buttons.

Parameters
buttons:ObservableList<Button>

the buttons to add to the control

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Returns:Skin<?>

new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.

getButtonsback to summary
public final ObservableList<Button> getButtons()

The list of buttons managed by this button bar.

Returns:ObservableList<Button>

the list of buttons managed by the control