TitledPane control.
TitledPane
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final TitledPaneBehavior | |
| private static final boolean | |
| private Rectangle | |
| private Node | |
| private final StackPane | |
| private Pos | |
| private double | |
| private Timeline | |
| private final TitledPaneSkin. | |
| private DoubleProperty | |
| private static final Duration | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | TitledPaneSkin(final TitledPane
The control that this skin should be installed onto. control)Creates a new TitledPaneSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv double | |
| protected double | computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Compute and return the minimum width of this Labeled. |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double 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. |
| private void | |
| pack-priv double | |
| pack-priv double | |
| private final double | |
| private boolean | |
| protected void | layoutChildren(final double x, double y, final double w, final double h)
Overrides javafx. The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text |
| pack-priv double | |
| pack-priv double | |
| private void | |
| pack-priv void | |
| private final void | |
| pack-priv double | |
| private final DoubleProperty | |
| protected void | updateChildren()
Overrides javafx. Updates the children managed by LabeledSkinBase, which can be the Labeled graphic and/or a Text node. |
| private void |
| behavior | back to summary |
|---|---|
| private final TitledPaneBehavior behavior | |
| CACHE_ANIMATION | back to summary |
|---|---|
| private static final boolean CACHE_ANIMATION | |
| clipRect | back to summary |
|---|---|
| private Rectangle clipRect | |
| content | back to summary |
|---|---|
| private Node content | |
| contentContainer | back to summary |
|---|---|
| private final StackPane contentContainer | |
| pos | back to summary |
|---|---|
| private Pos pos | |
| prefHeightFromAccordion | back to summary |
|---|---|
| private double prefHeightFromAccordion | |
| timeline | back to summary |
|---|---|
| private Timeline timeline | |
| titleRegion | back to summary |
|---|---|
| private final TitledPaneSkin. | |
| transition | back to summary |
|---|---|
| private DoubleProperty transition | |
| TRANSITION_DURATION | back to summary |
|---|---|
| private static final Duration TRANSITION_DURATION | |
| transitionStartValue | back to summary |
|---|---|
| private double transitionStartValue | |
| TitledPaneSkin | back to summary |
|---|---|
| public TitledPaneSkin(final TitledPane control) Creates a new TitledPaneSkin instance, installing the necessary child
nodes into the Control
| |
| bottomLabelPadding | back to summary |
|---|---|
| pack-priv double bottomLabelPadding() Overrides javafx.
| |
| 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. Compute and return the minimum width of this Labeled. The minimum width is the smaller of the width of "..." and the width with the actual text. In this way, if the text width itself is smaller than the ellipsis then we should use that as the min width, otherwise the ellipsis needs to be the min width. We use the same calculation here regardless of whether we are talking about a single or multiline labeled. So a multiline labeled may find that the width of the "..." is as small as it will ever get.
| |
| 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
| |
| doAnimationTransition | back to summary |
|---|---|
| private void doAnimationTransition() | |
| getTitledPaneHeightForAccordion | back to summary |
|---|---|
| pack-priv double getTitledPaneHeightForAccordion() | |
| getTitleRegionSize | back to summary |
|---|---|
| pack-priv double getTitleRegionSize(double width) | |
| getTransition | back to summary |
|---|---|
| private final double getTransition() | |
| isInsideAccordion | back to summary |
|---|---|
| private boolean isInsideAccordion() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, double y, final double w, final double h) Overrides javafx. Doc from javafx. The Layout algorithm works like this: - Get the labeled w/h, graphic w/h, text w/h - Compute content w/h based on graphicVPos, graphicHPos, graphicTextGap, and graphic w/h and text w/h - (Note that the text content has been pre-truncated where necessary) - compute content x/y based on content w/h and labeled w/h and the labeled's hpos and vpos - position the graphic and text
| |
| leftLabelPadding | back to summary |
|---|---|
| pack-priv double leftLabelPadding() Overrides javafx.
| |
| rightLabelPadding | back to summary |
|---|---|
| pack-priv double rightLabelPadding() Overrides javafx.
| |
| setExpanded | back to summary |
|---|---|
| private void setExpanded(boolean expanded) | |
| setMaxTitledPaneHeightForAccordion | back to summary |
|---|---|
| pack-priv void setMaxTitledPaneHeightForAccordion(double height) | |
| setTransition | back to summary |
|---|---|
| private final void setTransition(double value) | |
| topLabelPadding | back to summary |
|---|---|
| pack-priv double topLabelPadding() Overrides javafx.
| |
| transitionProperty | back to summary |
|---|---|
| private final DoubleProperty transitionProperty() | |
| updateChildren | back to summary |
|---|---|
| protected void updateChildren() Overrides javafx. Doc from javafx. Updates the children managed by LabeledSkinBase, which can be the Labeled graphic and/or a Text node. Only those nodes which actually must be used are used. For example, with a ContentDisplay of GRAPHIC_ONLY the text node is not added, and with a ContentDisplay of TEXT_ONLY, the graphic is not added.
| |
| updateClip | back to summary |
|---|---|
| private void updateClip() | |
| Modifier and Type | Field and Description |
|---|---|
| private final StackPane |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computePrefHeight(double 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 height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void |
| arrowRegion | back to summary |
|---|---|
| private final StackPane arrowRegion | |
| TitleRegion | back to summary |
|---|---|
| public TitleRegion() | |
| 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.
| |
| 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.
| |
| update | back to summary |
|---|---|
| private void update() | |