halignment and valignment
properties determine how the
separator is positioned in the other dimension, for example, how a horizontal
separator is positioned vertically within its allocated space.
The separator is horizontal (i.e. isVertical() == false) by default.
The style-class for this control is "separator".
The separator provides two pseudo-classes "horizontal" and "vertical" which are mutually exclusive. The "horizontal" pseudo-class applies if the separator is horizontal, and the "vertical" pseudo-class applies if the separator is vertical.
Separator sets focusTraversable to false.
Example:
Button b0 = new Button("Button 0");
Button b1 = new Button("Button 1");
Button b2 = new Button("Button 2");
Button b3 = new Button("Button 3");
Separator separator = new Separator(Orientation.HORIZONTAL);
VBox vBox = new VBox(b0, b1, separator, b2, b3);
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private ObjectProperty | halignment
For vertical separators, specifies the horizontal position of the separator line within the separator control's space. |
| private static final PseudoClass | |
| private ObjectProperty | orientation
The orientation of the |
| private ObjectProperty | valignment
For horizontal separators, specifies the vertical alignment of the separator line within the separator control's space. |
| private static final PseudoClass |
| Access | Constructor and Description |
|---|---|
| public | Separator()
Creates a new horizontal separator with halignment and valignment set to their respective CENTER values. |
| public | Separator(Orientation
Specifies whether the Separator instance is initially
vertical or horizontal. orientation)Creates a new separator with halignment and valignment set to their respective CENTER values. |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| protected List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final HPos | |
| protected Boolean | getInitialFocusTraversable()
Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. |
| public final Orientation | |
| public final VPos | |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| halignment | back to summary |
|---|---|
| private ObjectProperty<HPos> halignment For vertical separators, specifies the horizontal position of the separator line within the separator control's space. Ignored for horizontal separators. | |
| HORIZONTAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE | |
| orientation | back to summary |
|---|---|
| private ObjectProperty<Orientation> orientation The orientation of the | |
| valignment | back to summary |
|---|---|
| private ObjectProperty<VPos> valignment For horizontal separators, specifies the vertical alignment of the separator line within the separator control's space. Ignored for vertical separators. | |
| VERTICAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE | |
| Separator | back to summary |
|---|---|
| public Separator() Creates a new horizontal separator with halignment and valignment set to their respective CENTER values. | |
| Separator | back to summary |
|---|---|
| public Separator(Orientation orientation) Creates a new separator with halignment and valignment set to their respective CENTER values. The direction of the separator is specified by the vertical property.
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. 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 | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Gets the
| |
| getControlCssMetaData | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getHalignment | back to summary |
|---|---|
| public final HPos getHalignment() | |
| getInitialFocusTraversable | back to summary |
|---|---|
| protected Boolean getInitialFocusTraversable() Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden as by default UI controls have focus traversable set to true, but that is not appropriate for this control.
| |
| getOrientation | back to summary |
|---|---|
| public final Orientation getOrientation() | |
| getValignment | back to summary |
|---|---|
| public final VPos getValignment() | |
| halignmentProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| orientationProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| setHalignment | back to summary |
|---|---|
| public final void setHalignment(HPos value) | |
| setOrientation | back to summary |
|---|---|
| public final void setOrientation(Orientation value) | |
| setValignment | back to summary |
|---|---|
| public final void setValignment(VPos value) | |
| valignmentProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| HALIGNMENT | back to summary |
|---|---|
| private static final CssMetaData<Separator, HPos> HALIGNMENT | |
| ORIENTATION | back to summary |
|---|---|
| private static final CssMetaData<Separator, Orientation> ORIENTATION | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| VALIGNMENT | back to summary |
|---|---|
| private static final CssMetaData<Separator, VPos> VALIGNMENT | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |