ToolBar control.
ToolBar
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final BehaviorBase | |
| private Pane | |
| private ObjectProperty | |
| private final ParentTraversalEngine | |
| private ListChangeListener | |
| private boolean | |
| private boolean | |
| private Pane | overflowBox
The overflow logic needs properly calculated prefWidth(..)/prefHeight(..) values. |
| private ToolBarSkin. | |
| private int | |
| private double | |
| private double | |
| private double | |
| private double | |
| private DoubleProperty |
| Access | Constructor and Description |
|---|---|
| public | ToolBarSkin(ToolBar
The control that this skin should be installed onto. control)Creates a new ToolBarSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private final ObjectProperty | |
| protected double | computeMaxHeight(double
The width of the Skin, in case this value might dictate
the maximum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double
The height of the Skin, in case this value might dictate
the maximum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double
The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double
The height of the Skin, in case this value might dictate
the minimum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred width of this |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| protected void | executeAccessibleAction(AccessibleAction
the action to execute action, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| private final Pos | |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesHides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| private int | Returns: the index of the first node that does not fit in the toolbar, or the size of the items list elsethe length of the toolbar length)Calculate the index of the node that does not fit in the toolbar and must be moved to the overflow menu. |
| private final double | |
| private double | |
| private void | |
| protected void | layoutChildren(final double
the x position x, final double the y position y, final double the width w, final double the height h)Overrides javafx. Called during the layout pass of the scenegraph. |
| private void | |
| protected Object | queryAccessibleAttribute(AccessibleAttribute
the requested attribute attribute, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| private final void | |
| private final void | |
| private double | |
| private final DoubleProperty |
| behavior | back to summary |
|---|---|
| private final BehaviorBase<ToolBar> behavior | |
| box | back to summary |
|---|---|
| private Pane box | |
| boxAlignment | back to summary |
|---|---|
| private ObjectProperty<Pos> boxAlignment | |
| engine | back to summary |
|---|---|
| private final ParentTraversalEngine engine | |
| itemsListener | back to summary |
|---|---|
| private ListChangeListener<Node> itemsListener | |
| needsUpdate | back to summary |
|---|---|
| private boolean needsUpdate | |
| overflow | back to summary |
|---|---|
| private boolean overflow | |
| overflowBox | back to summary |
|---|---|
| private Pane overflowBox The overflow logic needs properly calculated prefWidth(..)/prefHeight(..) values. These values are valid if the elements have been added to the scene and the CSS has been applied properly. To ensure this, we add the overflow items to this pane if they are not currently visible in the overflow menu. | |
| overflowMenu | back to summary |
|---|---|
| private ToolBarSkin. | |
| overflowNodeIndex | back to summary |
|---|---|
| private int overflowNodeIndex | |
| previousHeight | back to summary |
|---|---|
| private double previousHeight | |
| previousWidth | back to summary |
|---|---|
| private double previousWidth | |
| savedPrefHeight | back to summary |
|---|---|
| private double savedPrefHeight | |
| savedPrefWidth | back to summary |
|---|---|
| private double savedPrefWidth | |
| spacing | back to summary |
|---|---|
| private DoubleProperty spacing | |
| ToolBarSkin | back to summary |
|---|---|
| public ToolBarSkin(ToolBar control) Creates a new ToolBarSkin instance, installing the necessary child
nodes into the Control
| |
| addNodesToToolBar | back to summary |
|---|---|
| private void addNodesToToolBar() | |
| boxAlignmentProperty | back to summary |
|---|---|
| private final ObjectProperty | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable width of the Skin, based on the provided height.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| executeAccessibleAction | back to summary |
|---|---|
| protected void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| getBoxAlignment | back to summary |
|---|---|
| private final Pos getBoxAlignment() | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getOverflowNodeIndex | back to summary |
|---|---|
| private int getOverflowNodeIndex(double length) Calculate the index of the node that does not fit in the toolbar and must be moved to the overflow menu.
| |
| getSpacing | back to summary |
|---|---|
| private final double getSpacing() | |
| getToolbarLength | back to summary |
|---|---|
| private double getToolbarLength(ToolBar toolbar) | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| organizeOverflow | back to summary |
|---|---|
| private void organizeOverflow(double length) | |
| queryAccessibleAttribute | back to summary |
|---|---|
| protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| setBoxAlignment | back to summary |
|---|---|
| private final void setBoxAlignment(Pos value) | |
| setSpacing | back to summary |
|---|---|
| private final void setSpacing(double value) | |
| snapSpacing | back to summary |
|---|---|
| private double snapSpacing(double value) | |
| spacingProperty | back to summary |
|---|---|
| private final DoubleProperty spacingProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| ALIGNMENT | back to summary |
|---|---|
| private static final CssMetaData<ToolBar, Pos> ALIGNMENT | |
| SPACING | back to summary |
|---|---|
| private static final CssMetaData<ToolBar, Number> SPACING | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |
| Modifier and Type | Field and Description |
|---|---|
| private StackPane | |
| private ObservableList | |
| private ContextMenu |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computePrefHeight(double
the width that should be used if preferred height depends
on it width)Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends
on it height)Overrides javafx. Computes the preferred width of this region for the given height. |
| private List | |
| public void | executeAccessibleAction(AccessibleAction
the action to execute action, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| private void | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| downArrow | back to summary |
|---|---|
| private StackPane downArrow | |
| overflowItems | back to summary |
|---|---|
| private ObservableList<Node> overflowItems | |
| popup | back to summary |
|---|---|
| private ContextMenu popup | |
| ToolBarOverflowMenu | back to summary |
|---|---|
| public ToolBarOverflowMenu(ObservableList<Node> items) | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| createMenuItems | back to summary |
|---|---|
| private List | |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| fire | back to summary |
|---|---|
| private void fire() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |