Package org.apache.pivot.wtk
Interface WindowListener
-
- All Known Implementing Classes:
ColorChooserButtonSkin.ColorChooserPopupSkin
,TerraAlertSkin
,TerraDialogSkin
,TerraFileBrowserSheetSkin
,TerraFrameSkin
,TerraMenuPopupSkin
,TerraPaletteSkin
,TerraPromptSkin
,TerraSheetSkin
,TerraSuggestionPopupSkin
,TerraTooltipSkin
,TerraVFSBrowserSheetSkin
,WindowListener.Adapter
,WindowListener.Listeners
,WindowSkin
public interface WindowListener
Window listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WindowListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
WindowListener.Listeners
Window listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
activeChanged(Window window, Window obverseWindow)
Called when a window's active state has changed.default void
contentChanged(Window window, Component previousContent)
Called when a window's content component has changed.default void
iconAdded(Window window, Image addedIcon)
Called when an icon has been added to a window.default void
iconInserted(Window window, Image addedIcon, int index)
Called when a window has had an icon inserted.default void
iconsRemoved(Window window, int index, Sequence<Image> removed)
Called when one or more of the window's icons were removed.default void
maximizedChanged(Window window)
Called when a window's maximized state has changed.default void
titleChanged(Window window, java.lang.String previousTitle)
Called when a window's title has changed.
-
-
-
Method Detail
-
titleChanged
default void titleChanged(Window window, java.lang.String previousTitle)
Called when a window's title has changed.- Parameters:
window
- The window whose title has changed.previousTitle
- What the title was previously (can benull
).
-
iconAdded
default void iconAdded(Window window, Image addedIcon)
Called when an icon has been added to a window.- Parameters:
window
- The window that has changed.addedIcon
- The icon that was added.
-
iconInserted
default void iconInserted(Window window, Image addedIcon, int index)
Called when a window has had an icon inserted.- Parameters:
window
- The window that has changed.addedIcon
- The newly added icon.index
- The index where this icon was inserted in the window's icon sequence..
-
iconsRemoved
default void iconsRemoved(Window window, int index, Sequence<Image> removed)
Called when one or more of the window's icons were removed.- Parameters:
window
- The window that has changed.index
- Starting index of the icons that were removed in the window's icon sequence.removed
- The sequence of icons that were actually removed.
-
contentChanged
default void contentChanged(Window window, Component previousContent)
Called when a window's content component has changed.- Parameters:
window
- The window whose content has changed.previousContent
- What the window's content was previously.
-
activeChanged
default void activeChanged(Window window, Window obverseWindow)
Called when a window's active state has changed.- Parameters:
window
- The window that has changed its active state.obverseWindow
- The "other" window that is affected.
-
maximizedChanged
default void maximizedChanged(Window window)
Called when a window's maximized state has changed.- Parameters:
window
- The window whose state has changed.
-
-