Package com.sun.javafx.tk
Interface TKStageListener
- All Known Implementing Classes:
PopupWindowPeerListener,StagePeerListener,WindowPeerListener
public interface TKStageListener
TKStageListener - Listener for the Stage Peer TKStage to pass updates and events back to the stage
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangedAlwaysOnTop(boolean alwaysOnTop) The stages peer has changed it's "always on top" flag.voidchangedFocused(boolean focused, FocusCause cause) The stages peer focused state has changed.voidchangedFullscreen(boolean fs) The stages peer has changed its full screen statusvoidchangedIconified(boolean iconified) The stages peer has become iconified or uniconifiedvoidchangedLocation(float x, float y) The stages peer's location have changed so we need to update the scenevoidchangedMaximized(boolean maximized) The stages peer has become maximized or unmaximizedvoidchangedResizable(boolean resizable) The stages peer has become resizable or nonresizablevoidchangedScreen(Object from, Object to) The stage's peer has moved to another screen.voidchangedSize(float width, float height) The stages peer's size have changed so we need to update the scenevoidclosed()Called if the stages peer has closed.voidclosing()Called if the window is closing do to something that has happened on the peer.voidFocus grab has been reset for the stage peer.
-
Method Details
-
changedLocation
void changedLocation(float x, float y) The stages peer's location have changed so we need to update the scene- Parameters:
x- the new Xy- The new Y
-
changedSize
void changedSize(float width, float height) The stages peer's size have changed so we need to update the scene- Parameters:
width- The new Widthheight- The new Height
-
changedFocused
The stages peer focused state has changed.- Parameters:
focused- True if the stage's peer now contains the focuscause- The cause of (de)activation
-
changedIconified
void changedIconified(boolean iconified) The stages peer has become iconified or uniconified- Parameters:
iconified- True if the stage's peer is now iconified
-
changedMaximized
void changedMaximized(boolean maximized) The stages peer has become maximized or unmaximized- Parameters:
maximized- True if the stage's peer is now maximized
-
changedAlwaysOnTop
void changedAlwaysOnTop(boolean alwaysOnTop) The stages peer has changed it's "always on top" flag.- Parameters:
alwaysOnTop-
-
changedResizable
void changedResizable(boolean resizable) The stages peer has become resizable or nonresizable- Parameters:
resizable- True if the stage's peer is now resizable
-
changedFullscreen
void changedFullscreen(boolean fs) The stages peer has changed its full screen status- Parameters:
fs- True if the stage's peer is now full screen, false otherwise
-
changedScreen
The stage's peer has moved to another screen.- Parameters:
from- An object that identifies the old screen (may be null)to- An object that identifies the new screen
-
closing
void closing()Called if the window is closing do to something that has happened on the peer. For example the user clicking the close button or choosing quit from the application menu on a mac or right click close on the task bar on windows. -
closed
void closed()Called if the stages peer has closed. For example the platform closes the window after user has clicked the close button on its parent window. -
focusUngrab
void focusUngrab()Focus grab has been reset for the stage peer. Called after a previous call towhen the grab is reset either by user action (e.g. clicking the titlebar of the stage), or via a call toinvalid @link
TKStage#grabFocus.invalid @link
TKStage#ungrabFocus
-