setDrawerContent(Node).
setAnimateDrawer(boolean))setPreferredDrawerWidth(double))setPreferencesKey(String))| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private VBox | |
| private final ObjectProperty | |
| private final DoubleProperty | |
| private final StringProperty | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private GlassPane | |
| private HBox | |
| private static final Logger | |
| private final DoubleProperty | |
| private final DoubleProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final StringProperty | |
| private final DoubleProperty | |
| private final BooleanProperty | |
| private final BooleanProperty | |
| private final DoubleProperty | |
| private double | |
| private Timeline | |
| private final ListProperty | |
| private final DoubleProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final BooleanProperty | Returns: true if the drawer will be animated (slide in / out)Determines whether the drawer will smoothly slide in / out when the user opens / closes it. |
| public final ObjectProperty | Returns: the animation durationThe duration it takes to show / hide the drawer. |
| public BooleanProperty | Returns: true if the drawer hides when user clicks on backgroundMakes the drawer close if the user clicks in the background (onto the glass pane). |
| private VBox | |
| private StackPane | |
| private String | |
| private Label | |
| private ToolBar | |
| public final ObjectProperty | |
| public final DoubleProperty | Returns: the drawer height (value between 0 and 1)Stores the current height of the drawer as a value between 0 (not showing) and 1 (using full height of stackpane). |
| public final ObjectProperty | Returns: an extra node that will be added to the title barAn extra node that will be added to the title bar. |
| public final StringProperty | |
| public final BooleanProperty | Returns: true if the glass pane will fade in / out smoothly when appearing / disappearingSpecifies whether the glass pane (used for blocking user input to nodes in the background) will use a fade transition when it becomes visible. |
| public final Duration | |
| public final Node | |
| public final double | |
| public final String | |
| public final Node | |
| public double | |
| public double | |
| public Runnable | |
| public final Runnable | |
| public final String | Returns: the preferences keyReturns the key that will be used when storing the last drawer height via the Java preferences API. |
| public final double | |
| public final double | |
| public final ObservableList | |
| public final double | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| private void | |
| private void | |
| public final boolean | |
| public boolean | |
| public final boolean | |
| public boolean | |
| public final boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private double | |
| public DoubleProperty | Returns: the maximum drawer height (value between 0 and 1)The maximum drawer height, a value between 0 and 1 with 1 meaning that the drawer can be as high as the stackpane. |
| public DoubleProperty | Returns: the minimum drawer height (value between 0 and 1)The minimum drawer height, a value between 0 and 1 with 0 meaning that the drawer can be made completely invisible. |
| public ObjectProperty | Returns: the callback for closing the drawerA callback that will be called when the user clicks on the close button or onto the glass pane. |
| public final ObjectProperty | Returns: a callback that will be invoked when the drawer gets closedA callback that will be invoked when the drawer gets closed. |
| private void | |
| public final StringProperty | Returns: the preferences key propertyStores the key used to store the drawer height via the preferences store. |
| public final DoubleProperty | Returns: the preferred drawer widthStores the preferred width of the drawer. |
| private void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public void | |
| public void | |
| public final void | |
| public final void | setPreferencesKey(String
the preferences key key)Sets the key that will be used when storing the last drawer height via the Java preferences API. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| private void | |
| public final BooleanProperty | Returns: true if the drawer should show itselfA flag used to control whether the drawer should show itself or not. |
| public final BooleanProperty | Returns: true if the drawer shows a titleA flag used to signal whether the drawer should have a title bar or not. |
| public final DoubleProperty | Returns: the padding used for the left and right side next to the drawerSpecifies a value used for padding to the left and the right of the drawer. |
| private void | |
| public final ListProperty | Returns: the toolbar items / toolbar buttonsThe list of items to display in the toolbar. |
| public final DoubleProperty | Returns: the padding used for the top of the drawerSpecifies a value used for padding at the top of the drawer. |
| animateDrawer | back to summary |
|---|---|
| private final BooleanProperty animateDrawer | |
| animationDuration | back to summary |
|---|---|
| private final ObjectProperty<Duration> animationDuration | |
| autoHide | back to summary |
|---|---|
| private final BooleanProperty autoHide | |
| drawer | back to summary |
|---|---|
| private VBox drawer | |
| drawerContent | back to summary |
|---|---|
| private final ObjectProperty<Node> drawerContent | |
| drawerHeight | back to summary |
|---|---|
| private final DoubleProperty drawerHeight | |
| drawerTitle | back to summary |
|---|---|
| private final StringProperty drawerTitle | |
| drawerTitleExtra | back to summary |
|---|---|
| private final ObjectProperty<Node> drawerTitleExtra | |
| fadeInOut | back to summary |
|---|---|
| private final BooleanProperty fadeInOut | |
| glassPane | back to summary |
|---|---|
| private GlassPane glassPane | |
| headerBox | back to summary |
|---|---|
| private HBox headerBox | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maxDrawerHeight | back to summary |
|---|---|
| private final DoubleProperty maxDrawerHeight | |
| minDrawerHeight | back to summary |
|---|---|
| private final DoubleProperty minDrawerHeight | |
| onCloseRequest | back to summary |
|---|---|
| private final ObjectProperty<Runnable> onCloseRequest | |
| onDrawerClose | back to summary |
|---|---|
| private final ObjectProperty<Runnable> onDrawerClose | |
| preferencesKey | back to summary |
|---|---|
| private final StringProperty preferencesKey | |
| preferredDrawerWidth | back to summary |
|---|---|
| private final DoubleProperty preferredDrawerWidth | |
| showDrawer | back to summary |
|---|---|
| private final BooleanProperty showDrawer | |
| showDrawerTitle | back to summary |
|---|---|
| private final BooleanProperty showDrawerTitle | |
| sidePadding | back to summary |
|---|---|
| private final DoubleProperty sidePadding | |
| startY | back to summary |
|---|---|
| private double startY | |
| timeline | back to summary |
|---|---|
| private Timeline timeline | |
| toolbarItems | back to summary |
|---|---|
| private final ListProperty<Node> toolbarItems | |
| topPadding | back to summary |
|---|---|
| private final DoubleProperty topPadding | |
| DrawerStackPane | back to summary |
|---|---|
| public DrawerStackPane(Node... nodes) Constructs a new drawer stack pane.
| |
| DrawerStackPane | back to summary |
|---|---|
| public DrawerStackPane() Constructs a new drawer stack pane. | |
| addExtra | back to summary |
|---|---|
| private void addExtra(HBox headerBox, Node oldExtra, Node newExtra) | |
| animateDrawerProperty | back to summary |
|---|---|
| public final BooleanProperty animateDrawerProperty() Determines whether the drawer will smoothly slide in / out when the user opens / closes it. If not then the drawer will just appear instantly.
| |
| animationDurationProperty | back to summary |
|---|---|
| public final ObjectProperty The duration it takes to show / hide the drawer.
| |
| autoHideProperty | back to summary |
|---|---|
| public BooleanProperty autoHideProperty() Makes the drawer close if the user clicks in the background (onto the glass pane).
| |
| createContainer | back to summary |
|---|---|
| private VBox createContainer() | |
| createDragHandle | back to summary |
|---|---|
| private StackPane createDragHandle() | |
| createPreferenceKey | back to summary |
|---|---|
| private String createPreferenceKey() | |
| createTitleLabel | back to summary |
|---|---|
| private Label createTitleLabel() | |
| createToolBar | back to summary |
|---|---|
| private ToolBar createToolBar() | |
| drawerContentProperty | back to summary |
|---|---|
| public final ObjectProperty Stores the content of the drawer.
| |
| drawerHeightProperty | back to summary |
|---|---|
| public final DoubleProperty drawerHeightProperty() Stores the current height of the drawer as a value between 0 (not showing) and 1 (using full height of stackpane).
| |
| drawerTitleExtraProperty | back to summary |
|---|---|
| public final ObjectProperty An extra node that will be added to the title bar.
| |
| drawerTitleProperty | back to summary |
|---|---|
| public final StringProperty drawerTitleProperty() The text shown as the title of the drawer.
| |
| fadeInOutProperty | back to summary |
|---|---|
| public final BooleanProperty fadeInOutProperty() Specifies whether the glass pane (used for blocking user input to nodes in the background) will use a fade transition when it becomes visible.
| |
| getAnimationDuration | back to summary |
|---|---|
| public final Duration getAnimationDuration() | |
| getDrawerContent | back to summary |
|---|---|
| public final Node getDrawerContent() | |
| getDrawerHeight | back to summary |
|---|---|
| public final double getDrawerHeight() | |
| getDrawerTitle | back to summary |
|---|---|
| public final String getDrawerTitle() | |
| getDrawerTitleExtra | back to summary |
|---|---|
| public final Node getDrawerTitleExtra() | |
| getMaxDrawerHeight | back to summary |
|---|---|
| public double getMaxDrawerHeight() | |
| getMinDrawerHeight | back to summary |
|---|---|
| public double getMinDrawerHeight() | |
| getOnCloseRequest | back to summary |
|---|---|
| public Runnable getOnCloseRequest() | |
| getOnDrawerClose | back to summary |
|---|---|
| public final Runnable getOnDrawerClose() | |
| getPreferencesKey | back to summary |
|---|---|
| public final String getPreferencesKey() Returns the key that will be used when storing the last drawer height via the Java preferences API.
| |
| getPreferredDrawerWidth | back to summary |
|---|---|
| public final double getPreferredDrawerWidth() | |
| getSidePadding | back to summary |
|---|---|
| public final double getSidePadding() | |
| getToolbarItems | back to summary |
|---|---|
| public final ObservableList | |
| getTopPadding | back to summary |
|---|---|
| public final double getTopPadding() | |
| 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.
| |
| hideDrawer | back to summary |
|---|---|
| private void hideDrawer() | |
| init | back to summary |
|---|---|
| private void init() | |
| isAnimateDrawer | back to summary |
|---|---|
| public final boolean isAnimateDrawer() | |
| isAutoHide | back to summary |
|---|---|
| public boolean isAutoHide() | |
| isFadeInOut | back to summary |
|---|---|
| public final boolean isFadeInOut() | |
| isShowDrawer | back to summary |
|---|---|
| public boolean isShowDrawer() | |
| isShowDrawerTitle | back to summary |
|---|---|
| public final boolean isShowDrawerTitle() | |
| 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.
| |
| loadDrawerHeightFromUserPreferences | back to summary |
|---|---|
| private double loadDrawerHeightFromUserPreferences() | |
| maxDrawerHeightProperty | back to summary |
|---|---|
| public DoubleProperty maxDrawerHeightProperty() The maximum drawer height, a value between 0 and 1 with 1 meaning that the drawer can be as high as the stackpane.
| |
| minDrawerHeightProperty | back to summary |
|---|---|
| public DoubleProperty minDrawerHeightProperty() The minimum drawer height, a value between 0 and 1 with 0 meaning that the drawer can be made completely invisible. Even with a value larger than 0 the drawer can be made to hide by the user by continuing to drag below the drawer.
| |
| onCloseRequestProperty | back to summary |
|---|---|
| public ObjectProperty A callback that will be called when the user clicks on the close button or onto the glass pane. The default
implementation of this callback will eventually call
| |
| onDrawerCloseProperty | back to summary |
|---|---|
| public final ObjectProperty A callback that will be invoked when the drawer gets closed.
| |
| postHiding | back to summary |
|---|---|
| private void postHiding() | |
| preferencesKeyProperty | back to summary |
|---|---|
| public final StringProperty preferencesKeyProperty() Stores the key used to store the drawer height via the preferences store.
| |
| preferredDrawerWidthProperty | back to summary |
|---|---|
| public final DoubleProperty preferredDrawerWidthProperty() Stores the preferred width of the drawer. Normally this value is equal to -1, which indicates that the
drawer should use the entire available width. A value larger than -1 will make the pane use that value
for the width of the drawer. A value of
| |
| saveDrawerHeightToUserPreferences | back to summary |
|---|---|
| private void saveDrawerHeightToUserPreferences() | |
| setAnimateDrawer | back to summary |
|---|---|
| public final void setAnimateDrawer(boolean animateDrawer) | |
| setAnimationDuration | back to summary |
|---|---|
| public final void setAnimationDuration(Duration animationDuration) | |
| setAutoHide | back to summary |
|---|---|
| public void setAutoHide(boolean autoHide) | |
| setDrawerContent | back to summary |
|---|---|
| public final void setDrawerContent(Node drawerContent) | |
| setDrawerHeight | back to summary |
|---|---|
| public final void setDrawerHeight(double drawerHeight) | |
| setDrawerTitle | back to summary |
|---|---|
| public void setDrawerTitle(String drawerTitle) | |
| setDrawerTitleExtra | back to summary |
|---|---|
| public final void setDrawerTitleExtra(Node drawerTitleExtra) | |
| setFadeInOut | back to summary |
|---|---|
| public final void setFadeInOut(boolean fadeInOut) | |
| setMaxDrawerHeight | back to summary |
|---|---|
| public void setMaxDrawerHeight(double maxDrawerHeight) | |
| setMinDrawerHeight | back to summary |
|---|---|
| public void setMinDrawerHeight(double minDrawerHeight) | |
| setOnCloseRequest | back to summary |
|---|---|
| public void setOnCloseRequest(Runnable onCloseRequest) | |
| setOnDrawerClose | back to summary |
|---|---|
| public final void setOnDrawerClose(Runnable onDrawerClose) | |
| setPreferencesKey | back to summary |
|---|---|
| public final void setPreferencesKey(String key) Sets the key that will be used when storing the last drawer height via the Java preferences API.
| |
| setPreferredDrawerWidth | back to summary |
|---|---|
| public final void setPreferredDrawerWidth(double preferredDrawerWidth) | |
| setShowDrawer | back to summary |
|---|---|
| public final void setShowDrawer(boolean showDrawer) | |
| setShowDrawerTitle | back to summary |
|---|---|
| public final void setShowDrawerTitle(boolean showDrawerTitle) | |
| setSidePadding | back to summary |
|---|---|
| public final void setSidePadding(double sidePadding) | |
| setToolbarItems | back to summary |
|---|---|
| public final void setToolbarItems(ObservableList<Node> items) | |
| setTopPadding | back to summary |
|---|---|
| public final void setTopPadding(double topPadding) | |
| showDrawer | back to summary |
|---|---|
| private void showDrawer() | |
| showDrawerProperty | back to summary |
|---|---|
| public final BooleanProperty showDrawerProperty() A flag used to control whether the drawer should show itself or not.
| |
| showDrawerTitleProperty | back to summary |
|---|---|
| public final BooleanProperty showDrawerTitleProperty() A flag used to signal whether the drawer should have a title bar or not.
| |
| sidePaddingProperty | back to summary |
|---|---|
| public final DoubleProperty sidePaddingProperty() Specifies a value used for padding to the left and the right of the drawer. This value will always be enforced, not matter what the preferred width of the drawer content is.
| |
| stopCurrentlyRunningTimeline | back to summary |
|---|---|
| private void stopCurrentlyRunningTimeline() | |
| toolbarItemsProperty | back to summary |
|---|---|
| public final ListProperty The list of items to display in the toolbar.
| |
| topPaddingProperty | back to summary |
|---|---|
| public final DoubleProperty topPaddingProperty() Specifies a value used for padding at the top of the drawer. This value will always be enforced,.
| |