public class CustomStageController
extends java.lang.Object
implements javafx.fxml.Initializable
Modifier and Type | Class and Description |
---|---|
static class |
CustomStageController.StageComponent |
Constructor and Description |
---|
CustomStageController() |
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 |
initialize(java.net.URL location,
java.util.ResourceBundle resources) |
void |
removeNavigationPane()
Deprecated.
use removeNavigationPane(NavigationType type) method instead
Removes the left navigation pane of the window
|
void |
removeNavigationPane(NavigationType type)
Removes the pointed navigationPane from the window
|
void |
setActionAdapter(ActionAdapter actionAdapter) |
void |
setActionIcons(javafx.scene.image.Image close,
javafx.scene.image.Image minimize,
javafx.scene.image.Image maximize,
javafx.scene.image.Image restore)
Changes the default icons for the action buttons on Title-bar
|
void |
setNavigationPane(NavigationType type,
javafx.scene.layout.Pane navigationPane)
Sets a static navigation pane (right side of the window) attaching the pane given
|
void |
setStyle(CustomStageController.StageComponent component,
java.lang.String color)
Changes the color of the given component of the window
|
void |
setStyleSheet(java.net.URL path)
Style the CustomStage as to the user given stylesheet
|
void |
setTitle(java.lang.String title)
Sets the title of the title-bar
|
public void setStyle(CustomStageController.StageComponent component, java.lang.String color)
component
- the window component to be styledcolor
- name/hex/rgb/rgba value of the colorpublic void setTitle(java.lang.String title)
title
- title for the windowpublic void setActionAdapter(ActionAdapter actionAdapter)
actionAdapter
- ActionAdapter object to control close,maximize/restore,minimize actionspublic void changeScene(javafx.scene.layout.Pane pane)
pane
- root pane of the loaded fxml viewpublic void setStyleSheet(java.net.URL path)
path
- URL of the stylesheetpublic void removeNavigationPane()
public void removeNavigationPane(NavigationType type)
type
- which navigationPane should be removed from the window (LEFT/RIGHT/TOP/BOTTOM)public void setActionIcons(@Nullable javafx.scene.image.Image close, @Nullable javafx.scene.image.Image minimize, @Nullable javafx.scene.image.Image maximize, @Nullable javafx.scene.image.Image restore)
close
- Icon for close buttonminimize
- Icon for minimize buttonmaximize
- Window maximize (maximize button) iconrestore
- Window restore (maximize button) iconpublic 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 initialize(java.net.URL location, java.util.ResourceBundle resources)
initialize
in interface javafx.fxml.Initializable