Top Description Fields Constructors Methods
com.dlsc.workbenchfx.view.controls

public Class ToolbarControl

extends HBox
Class Inheritance
Imports
javafx.beans.InvalidationListener, javafx.beans.binding.Bindings, javafx.beans.property.BooleanProperty, .ListProperty, .ReadOnlyBooleanProperty, .SimpleBooleanProperty, .SimpleListProperty, javafx.collections.FXCollections, .ObservableList, javafx.scene.layout.HBox, .Priority, org.slf4j.Logger, .LoggerFactory

Represents a toolbar, which displays all toolbar items stored in the representative Lists. It consists of two areas to display the items: The left and the right toolbarControlBox.
Authors
François Martin, Marco Sanfratello

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private static final Logger
private HBox
private HBox
private final ListProperty<ToolbarItem>
private final ListProperty<ToolbarItem>

Constructor Summary

AccessConstructor and Description
public
ToolbarControl()

Creates an empty ToolbarControl object and fully initializes it.

Method Summary

Modifier and TypeMethod and Description
public final ReadOnlyBooleanProperty

Returns:

whether the toolbar is empty or not
emptyProperty
()

Returns whether the toolbar is empty or not.

public final ObservableList<ToolbarItem>
public final ObservableList<ToolbarItem>
private void
public final boolean

Returns:

whether the toolbar is empty or not
isEmpty
()

Returns whether the toolbar is empty or not.

private void
private void
private void
public final ListProperty<ToolbarItem>
public final ListProperty<ToolbarItem>
Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

emptyback to summary
private final BooleanProperty empty
LOGGERback to summary
private static final Logger LOGGER
toolbarControlLeftBoxback to summary
private HBox toolbarControlLeftBox
toolbarControlRightBoxback to summary
private HBox toolbarControlRightBox
toolbarControlsLeftback to summary
private final ListProperty<ToolbarItem> toolbarControlsLeft
toolbarControlsRightback to summary
private final ListProperty<ToolbarItem> toolbarControlsRight

Constructor Detail

ToolbarControlback to summary
public ToolbarControl()

Creates an empty ToolbarControl object and fully initializes it.

Method Detail

emptyPropertyback to summary
public final ReadOnlyBooleanProperty emptyProperty()

Returns whether the toolbar is empty or not. As long as the toolbarControlsLeft and -right doesn't contain any values, the toolbar is considered empty.

Returns:ReadOnlyBooleanProperty

whether the toolbar is empty or not

getToolbarControlsLeftback to summary
public final ObservableList<ToolbarItem> getToolbarControlsLeft()
getToolbarControlsRightback to summary
public final ObservableList<ToolbarItem> getToolbarControlsRight()
initializePartsback to summary
private void initializeParts()
isEmptyback to summary
public final boolean isEmpty()

Returns whether the toolbar is empty or not. As long as the toolbarControlsLeft and -right doesn't contain any values, the toolbar is considered empty.

Returns:boolean

whether the toolbar is empty or not

layoutPartsback to summary
private void layoutParts()
setupBindingsback to summary
private void setupBindings()
setupListenersback to summary
private void setupListeners()
toolbarControlsLeftPropertyback to summary
public final ListProperty<ToolbarItem> toolbarControlsLeftProperty()
toolbarControlsRightPropertyback to summary
public final ListProperty<ToolbarItem> toolbarControlsRightProperty()