public class CustomStage
extends javafx.stage.Stage
Modifier and Type | Method and Description |
---|---|
void |
changeScene(javafx.scene.layout.Pane pane)
Changes the current view of the Stage to the given view (pane)
|
void |
dynamicDrawerEvent(NavigationType type)
This method shall be called if a dynamic navigationPane is in use.
|
static SceneManager |
getDefaultSceneManager() |
void |
removeNavigationPane(NavigationType type)
Removes the pointed navigationPane from the window
|
void |
setNavigationPane(NavigationType type,
javafx.scene.layout.Pane navigationPane)
Sets a static navigation pane (right side of the window) attaching the pane given
|
void |
setStyleSheet(URL path)
Style the CustomStage as to the user given stylesheet
|
void |
setTitleColor(String color)
Changes the color of the color in title-bar
|
void |
setWindowColor(String color)
Changes the color of the window
|
void |
setWindowTitle(String title)
Sets the title of the title-bar
|
alwaysOnTopProperty, close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, impl_getMXWindowType, impl_setImportant, impl_setPrimary, impl_visibleChanged, impl_visibleChanging, initModality, initOwner, initStyle, isAlwaysOnTop, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setAlwaysOnTop, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getProperties, getScene, getUserData, getWidth, getX, getY, hasProperties, heightProperty, hide, impl_getPeer, impl_getWindows, isFocused, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setFocused, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setUserData, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
public void changeScene(javafx.scene.layout.Pane pane)
pane
- root pane of the loaded fxml viewpublic void setWindowTitle(String title)
title
- title for the windowpublic void setWindowColor(String color)
color
- name/hex/rgb/rgba value of the colorpublic void setTitleColor(String color)
color
- name/hex/rgb/rgba value of the colorpublic void setStyleSheet(URL path)
path
- URL of the stylesheetpublic void setNavigationPane(NavigationType type, javafx.scene.layout.Pane navigationPane)
type
- where the navigationPane should be placed on the window (LEFT/RIGHT/TOP/BOTTOM)navigationPane
- root pane of the navigation (fxml file)public void removeNavigationPane(NavigationType type)
type
- which navigationPane should be removed from the window (LEFT/RIGHT/TOP/BOTTOM)public void dynamicDrawerEvent(NavigationType type)
It is recommended to use this event especially if you're using NavigationType.TOP navigation, inorder to avoid the navigationPane from overlapping the title-bar on its drawer.hider() call.
type
- the navigationPane which the event should be triggered forpublic static SceneManager getDefaultSceneManager()
Copyright © 2018. All rights reserved.