public class SwingWindowManager extends Object implements WindowManager
The Swing specific implementation of the WindowManager
interface.
Constructor and Description |
---|
SwingWindowManager() |
Modifier and Type | Method and Description |
---|---|
Window |
createDialog(WindowBuilderData builderData,
WindowData data,
boolean modal,
Window wnd)
Creates a dialog window.
|
Window |
createFrame(WindowBuilderData builderData,
WindowData data,
Window wnd)
Creates a frame window.
|
Window |
createInternalFrame(WindowBuilderData builderData,
WindowData data,
Window wnd)
Creates and initializes an internal frame window and adds it to its
parent frame.
|
protected JDialog |
createJDialog(WindowBuilderData builderData)
Creates a new dialog object.
|
protected void |
initSwingWindowProperties(SwingWindow window,
WindowData data,
Window parent)
Initializes the given Swing window implementation from the given data
object.
|
protected void |
initWindowBounds(SwingWindow window,
WindowData data,
Window parent)
Initializes the bounds of a newly created window.
|
protected void |
initWindowBounds(WindowAdapter window,
WindowData data,
Window parent)
Initializes the bounds of the given AWT window object.
|
public Window createFrame(WindowBuilderData builderData, WindowData data, Window wnd) throws WindowBuilderException
javax.swing.JFrame
object.createFrame
in interface WindowManager
builderData
- the builder data objectdata
- the data for the windowwnd
- the window to be initializedWindowBuilderException
- if an error occurspublic Window createInternalFrame(WindowBuilderData builderData, WindowData data, Window wnd) throws WindowBuilderException
JInternalFrame
class. This internal frame will
already have been added to the parent frame's desktop. For this to work
the parent window must be a Swing JFrame
and it must
contain a JDesktopPane
instance; otherwise an exception
will be thrown.createInternalFrame
in interface WindowManager
builderData
- the builder data objectdata
- the data for the windowwnd
- the window to be initializedWindowBuilderException
- if an error occurspublic Window createDialog(WindowBuilderData builderData, WindowData data, boolean modal, Window wnd) throws WindowBuilderException
javax.swing.JDialog
object.createDialog
in interface WindowManager
builderData
- the builder data objectdata
- the data for the windowmodal
- the modal flagwnd
- the window to be initializedWindowBuilderException
- if an error occursprotected void initWindowBounds(WindowAdapter window, WindowData data, Window parent)
window
- the adapter for the window to initializedata
- the window dataparent
- the parent windowprotected void initWindowBounds(SwingWindow window, WindowData data, Window parent)
window
- the window to initializedata
- the window dataparent
- the parent windowprotected void initSwingWindowProperties(SwingWindow window, WindowData data, Window parent)
window
- the windowdata
- the data objectparent
- the parent windowprotected JDialog createJDialog(WindowBuilderData builderData)
builderData
- the builder data object (contains the parent window)Copyright © 2016 The JGUIraffe Team. All rights reserved.