public interface SwingWindow extends Window
Definition of an extended window interface implemented by Swing window implementations.
This interface has the purpose to simplify implementations of Swing based windows and support testing. It is used internally in this package.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Closes this window and frees all its resources.
|
Component |
getComponent()
Returns the Swing component that represents this window.
|
JRootPane |
getRootPane()
Returns the root pane of the window.
|
net.sf.jguiraffe.gui.platform.swing.builder.window.WindowHelper |
getWindowHelper()
Returns the window helper used by this window.
|
Collection<WindowListener> |
getWindowListeners()
Returns a collection with all registered window listeners.
|
void |
packWindow()
"Packs" the window.
|
void |
registerAutoCloseListener()
Registers an internal window listener that closes this window when the
user hits the close icon in the window's title bar.
|
void |
setParentWindow(Window parent)
Sets this window's parent window.
|
void |
setWindowController(Object ctrl)
Sets the window's controller.
|
addMouseListener, addWindowListener, close, getHeight, getParentWindow, getRootContainer, getTitle, getWidth, getWindowClosingStrategy, getWindowController, getXPos, getYPos, isVisible, open, removeMouseListener, removeWindowListener, setBounds, setTitle, setVisible, setWindowClosingStrategy
Collection<WindowListener> getWindowListeners()
net.sf.jguiraffe.gui.platform.swing.builder.window.WindowHelper getWindowHelper()
Component getComponent()
void setParentWindow(Window parent)
parent
- the new parentvoid setWindowController(Object ctrl)
ctrl
- the controllervoid packWindow()
pack()
must be called to
ensure that a reasonable default size is calculated.void registerAutoCloseListener()
JRootPane getRootPane()
void dispose()
SwingWindow
is actually to be removed.Copyright © 2016 The JGUIraffe Team. All rights reserved.