|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.infonode.gui.panel.BaseContainer
net.infonode.gui.panel.BasePanel
net.infonode.docking.DockingWindow
net.infonode.docking.FloatingWindow
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 FloatingWindowProperties, see
getFloatingWindowProperties().
A floating window is created by calling the
RootWindow.createFloatingWindow(Point, Dimension, DockingWindow)
method or indirectly created by calling the
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);
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
void |
close()
Removes this window from it's window parent. |
DockingWindow |
getChildWindow(int index)
Returns the child window with index index. |
int |
getChildWindowCount()
Returns the number of child windows. |
FloatingWindowProperties |
getFloatingWindowProperties()
Returns the property values for this floating window. |
Icon |
getIcon()
Returns the icon for this window. |
DockingWindow |
getMaximizedWindow()
Returns the maximized window in this floating window. |
DockingWindow |
getWindow()
Returns the top level docking window inside this floating window. |
DockingWindowProperties |
getWindowProperties()
Returns the properties for this window. |
boolean |
isDockable()
Returns true if this window can be docked to the root window from a floating window. |
boolean |
isMaximizable()
Returns true if this window can be maximized by the user. |
boolean |
isMinimizable()
Returns true if this window can be minimized by the user. |
boolean |
isRestorable()
Returns true if this window can be restored by the user. |
boolean |
isUndockable()
Returns true if this window can be undocked to a floating window. |
boolean |
isUndocked()
|
void |
minimize()
Floating window cannot be minimized |
void |
minimize(Direction direction)
Floating window cannot be minimized |
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. |
| Methods inherited from class net.infonode.gui.panel.BaseContainer |
setBackground, setFont, setForeground, setOpaque, setUI |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, updateUI |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void setWindow(DockingWindow newWindow)
newWindow - the top level docking window, null for no window i.e. empty floating windowpublic DockingWindow getWindow()
public void setMaximizedWindow(DockingWindow window)
window - the window to maximize, must be a member of the window tree inside this floating windowpublic DockingWindow getMaximizedWindow()
public FloatingWindowProperties getFloatingWindowProperties()
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 FloatingWindowProperties.
public DockingWindowProperties getWindowProperties()
Returns the properties for this window.
Note: A floating window only uses the close enabled and title provider properties of the docking window properties.
getWindowProperties in class DockingWindowpublic void minimize()
minimize in class DockingWindowpublic void minimize(Direction direction)
minimize in class DockingWindowdirection - public boolean isDockable()
DockingWindow
isDockable in class DockingWindowDockingWindow.dock()public boolean isMaximizable()
DockingWindow
isMaximizable in class DockingWindowDockingWindow.maximize()public boolean isMinimizable()
DockingWindow
isMinimizable in class DockingWindowDockingWindow.minimize()public boolean isRestorable()
DockingWindow
isRestorable in class DockingWindowDockingWindow.restore()public boolean isUndockable()
DockingWindow
isUndockable in class DockingWindowDockingWindow.undock(Point)public void close()
DockingWindowRemoves this window from it's window parent. If the window parent is a split window or a tab window with one child, it will be removed as well.
The location of this window is saved and the window can be restored to that location using the
DockingWindow.restore() method.
This method will call the DockingWindowListener.windowClosed(DockingWindow) method of all the listeners
of this window and all window ancestors. The listeners of child windows will not be notified, for example closing
a tab window containing views will not notify the listeners of views in that tab window.
close in class DockingWindowpublic Icon getIcon()
DockingWindow
getIcon in class DockingWindowpublic DockingWindow getChildWindow(int index)
DockingWindow
getChildWindow in class DockingWindowindex - the child window index
public int getChildWindowCount()
DockingWindow
getChildWindowCount in class DockingWindowpublic boolean isUndocked()
isUndocked in class DockingWindow
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||