Class Window
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
jfxtras.scene.control.window.Window
- All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable, SelectableNode
Window control. A window control is a window node as known from Swing, e.g
javax.swing.JInternalFrame. It can be used to realize MDI based
applications. See
https://github.com/miho/VFXWindows-Samples for sample code.
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<javafx.animation.Transition> Returns the "close-transition" property.javafx.beans.property.Property<javafx.scene.layout.Pane> Content pane property.javafx.beans.property.BooleanPropertyReturns the minimize property.javafx.beans.property.BooleanPropertyReturns the movable property.javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> Returns the "on-close-action" property.javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> Returns the "on-closed-action" property.javafx.beans.property.DoublePropertyReturns the resizable border width property.javafx.beans.property.BooleanPropertyReturns the resize property.javafx.beans.property.BooleanPropertyjavafx.beans.property.ReadOnlyBooleanPropertyjavafx.beans.property.StringPropertyReturns the titlebar style class property.final javafx.beans.property.StringPropertyReturns the window title property.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javafx.beans.property.ObjectProperty<javafx.animation.Transition> defines the transition that shall be played when closing the window.private final javafx.beans.property.Property<javafx.scene.layout.Pane> Content pane property.static final StringDefault css style.static final StringDefault style class for css.private final javafx.collections.ObservableList<WindowIcon> List of icons shown on the left.private final javafx.beans.property.BooleanPropertyMinimize property (defines whether to minimize the window,performed by skin)private final javafx.beans.property.BooleanPropertyResize property (defines whether is the window movable,performed by skin)private booleanDefines whether window is moved to front when user clicks on itprivate final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> defines the action that shall be performed before the window is closed.private final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> defines the action that shall be performed after the window has been closed.private final javafx.beans.property.DoublePropertyDefines the width of the border /area where the user can grab the window and resize it.private final javafx.beans.property.BooleanPropertyResize property (defines whether is the window resizeable,performed by skin)private final javafx.collections.ObservableList<WindowIcon> List of icons shown on the right.private final javafx.beans.property.BooleanPropertySelectable property (defines whether this window is selectable.private final javafx.beans.property.BooleanPropertySelected property (defines whether this window is selected.private final javafx.beans.property.StringPropertyDefines the titlebar class name.private final javafx.beans.property.StringPropertyWindow title property (used by titlebar)Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this window.javafx.beans.property.ObjectProperty<javafx.animation.Transition> Returns the "close-transition" property.javafx.beans.property.Property<javafx.scene.layout.Pane> Content pane property.javafx.animation.TransitionReturns the transition that shall be used to indicate window closing.javafx.scene.layout.Panejavafx.collections.ObservableList<WindowIcon> Returns a list that contains the icons that are placed on the left side of the titlebar.javafx.event.EventHandler<javafx.event.ActionEvent> Returns the action that shall be performed before the window will be closed.javafx.event.EventHandler<javafx.event.ActionEvent> Returns the action that shall be performed after the window has been closed.doubleReturns the width of the "resizable border" of the window.javafx.collections.ObservableList<WindowIcon> Returns a list that contains the icons that are placed on the right side of the titlebar.final StringgetTitle()Returns the window title.Returns the CSS style class of the titlebar.private voidinit()booleanIndicates whether the window is currently minimized.booleanIndicates whether the window is movable.booleanIndicates whether the window shall be moved to front when a user clicks on the window.booleanIndicates whether the window is resizeable by the user.booleanGets the value of theselectableproperty.booleanjavafx.beans.property.BooleanPropertyReturns the minimize property.javafx.beans.property.BooleanPropertyReturns the movable property.javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> Returns the "on-close-action" property.javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> Returns the "on-closed-action" property.booleanrequestSelection(boolean select) Requests selection/deselection.javafx.beans.property.DoublePropertyReturns the resizable border width property.javafx.beans.property.BooleanPropertyReturns the resize property.javafx.beans.property.BooleanPropertyjavafx.beans.property.ReadOnlyBooleanPropertyvoidsetCloseTransition(javafx.animation.Transition t) Defines the transition that shall be used to indicate window closing.voidsetContentPane(javafx.scene.layout.Pane contentPane) Defines the content pane of this window.voidsetMinimized(boolean v) Defines whether this window shall be minimized.voidsetMovable(boolean v) Defines whether this window shall be movable.voidsetMoveToFront(boolean moveToFront) Defines whether this window shall be moved to front when a user clicks on the window.voidsetOnCloseAction(javafx.event.EventHandler<javafx.event.ActionEvent> onClosedAction) Defines the action that shall be performed before the window will be closed.voidsetOnClosedAction(javafx.event.EventHandler<javafx.event.ActionEvent> onClosedAction) Defines the action that shall be performed after the window has been closed.voidsetResizableBorderWidth(double v) Defines the width of the "resizable border" of the window.voidsetResizableWindow(boolean v) Defines whether this window shall be resizeable by the user.voidsetSelectable(Boolean selectable) Sets the value of theselectableproperty.final voidDefines the window title.voidsetTitleBarStyleClass(String name) Defines the CSS style class of the titlebar.javafx.beans.property.StringPropertyReturns the titlebar style class property.final javafx.beans.property.StringPropertyReturns the window title property.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class 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, 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, getStyleClass, 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, 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, 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, visiblePropertyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
contentPane
public javafx.beans.property.Property<javafx.scene.layout.Pane> contentPanePropertyContent pane property.- See Also:
-
title
public final javafx.beans.property.StringProperty titlePropertyReturns the window title property.- See Also:
-
minimized
public javafx.beans.property.BooleanProperty minimizedPropertyReturns the minimize property.- See Also:
-
resizeableWindow
public javafx.beans.property.BooleanProperty resizeableWindowPropertyReturns the resize property.- See Also:
-
movable
public javafx.beans.property.BooleanProperty movablePropertyReturns the movable property.- See Also:
-
titleBarStyleClass
public javafx.beans.property.StringProperty titleBarStyleClassPropertyReturns the titlebar style class property.- See Also:
-
resizableBorderWidth
public javafx.beans.property.DoubleProperty resizableBorderWidthPropertyReturns the resizable border width property.- See Also:
-
onClosedAction
public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onClosedActionPropertyReturns the "on-closed-action" property.- See Also:
-
onCloseAction
public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onCloseActionPropertyReturns the "on-close-action" property.- See Also:
-
closeTransition
public javafx.beans.property.ObjectProperty<javafx.animation.Transition> closeTransitionPropertyReturns the "close-transition" property.- See Also:
-
selectable
public javafx.beans.property.BooleanProperty selectableProperty- See Also:
-
selected
public javafx.beans.property.ReadOnlyBooleanProperty selectedProperty- See Also:
-
-
Field Details
-
DEFAULT_STYLE
-
DEFAULT_STYLE_CLASS
-
moveToFront
private boolean moveToFrontDefines whether window is moved to front when user clicks on it -
titleProperty
private final javafx.beans.property.StringProperty titlePropertyWindow title property (used by titlebar) -
minimizeProperty
private final javafx.beans.property.BooleanProperty minimizePropertyMinimize property (defines whether to minimize the window,performed by skin) -
resizableProperty
private final javafx.beans.property.BooleanProperty resizablePropertyResize property (defines whether is the window resizeable,performed by skin) -
movableProperty
private final javafx.beans.property.BooleanProperty movablePropertyResize property (defines whether is the window movable,performed by skin) -
contentPaneProperty
private final javafx.beans.property.Property<javafx.scene.layout.Pane> contentPanePropertyContent pane property. The content pane is the pane that is responsible for showing user defined nodes/content. -
leftIcons
List of icons shown on the left. TODO replace left/right with more generic position property? -
rightIcons
List of icons shown on the right. TODO replace left/right with more generic position property? -
resizableBorderWidthProperty
private final javafx.beans.property.DoubleProperty resizableBorderWidthPropertyDefines the width of the border /area where the user can grab the window and resize it. -
titleBarStyleClassProperty
private final javafx.beans.property.StringProperty titleBarStyleClassPropertyDefines the titlebar class name. This can be used to define css properties specifically for the titlebar, e.g., background. -
onCloseActionProperty
private final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onCloseActionPropertydefines the action that shall be performed before the window is closed. -
onClosedActionProperty
private final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onClosedActionPropertydefines the action that shall be performed after the window has been closed. -
closeTransitionProperty
private final javafx.beans.property.ObjectProperty<javafx.animation.Transition> closeTransitionPropertydefines the transition that shall be played when closing the window. -
selectedProperty
private final javafx.beans.property.BooleanProperty selectedPropertySelected property (defines whether this window is selected. -
selectableProperty
private final javafx.beans.property.BooleanProperty selectablePropertySelectable property (defines whether this window is selectable.
-
-
Constructor Details
-
Window
public Window()Constructor. -
Window
-
-
Method Details
-
init
private void init() -
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheetin classjavafx.scene.layout.Region
-
getContentPane
public javafx.scene.layout.Pane getContentPane()- Returns:
- the content pane of this window
-
setContentPane
public void setContentPane(javafx.scene.layout.Pane contentPane) Defines the content pane of this window.- Parameters:
contentPane- content pane to set
-
contentPaneProperty
public javafx.beans.property.Property<javafx.scene.layout.Pane> contentPaneProperty()Content pane property.- Returns:
- content pane property
- See Also:
-
setMoveToFront
public void setMoveToFront(boolean moveToFront) Defines whether this window shall be moved to front when a user clicks on the window.- Parameters:
moveToFront- the state to set
-
isMoveToFront
public boolean isMoveToFront()Indicates whether the window shall be moved to front when a user clicks on the window.- Returns:
trueif the window shall be moved to front when a user clicks on the window;falseotherwise
-
getTitle
-
setTitle
Defines the window title.- Parameters:
title- the title to set
-
titleProperty
public final javafx.beans.property.StringProperty titleProperty()Returns the window title property.- Returns:
- the window title property
- See Also:
-
getLeftIcons
Returns a list that contains the icons that are placed on the left side of the titlebar. Add icons to the list to add them to the left side of the window titlebar.- Returns:
- a list containing the left icons
- See Also:
-
getRightIcons
Returns a list that contains the icons that are placed on the right side of the titlebar. Add icons to the list to add them to the right side of the window titlebar.- Returns:
- a list containing the right icons
- See Also:
-
setMinimized
public void setMinimized(boolean v) Defines whether this window shall be minimized.- Parameters:
v- the state to set
-
isMinimized
public boolean isMinimized()Indicates whether the window is currently minimized.- Returns:
trueif the window is currently minimized;falseotherwise
-
minimizedProperty
public javafx.beans.property.BooleanProperty minimizedProperty()Returns the minimize property.- Returns:
- the minimize property
- See Also:
-
setResizableWindow
public void setResizableWindow(boolean v) Defines whether this window shall be resizeable by the user.- Parameters:
v- the state to set
-
isResizableWindow
public boolean isResizableWindow()Indicates whether the window is resizeable by the user.- Returns:
trueif the window is resizeable;falseotherwise
-
resizeableWindowProperty
public javafx.beans.property.BooleanProperty resizeableWindowProperty()Returns the resize property.- Returns:
- the minimize property
-
setMovable
public void setMovable(boolean v) Defines whether this window shall be movable.- Parameters:
v- the state to set
-
isMovable
public boolean isMovable()Indicates whether the window is movable.- Returns:
trueif the window is movable;falseotherwise
-
movableProperty
public javafx.beans.property.BooleanProperty movableProperty()Returns the movable property.- Returns:
- the minimize property
- See Also:
-
titleBarStyleClassProperty
public javafx.beans.property.StringProperty titleBarStyleClassProperty()Returns the titlebar style class property.- Returns:
- the titlebar style class property
- See Also:
-
setTitleBarStyleClass
Defines the CSS style class of the titlebar.- Parameters:
name- the CSS style class name
-
getTitleBarStyleClass
Returns the CSS style class of the titlebar.- Returns:
- the CSS style class of the titlebar
-
resizableBorderWidthProperty
public javafx.beans.property.DoubleProperty resizableBorderWidthProperty()Returns the resizable border width property.- Returns:
- the resizable border width property
- See Also:
-
setResizableBorderWidth
public void setResizableBorderWidth(double v) Defines the width of the "resizable border" of the window. The resizable border is usually defined as a rectangular border around the layout bounds of the window where the mouse cursor changes to "resizable" and which allows to resize the window by performing a "dragging gesture", i.e., the user can "grab" the window border and change the size of the window.- Parameters:
v- border width
-
getResizableBorderWidth
public double getResizableBorderWidth()Returns the width of the "resizable border" of the window.- Returns:
- the width of the "resizable border" of the window
- See Also:
-
close
public void close()Closes this window. -
onClosedActionProperty
public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onClosedActionProperty()Returns the "on-closed-action" property.- Returns:
- the "on-closed-action" property.
- See Also:
-
setOnClosedAction
public void setOnClosedAction(javafx.event.EventHandler<javafx.event.ActionEvent> onClosedAction) Defines the action that shall be performed after the window has been closed.- Parameters:
onClosedAction- the action to set
-
getOnClosedAction
public javafx.event.EventHandler<javafx.event.ActionEvent> getOnClosedAction()Returns the action that shall be performed after the window has been closed.- Returns:
- the action that shall be performed after the window has been
closed or
nullif no such action has been defined
-
onCloseActionProperty
public javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.ActionEvent>> onCloseActionProperty()Returns the "on-close-action" property.- Returns:
- the "on-close-action" property.
- See Also:
-
setOnCloseAction
public void setOnCloseAction(javafx.event.EventHandler<javafx.event.ActionEvent> onClosedAction) Defines the action that shall be performed before the window will be closed.- Parameters:
onClosedAction- the action to set
-
getOnCloseAction
public javafx.event.EventHandler<javafx.event.ActionEvent> getOnCloseAction()Returns the action that shall be performed before the window will be closed.- Returns:
- the action that shall be performed before the window will be
closed or
nullif no such action has been defined
-
closeTransitionProperty
public javafx.beans.property.ObjectProperty<javafx.animation.Transition> closeTransitionProperty()Returns the "close-transition" property.- Returns:
- the "close-transition" property.
- See Also:
-
setCloseTransition
public void setCloseTransition(javafx.animation.Transition t) Defines the transition that shall be used to indicate window closing.- Parameters:
t- the transition that shall be used to indicate window closing ornullif no transition shall be used.
-
getCloseTransition
public javafx.animation.Transition getCloseTransition()Returns the transition that shall be used to indicate window closing.- Returns:
- the transition that shall be used to indicate window closing or
nullif no such transition has been defined
-
requestSelection
public boolean requestSelection(boolean select) Description copied from interface:SelectableNodeRequests selection/deselection.- Specified by:
requestSelectionin interfaceSelectableNode- Parameters:
select- defines whether to select or deselect the node- Returns:
trueif request is accepted;falseotherwise
-
selectableProperty
public javafx.beans.property.BooleanProperty selectableProperty()- Returns:
- the selectableProperty
- See Also:
-
setSelectable
Sets the value of theselectableproperty.- Property description:
- Parameters:
selectable- the value for theselectableproperty- See Also:
-
isSelectable
public boolean isSelectable()Gets the value of theselectableproperty.- Property description:
- Returns:
- the value of the
selectableproperty - See Also:
-
selectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty selectedProperty()- Returns:
- the selectedProperty
- See Also:
-
isSelected
public boolean isSelected()- Returns:
trueif the window is selected;falseotherwise
-