public class Separator extends Control
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.
Type | Property and Description |
---|---|
<any> |
halignment
For vertical separators, specifies the horizontal position of the
separator line within the separator control's space.
|
<any> |
orientation
The orientation of the
Separator can either be horizontal
or vertical. |
<any> |
valignment
For horizontal separators, specifies the vertical alignment of the
separator line within the separator control's space.
|
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
Modifier and Type | Class and Description |
---|---|
private static class |
Separator.StyleableProperties |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_STYLE_CLASS
*
Stylesheet Handling *
*
|
private <any> |
halignment
For vertical separators, specifies the horizontal position of the
separator line within the separator control's space.
|
private static PseudoClass |
HORIZONTAL_PSEUDOCLASS_STATE |
private <any> |
orientation
The orientation of the
Separator can either be horizontal
or vertical. |
private <any> |
valignment
For horizontal separators, specifies the vertical alignment of the
separator line within the separator control's space.
|
private static PseudoClass |
VERTICAL_PSEUDOCLASS_STATE |
Constructor and Description |
---|
Separator()
Creates a new horizontal separator with halignment and valignment set to their
respective CENTER values.
|
Separator(Orientation orientation)
Creates a new separator with halignment and valignment set to their respective CENTER
values.
|
Modifier and Type | Method and Description |
---|---|
protected Skin<?> |
createDefaultSkin()
Create a new instance of the default skin for this control.
|
static java.util.List<<any>> |
getClassCssMetaData() |
protected java.util.List<<any>> |
getControlCssMetaData() |
HPos |
getHalignment()
Gets the value of the property halignment.
|
protected java.lang.Boolean |
getInitialFocusTraversable()
Returns the initial focus traversable state of this control, for use
by the JavaFX CSS engine to correctly set its initial value.
|
Orientation |
getOrientation()
Gets the value of the property orientation.
|
VPos |
getValignment()
Gets the value of the property valignment.
|
<any> |
halignmentProperty()
For vertical separators, specifies the horizontal position of the
separator line within the separator control's space.
|
<any> |
orientationProperty()
The orientation of the
Separator can either be horizontal
or vertical. |
void |
setHalignment(HPos value)
Sets the value of the property halignment.
|
void |
setOrientation(Orientation value)
Sets the value of the property orientation.
|
void |
setValignment(VPos value)
Sets the value of the property valignment.
|
<any> |
valignmentProperty()
For horizontal separators, specifies the vertical alignment of the
separator line within the separator control's space.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getControlChildren, getCssMetaData, getSkin, getTooltip, isResizable, layoutChildren, loadSkinClass, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
public final <any> orientationProperty
Separator
can either be horizontal
or vertical.getOrientation()
,
setOrientation(Orientation)
public final <any> halignmentProperty
getHalignment()
,
setHalignment(HPos)
public final <any> valignmentProperty
getValignment()
,
setValignment(VPos)
private <any> orientation
Separator
can either be horizontal
or vertical.private <any> halignment
private <any> valignment
private static final java.lang.String DEFAULT_STYLE_CLASS
private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE
private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE
public Separator()
public Separator(Orientation orientation)
orientation
- Specifies whether the Separator instance is initially
vertical or horizontal.public final void setOrientation(Orientation value)
public final Orientation getOrientation()
public final <any> orientationProperty()
Separator
can either be horizontal
or vertical.getOrientation()
,
setOrientation(Orientation)
public final void setHalignment(HPos value)
public final HPos getHalignment()
public final <any> halignmentProperty()
getHalignment()
,
setHalignment(HPos)
public final void setValignment(VPos value)
public final VPos getValignment()
public final <any> valignmentProperty()
getValignment()
,
setValignment(VPos)
protected Skin<?> createDefaultSkin()
-fx-skin
or set explicitly in a sub-class with setSkin(...)
.createDefaultSkin
in class Control
public static java.util.List<<any>> getClassCssMetaData()
protected java.util.List<<any>> getControlCssMetaData()
getControlCssMetaData
in class Control
protected java.lang.Boolean getInitialFocusTraversable()
getInitialFocusTraversable
in class Control