| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final ObjectProperty | |
| private static final Orientation | |
| private final DoubleProperty | |
| private ObjectProperty | |
| private static final PseudoClass | |
| private static final PseudoClass |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BeforeAfterView(Node
the node showing the "before" state beforeNode, Node the node showing the "after" state afterNode)Constructs a new view with the given before and after nodes. |
| public | BeforeAfterView(Image
a "before" image that will be wrapped in an image view beforeImage, Image an "after" image that will be wrapped in an image view afterImage)Constructs a new view with the given before and after images. |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the node used to visualize "after"Stores the node used for displaying the "after" state. |
| public final ObjectProperty | Returns: the node used to visualize "before"Stores the node used for displaying the "before" state. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final DoubleProperty | Returns: the divider positionStores the position of the divider within the value range of zero to 1. |
| public final Node | |
| public final Node | |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| public List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final double | |
| public final Orientation | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final ObjectProperty | Returns: the orientation propertySets the orientation of the before / after view. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| private void |
| after | back to summary |
|---|---|
| private final ObjectProperty<Node> after | |
| before | back to summary |
|---|---|
| private final ObjectProperty<Node> before | |
| DEFAULT_ORIENTATION | back to summary |
|---|---|
| private static final Orientation DEFAULT_ORIENTATION | |
| dividerPosition | back to summary |
|---|---|
| private final DoubleProperty dividerPosition | |
| orientation | back to summary |
|---|---|
| private ObjectProperty<Orientation> orientation | |
| PSEUDO_CLASS_HORIZONTAL | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_HORIZONTAL | |
| PSEUDO_CLASS_VERTICAL | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_VERTICAL | |
| BeforeAfterView | back to summary |
|---|---|
| public BeforeAfterView() Constructs a new view. the two nodes have to be set or bound later.
| |
| BeforeAfterView | back to summary |
|---|---|
| public BeforeAfterView(Node beforeNode, Node afterNode) Constructs a new view with the given before and after nodes. | |
| BeforeAfterView | back to summary |
|---|---|
| public BeforeAfterView(Image beforeImage, Image afterImage) Constructs a new view with the given before and after images. | |
| afterProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the node used for displaying the "after" state.
| |
| beforeProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the node used for displaying the "before" state.
| |
| 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
| |
| dividerPositionProperty | back to summary |
|---|---|
| public final DoubleProperty dividerPositionProperty() Stores the position of the divider within the value range of zero to 1.
| |
| getAfter | back to summary |
|---|---|
| public final Node getAfter() | |
| getBefore | back to summary |
|---|---|
| public final Node getBefore() | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getControlCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getDividerPosition | back to summary |
|---|---|
| public final double getDividerPosition() | |
| getOrientation | back to summary |
|---|---|
| public final Orientation getOrientation() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| orientationProperty | back to summary |
|---|---|
| public final ObjectProperty Sets the orientation of the before / after view.
Default value is
| |
| setAfter | back to summary |
|---|---|
| public final void setAfter(Node after) | |
| setBefore | back to summary |
|---|---|
| public final void setBefore(Node before) | |
| setDividerPosition | back to summary |
|---|---|
| public final void setDividerPosition(double dividerPosition) | |
| setOrientation | back to summary |
|---|---|
| public final void setOrientation(Orientation orientation) | |
| updatePseudoClass | back to summary |
|---|---|
| private void updatePseudoClass() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| ORIENTATION | back to summary |
|---|---|
| private static final CssMetaData<BeforeAfterView, Orientation> ORIENTATION | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |