- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.control.Control
-
- javafx.scene.control.Separator
-
- すべての実装されたインタフェース:
Styleable
,EventTarget
,Skinnable
public class Separator extends Control
水平または垂直のセパレータ線。 このセパレータの視覚的な外観は、CSSで制御できます。 水平セパレータは割り当てられた水平スペース全体を使用し(余白は減少)、垂直セパレータは割り当てられた垂直方向のスペース全体を使用します(余白は減少)。halignment
およびvalignment
プロパティによって、他方の次元におけるセパレータの位置が決まります。たとえば、割り当てられたスペース内における水平セパレータの垂直方向の位置が決まります。セパレータは、デフォルトでは水平(つまり、
isVertical() == false
)です。このコントロールのスタイル・クラスはseparatorです。
セパレータには、相互に排他的な2つの擬似クラスhorizontalおよびverticalがあります。 horizontal擬似クラスはセパレータが水平の場合に適用され、vertical擬似クラスはセパレータが垂直の場合に適用されます。
セパレータはfocusTraversableをfalseに設定します。
- 導入されたバージョン:
- JavaFX 2.0
-
-
プロパティのサマリー
プロパティ 型 プロパティ 説明 ObjectProperty<HPos>
halignment
垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。ObjectProperty<Orientation>
orientation
Separator
の向きに水平または垂直を指定できます。ObjectProperty<VPos>
valignment
水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。-
クラス javafx.scene.control.Controlで宣言されたプロパティ
contextMenu、skin、tooltip
-
クラス javafx.scene.Nodeで宣言されたプロパティ
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
クラス javafx.scene.Parentで宣言されたプロパティ
needsLayout
-
クラス javafx.scene.layout.Regionで宣言されたプロパティ
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
-
-
フィールドのサマリー
-
クラス javafx.scene.Nodeで宣言されたフィールド
BASELINE_OFFSET_SAME_AS_HEIGHT
-
クラス javafx.scene.layout.Regionで宣言されたフィールド
USE_COMPUTED_SIZE、USE_PREF_SIZE
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 Separator()
halignmentおよびvalignmentがそれぞれのCENTER値に設定された新規水平セパレータを作成します。Separator(Orientation orientation)
halignmentおよびvalignmentがそれぞれのCENTER値に設定された新規セパレータを作成します。
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 static List<CssMetaData<? extends Styleable,?>>
getClassCssMetaData()
protected List<CssMetaData<? extends Styleable,?>>
getControlCssMetaData()
HPos
getHalignment()
プロパティhalignmentの値を取得します。protected Boolean
getInitialFocusTraversable()
このコントロールの初期フォーカス・トラバーサブル状態を返します。これは、JavaFX CSSエンジンが初期値を正しく設定するために使用します。Orientation
getOrientation()
プロパティorientationの値を取得します。VPos
getValignment()
プロパティvalignmentの値を取得します。ObjectProperty<HPos>
halignmentProperty()
垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。ObjectProperty<Orientation>
orientationProperty()
Separator
の向きに水平または垂直を指定できます。void
setHalignment(HPos value)
プロパティhalignmentの値を設定します。void
setOrientation(Orientation value)
プロパティorientationの値を設定します。void
setValignment(VPos value)
プロパティvalignmentの値を設定します。ObjectProperty<VPos>
valignmentProperty()
水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。-
クラス javafx.scene.control.Controlで宣言されたメソッド
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, contextMenuProperty, createDefaultSkin, getContextMenu, getCssMetaData, getTooltip, isResizable, setContextMenu, setTooltip, skinProperty, tooltipProperty
-
クラス javafx.scene.Nodeで宣言されたメソッド
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookup, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, queryAccessibleAttribute, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
-
クラス javafx.scene.Parentで宣言されたメソッド
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
クラス javafx.scene.layout.Regionで宣言されたメソッド
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computePrefHeight, computePrefWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
-
インタフェース javafx.css.Styleableで宣言されたメソッド
getStyleableNode, getStyleClass
-
-
-
-
プロパティの詳細
-
orientation
public final ObjectProperty<Orientation> orientationProperty
Separator
の向きに水平または垂直を指定できます。
-
halignment
public final ObjectProperty<HPos> halignmentProperty
垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。 水平セパレータでは無視されます。
-
valignment
public final ObjectProperty<VPos> valignmentProperty
水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。 垂直セパレータでは無視されます。
-
-
コンストラクタの詳細
-
Separator
public Separator()
halignmentおよびvalignmentがそれぞれのCENTER値に設定された新規水平セパレータを作成します。
-
Separator
public Separator(Orientation orientation)
halignmentおよびvalignmentがそれぞれのCENTER値に設定された新規セパレータを作成します。 セパレータの方向は、verticalプロパティで指定します。- パラメータ:
orientation
- 初期状態のSeparatorインスタンスを垂直にするか、水平にするかを指定します。
-
-
メソッドの詳細
-
setOrientation
public final void setOrientation(Orientation value)
プロパティorientationの値を設定します。- プロパティの説明:
Separator
の向きに水平または垂直を指定できます。
-
getOrientation
public final Orientation getOrientation()
プロパティorientationの値を取得します。- プロパティの説明:
Separator
の向きに水平または垂直を指定できます。
-
orientationProperty
public final ObjectProperty<Orientation> orientationProperty()
Separator
の向きに水平または垂直を指定できます。
-
setHalignment
public final void setHalignment(HPos value)
プロパティhalignmentの値を設定します。- プロパティの説明:
- 垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。 水平セパレータでは無視されます。
-
getHalignment
public final HPos getHalignment()
プロパティhalignmentの値を取得します。- プロパティの説明:
- 垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。 水平セパレータでは無視されます。
-
halignmentProperty
public final ObjectProperty<HPos> halignmentProperty()
垂直セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の水平方向の位置を指定します。 水平セパレータでは無視されます。
-
setValignment
public final void setValignment(VPos value)
プロパティvalignmentの値を設定します。- プロパティの説明:
- 水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。 垂直セパレータでは無視されます。
-
getValignment
public final VPos getValignment()
プロパティvalignmentの値を取得します。- プロパティの説明:
- 水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。 垂直セパレータでは無視されます。
-
valignmentProperty
public final ObjectProperty<VPos> valignmentProperty()
水平セパレータの場合は、セパレータ・コントロールのスペース内のセパレータ線の垂直方向の位置を指定します。 垂直セパレータでは無視されます。
-
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
- 戻り値:
- このクラスに関連付けられたCssMetaData。スーパークラスのCssMetaDataを含むことがあります。
- 導入されたバージョン:
- JavaFX 8.0
-
getControlCssMetaData
protected List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
- オーバーライド:
getControlCssMetaData
、クラス:Control
- 戻り値:
- コントロールのCSSでスタイル設定可能なプロパティの変更不可能なリスト
- 導入されたバージョン:
- JavaFX 8.0
-
getInitialFocusTraversable
protected Boolean getInitialFocusTraversable()
このコントロールの初期フォーカス・トラバーサブル状態を返します。これは、JavaFX CSSエンジンが初期値を正しく設定するために使用します。 このメソッドはオーバーライドされます。既定のUIコントロールでは、フォーカス・トラバーサルがtrueに設定されていますが、このコントロールには適切ではありません。- オーバーライド:
- クラス
Control
のgetInitialFocusTraversable
- 戻り値:
- このコントロールの最初のフォーカス・トラバーサル状態
- 導入されたバージョン:
- 9
-
-