net.infonode.docking
public class FloatingWindow extends DockingWindow
A window that is floating on-top of the root window and containing another docking window.
A window can be maximized inside the floating window just as in a root window.
After a floating window has been closed it shouldn't be reused again.
Floating window inherits its component properties and shaped panel properties from the root window's window area. It is possible to set specific component and shaped panel properties for a floating window in the {@link net.infonode.docking.properties.FloatingWindowProperties}, see {@link FloatingWindow#getFloatingWindowProperties()}.
A floating window is created by calling the {@link net.infonode.docking.RootWindow#createFloatingWindow(Point, Dimension, DockingWindow)} method or indirectly created by calling the {@link net.infonode.docking.DockingWindow#undock(Point)} method.
It's possible to add a menu bar to the floating window. Just call:
myFloatingWindow.getRootPane().setJMenuBar(myMenuBar);
The floating window is placed as the BorderLayout.CENTER component of the content pane of the root pane. You can add additional components in the other BorderLayout positions. Example, add a status label at the bottom:
myFloatingWindow.getRootPane().getContentPane().add(myStstusLabel, BroderLayout.SOUTH);
Since: IDW 1.4.0
Version: $Revision: 1.51 $
Method Summary | |
---|---|
protected DropAction | acceptInteriorDrop(Point p, DockingWindow window) |
protected boolean | acceptsSplitWith(DockingWindow window) |
protected void | afterWindowRemoved(DockingWindow window) |
void | close() |
protected PropertyMap | createPropertyObject() |
protected DropAction | doAcceptDrop(Point p, DockingWindow window) |
protected void | doRemoveWindow(DockingWindow window) |
protected void | doReplace(DockingWindow oldWindow, DockingWindow newWindow) |
protected void | fireTitleChanged() |
DockingWindow | getChildWindow(int index) |
int | getChildWindowCount() |
FloatingWindowProperties | getFloatingWindowProperties() Returns the property values for this floating window. |
Icon | getIcon() |
DockingWindow | getMaximizedWindow()
Returns the maximized window in this floating window.
|
protected PropertyMap | getPropertyObject() |
DockingWindow | getWindow()
Returns the top level docking window inside this floating window.
|
DockingWindowProperties | getWindowProperties() Returns the properties for this window. |
boolean | isDockable() |
boolean | isMaximizable() |
boolean | isMinimizable() |
boolean | isRestorable() |
boolean | isUndockable() |
boolean | isUndocked() |
void | minimize()
Floating window cannot be minimized |
void | minimize(Direction direction)
Floating window cannot be minimized
|
protected DockingWindow | read(ObjectInputStream in, ReadContext context, ViewReader viewReader) |
void | setMaximizedWindow(DockingWindow window)
Sets the maximized window in this floating window.
|
void | setWindow(DockingWindow newWindow)
Sets the top level docking window inside this floating window.
|
protected void | showChildWindow(DockingWindow window) |
protected void | update() |
protected void | write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) |
Returns the property values for this floating window.
Floating window inherits its component properties and shaped panel properties from the root window's window area. It is possible to set specific component and shaped panel properties for a floating window in the {@link net.infonode.docking.properties.FloatingWindowProperties}.
Returns: the property values for this floating window
Returns: maximized window or null if no window is maximized
Returns: the top level docking window inside this floating window
Returns the properties for this window.
Note: A floating window only uses the close enabled and title provider properties of the docking window properties.
Returns: the properties for this window
Parameters: direction
Parameters: window the window to maximize, must be a member of the window tree inside this floating window
Parameters: newWindow the top level docking window, null for no window i.e. empty floating window