| |
|
| net.infonode.docking.DockingWindow net.infonode.docking.RootWindow
RootWindow | public class RootWindow extends DockingWindow implements ReadWritable(Code) | | The root window is a top level container for docking windows. Docking windows can't be dragged outside of their root
window. The property values of a root window is inherited to the docking windows inside it.
author: $Author: jesper $ version: $Revision: 1.127 $ |
Constructor Summary | |
public | RootWindow(ViewSerializer viewSerializer) Creates an empty root window. | public | RootWindow(boolean heavyweightSupport, ViewSerializer viewSerializer) Creates an empty root window with support for heavyweight components inside the
views. | public | RootWindow(ViewSerializer viewSerializer, DockingWindow window) Creates a root window with the given window as window inside this root window. | public | RootWindow(boolean heavyweightSupport, ViewSerializer viewSerializer, DockingWindow window) Creates a root window with support for heavyweight components inside the views and the
given window inside as window inside this root window. |
Method Summary | |
protected DropAction | acceptInteriorDrop(Point p, DockingWindow window) | protected boolean | acceptsSplitWith(DockingWindow window) | void | addFocusedWindow(DockingWindow window) | void | addView(View view) | protected void | cleanUpModel() | public FloatingWindow | createFloatingWindow(Point location, Dimension innerSize, DockingWindow window)
Creates and shows a floating window with the given window as top-level window in the floating window or without
any top-level window i.e. | FloatingWindow | createFloatingWindow() | FloatingWindow | createFloatingWindow(DockingWindow window, Point p) | protected PropertyMap | createPropertyObject() | protected DropAction | doAcceptDrop(Point p, DockingWindow window) | protected void | doRemoveWindow(DockingWindow window) | protected void | doReplace(DockingWindow oldWindow, DockingWindow newWindow) | boolean | floatingWindowsContainPoint(Point p) | public DockingWindow | getChildWindow(int index) | public int | getChildWindowCount() | public Direction | getClosestWindowBar(DockingWindow window) Returns the direction of the closest enabled window bar to a docking window. | JRootPane | getCurrentDragRootPane() | public View | getFocusedView() Returns the view that currently contains the focus. | public Icon | getIcon() | JComponent | getLayeredPane() | public DockingWindow | getMaximizedWindow() Returns the maximized window in this root window, or null if there no maximized window. | protected PropertyMap | getPropertyObject() | public RootWindow | getRootWindow() | public RootWindowProperties | getRootWindowProperties() Returns the property values for this root window. | Component | getTopLevelComponent() | public ViewSerializer | getViewSerializer() Returns the view serializer object for the views inside this root window. | public DockingWindow | getWindow() Returns the top level docking window inside this root window. | public WindowBar | getWindowBar(Direction direction) Returns the window bar in the direction. | JComponent | getWindowPanel() | void | internalStartDrag(JComponent component) | boolean | isHeavyweightSupported() | protected boolean | isShowingInRootWindow() | protected void | paintComponent(Graphics g) | public void | read(ObjectInputStream in) Reads a previously written window state. | public void | read(ObjectInputStream in, boolean readProperties) Reads a previously written window state. | void | removeFloatingWindow(FloatingWindow fw) | public void | removeView(View view) Removes all internal references to a view. | void | removeWindowComponent(DockingWindow window) | void | restoreWindowComponent(DockingWindow window) | void | setCurrentDragRootPane(JRootPane rootPane) | void | setDragCursor(Cursor cursor) | void | setDragRectangle(Rectangle rect) | void | setDragText(Point textPoint, String text) | void | setFocusedView(View view) | public void | setMaximizedWindow(DockingWindow window) Sets the maximized window in this root window.
This method takes the window component and displays it at the top in the root window. | public void | setWindow(DockingWindow newWindow) Sets the top level docking window inside this root window. | protected void | showChildWindow(DockingWindow window) | void | stopDrag() | protected void | update() | public void | updateUI() | boolean | windowBarEnabled() | public void | write(ObjectOutputStream out) Writes the state of this root window and all child windows. | public void | write(ObjectOutputStream out, boolean writeProperties) Writes the state of this root window and all child windows. |
RootWindow | public RootWindow(ViewSerializer viewSerializer)(Code) | | Creates an empty root window.
Parameters: viewSerializer - used when reading and writing views since: IDW 1.1.0 |
RootWindow | public RootWindow(boolean heavyweightSupport, ViewSerializer viewSerializer)(Code) | | Creates an empty root window with support for heavyweight components inside the
views.
Parameters: heavyweightSupport - true for heavy weight component support, otherwise false Parameters: viewSerializer - used when reading and writing views since: IDW 1.4.0 |
RootWindow | public RootWindow(ViewSerializer viewSerializer, DockingWindow window)(Code) | | Creates a root window with the given window as window inside this root window.
Parameters: viewSerializer - used when reading and writing views Parameters: window - the window that is placed inside the root window |
RootWindow | public RootWindow(boolean heavyweightSupport, ViewSerializer viewSerializer, DockingWindow window)(Code) | | Creates a root window with support for heavyweight components inside the views and the
given window inside as window inside this root window.
Parameters: heavyweightSupport - true for heavy weight component support, otherwise false Parameters: viewSerializer - used when reading and writing views Parameters: window - the window that is placed inside the root window since: IDW 1.4.0 |
cleanUpModel | protected void cleanUpModel()(Code) | | |
createFloatingWindow | public FloatingWindow createFloatingWindow(Point location, Dimension innerSize, DockingWindow window)(Code) | |
Creates and shows a floating window with the given window as top-level window in the floating window or without
any top-level window i.e. empty floating window.
Note 1: The created floating window is not visible per default. To make it visible, call
FloatingWindow .getTopLevelAncestor().setVisible(true);
Note 2: Floating windows are dynamically created when a window is undocked and closed/removed
when all windows inside the floating window has been removed (i.e. cloased/docked/undocked to another floating
window) from the floating window. The root window has a refernce to the floating window as long as the floating
window has windows inside it i.e. it is not necessary to keep references to the floating window because the root
window will handle this.
Parameters: location - the floating window's location on the screen Parameters: innerSize - the inner dimension of the floating window's top level container i.e.the size of the root pane Parameters: window - the docking window that is the top level window in this floating window or null for no top-levelwindow i.e. empty floating window the floating window since: IDW 1.4.0 |
floatingWindowsContainPoint | boolean floatingWindowsContainPoint(Point p)(Code) | | |
getChildWindowCount | public int getChildWindowCount()(Code) | | |
getClosestWindowBar | public Direction getClosestWindowBar(DockingWindow window)(Code) | | Returns the direction of the closest enabled window bar to a docking window. The distance is measured from the
window edge that is furthest away from the bar.
Parameters: window - the docking window the direction of the closest enabled window bar to a docking window |
getFocusedView | public View getFocusedView()(Code) | | Returns the view that currently contains the focus.
The currently focused view, null if no view has focus |
getMaximizedWindow | public DockingWindow getMaximizedWindow()(Code) | | Returns the maximized window in this root window, or null if there no maximized window.
the maximized window in this root window, or null if there no maximized window since: IDW 1.1.0 |
getRootWindowProperties | public RootWindowProperties getRootWindowProperties()(Code) | | Returns the property values for this root window. The property values will be inherited to docking windows inside
this root window.
the property values for this root window |
getViewSerializer | public ViewSerializer getViewSerializer()(Code) | | Returns the view serializer object for the views inside this root window.
the view serializer object for the views inside this root window |
getWindow | public DockingWindow getWindow()(Code) | | Returns the top level docking window inside this root window.
the top level docking window inside this root window |
getWindowBar | public WindowBar getWindowBar(Direction direction)(Code) | | Returns the window bar in the direction.
Parameters: direction - the direction the window bar in the direction |
isHeavyweightSupported | boolean isHeavyweightSupported()(Code) | | |
isShowingInRootWindow | protected boolean isShowingInRootWindow()(Code) | | |
read | public void read(ObjectInputStream in) throws IOException(Code) | | Reads a previously written window state. This will create child windows and read their state.
Parameters: in - the stream from which to read the state throws: IOException - if there is a stream error |
read | public void read(ObjectInputStream in, boolean readProperties) throws IOException(Code) | | Reads a previously written window state. This will create child windows and read their state.
Parameters: in - the stream from which to read the state Parameters: readProperties - true if the property values for all child windows should be read. This parameter can be setto true or false regardless of if the property values was included when the state waswritten, though obviously no property values are read if there aren't any in the stream. throws: IOException - if there is a stream error |
removeView | public void removeView(View view)(Code) | | Removes all internal references to a view. It's not possible to restore the view to the previous location
after this method has been called.
If the view is located in the window tree where this is the root nothing happens.
Parameters: view - all internal references to this view are removed since: IDW 1.4.0 |
setCurrentDragRootPane | void setCurrentDragRootPane(JRootPane rootPane)(Code) | | |
setFocusedView | void setFocusedView(View view)(Code) | | |
setMaximizedWindow | public void setMaximizedWindow(DockingWindow window)(Code) | | Sets the maximized window in this root window.
This method takes the window component and displays it at the top in the root window. It does NOT modify the
window tree structure, ie the window parent remains the unchanged.
Parameters: window - the maximized window in this root window, null means no maximized window since: IDW 1.1.0 |
setWindow | public void setWindow(DockingWindow newWindow)(Code) | | Sets the top level docking window inside this root window.
Parameters: newWindow - the top level docking window |
stopDrag | void stopDrag()(Code) | | |
update | protected void update()(Code) | | |
updateUI | public void updateUI()(Code) | | |
windowBarEnabled | boolean windowBarEnabled()(Code) | | |
write | public void write(ObjectOutputStream out) throws IOException(Code) | | Writes the state of this root window and all child windows.
Parameters: out - the stream on which to write the state throws: IOException - if there is a stream error |
write | public void write(ObjectOutputStream out, boolean writeProperties) throws IOException(Code) | | Writes the state of this root window and all child windows.
Parameters: out - the stream on which to write the state Parameters: writeProperties - true if the property values for all docking windows should be written to the stream throws: IOException - if there is a stream error |
Methods inherited from net.infonode.docking.DockingWindow | protected DropAction acceptChildDrop(Point p, DockingWindow window)(Code)(Java Doc) DropAction acceptDrop(Point p, DockingWindow window)(Code)(Java Doc) protected DropAction acceptInteriorDrop(Point p, DockingWindow window)(Code)(Java Doc) protected DropAction acceptSplitDrop(Point p, DockingWindow window, int splitDistance)(Code)(Java Doc) protected boolean acceptsSplitWith(DockingWindow window)(Code)(Java Doc) public void addListener(DockingWindowListener listener)(Code)(Java Doc) public void addTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)(Java Doc) final protected DockingWindow addWindow(DockingWindow window)(Code)(Java Doc) protected void addWindowItem(DockingWindow w, int index)(Code)(Java Doc) protected void afterWindowRemoved(DockingWindow window)(Code)(Java Doc) protected void beforeDrop(DockingWindow target) throws OperationAbortedException(Code)(Java Doc) protected static void beginOptimize(DockingWindow window)(Code)(Java Doc) protected static void beginUpdateModel()(Code)(Java Doc) void childGainedFocus(DockingWindow child, View view)(Code)(Java Doc) protected boolean childInsideTab()(Code)(Java Doc) protected void childRemoved(DockingWindow child)(Code)(Java Doc) protected void cleanUpModel()(Code)(Java Doc) protected void clearChildrenFocus(DockingWindow child, View view)(Code)(Java Doc) protected void clearFocus(View view)(Code)(Java Doc) public void close()(Code)(Java Doc) public void closeWithAbort() throws OperationAbortedException(Code)(Java Doc) abstract protected PropertyMap createPropertyObject()(Code)(Java Doc) protected DropAction createTabWindow(DockingWindow window)(Code)(Java Doc) final protected void detach()(Code)(Java Doc) protected DropAction doAcceptDrop(Point p, DockingWindow window)(Code)(Java Doc) abstract protected void doRemoveWindow(DockingWindow window)(Code)(Java Doc) abstract protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc) public void dock()(Code)(Java Doc) public void dockWithAbort() throws OperationAbortedException(Code)(Java Doc) protected static void endOptimize()(Code)(Java Doc) protected static void endUpdateModel()(Code)(Java Doc) void fireTabWindowMouseButtonEvent(MouseEvent event)(Code)(Java Doc) void fireTabWindowMouseButtonEvent(DockingWindow window, MouseEvent event)(Code)(Java Doc) protected void fireTitleChanged()(Code)(Java Doc) protected void fireViewFocusChanged(View previouslyFocusedView, View focusedView)(Code)(Java Doc) void fireWindowDocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc) void fireWindowDocked(ArrayList dockedViews)(Code)(Java Doc) void fireWindowDocking(DockingWindow window) throws OperationAbortedException(Code)(Java Doc) protected void fireWindowHidden(DockingWindow window)(Code)(Java Doc) void fireWindowMaximized(DockingWindow window)(Code)(Java Doc) void fireWindowMaximizing(DockingWindow window) throws OperationAbortedException(Code)(Java Doc) void fireWindowMinimized(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc) void fireWindowMinimizing(DockingWindow window) throws OperationAbortedException(Code)(Java Doc) void fireWindowRestored(DockingWindow window)(Code)(Java Doc) void fireWindowRestoring(DockingWindow window) throws OperationAbortedException(Code)(Java Doc) protected void fireWindowShown(DockingWindow window)(Code)(Java Doc) void fireWindowUndocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc) void fireWindowUndocking(DockingWindow window) throws OperationAbortedException(Code)(Java Doc) protected DockingWindow[] getAncestors()(Code)(Java Doc) protected DockingWindow getBestFittedWindow(DockingWindow parentWindow)(Code)(Java Doc) DropFilter getChildDropFilter()(Code)(Java Doc) protected int getChildEdgeDepth(DockingWindow window, Direction dir)(Code)(Java Doc) abstract public DockingWindow getChildWindow(int index)(Code)(Java Doc) abstract public int getChildWindowCount()(Code)(Java Doc) public int getChildWindowIndex(DockingWindow window)(Code)(Java Doc) protected DockingWindow getContentWindow(DockingWindow parent)(Code)(Java Doc) DropAction getDefaultDropAction()(Code)(Java Doc) protected int getEdgeDepth(Direction dir)(Code)(Java Doc) abstract public Icon getIcon()(Code)(Java Doc) DropFilter getInsertTabDropFilter()(Code)(Java Doc) DropFilter getInteriorDropFilter()(Code)(Java Doc) public DockingWindow getLastFocusedChildWindow()(Code)(Java Doc) protected DockingWindow getLocationWindow()(Code)(Java Doc) protected DockingWindow getOptimizedWindow()(Code)(Java Doc) public WindowPopupMenuFactory getPopupMenuFactory()(Code)(Java Doc) protected DockingWindow getPreferredFocusChild()(Code)(Java Doc) public Direction getPreferredMinimizeDirection()(Code)(Java Doc) abstract protected PropertyMap getPropertyObject()(Code)(Java Doc) public RootWindow getRootWindow()(Code)(Java Doc) DropFilter getSplitDropFilter()(Code)(Java Doc) WindowTab getTab()(Code)(Java Doc) public String getTitle()(Code)(Java Doc) protected boolean getUpdateModel()(Code)(Java Doc) protected WindowItem getWindowItem()(Code)(Java Doc) public DockingWindow getWindowParent()(Code)(Java Doc) public DockingWindowProperties getWindowProperties()(Code)(Java Doc) protected boolean hasParent(DockingWindow w)(Code)(Java Doc) protected void init()(Code)(Java Doc) protected boolean insideTab()(Code)(Java Doc) protected void internalClose()(Code)(Java Doc) protected DockingWindow internalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc) protected boolean isChildShowingInRootWindow(DockingWindow child)(Code)(Java Doc) public boolean isClosable()(Code)(Java Doc) public boolean isDockable()(Code)(Java Doc) public boolean isMaximizable()(Code)(Java Doc) public boolean isMaximized()(Code)(Java Doc) public boolean isMinimizable()(Code)(Java Doc) public boolean isMinimized()(Code)(Java Doc) public boolean isRestorable()(Code)(Java Doc) protected boolean isShowingInRootWindow()(Code)(Java Doc) public boolean isUndockable()(Code)(Java Doc) public boolean isUndocked()(Code)(Java Doc) public void makeVisible()(Code)(Java Doc) final public void maximize()(Code)(Java Doc) public void maximizeWithAbort() throws OperationAbortedException(Code)(Java Doc) public void minimize()(Code)(Java Doc) public void minimize(Direction direction)(Code)(Java Doc) public void minimizeWithAbort() throws OperationAbortedException(Code)(Java Doc) public void minimizeWithAbort(Direction direction) throws OperationAbortedException(Code)(Java Doc) protected boolean needsTitleWindow()(Code)(Java Doc) protected void notifyListeners(WindowAncestors ancestors)(Code)(Java Doc) protected DockingWindow oldRead(ObjectInputStream in, ReadContext context) throws IOException(Code)(Java Doc) protected static void optimizeAfter(DockingWindow window, Runnable runnable)(Code)(Java Doc) protected void optimizeWindowLayout()(Code)(Java Doc) final protected void readLocations(ObjectInputStream in, RootWindow rootWindow, int version) throws IOException(Code)(Java Doc) final protected void removeChildWindow(DockingWindow window)(Code)(Java Doc) public void removeListener(DockingWindowListener listener)(Code)(Java Doc) public void removeTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)(Java Doc) final protected void removeWindow(DockingWindow window)(Code)(Java Doc) abstract void removeWindowComponent(DockingWindow window)(Code)(Java Doc) public void replaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc) public void restore()(Code)(Java Doc) public void restoreFocus()(Code)(Java Doc) abstract void restoreWindowComponent(DockingWindow window)(Code)(Java Doc) public void restoreWithAbort() throws OperationAbortedException(Code)(Java Doc) protected void rootChanged(RootWindow oldRoot, RootWindow newRoot)(Code)(Java Doc) protected void setFocused(boolean focused)(Code)(Java Doc) protected void setLastMinimizedDirection(Direction direction)(Code)(Java Doc) public void setPopupMenuFactory(WindowPopupMenuFactory popupMenuFactory)(Code)(Java Doc) public void setPreferredMinimizeDirection(Direction direction)(Code)(Java Doc) protected void showChildWindow(DockingWindow window)(Code)(Java Doc) void showPopupMenu(MouseEvent event)(Code)(Java Doc) protected boolean showsWindowTitle()(Code)(Java Doc) public SplitWindow split(DockingWindow splitWithWindow, Direction direction, float dividerLocation)(Code)(Java Doc) protected DropAction split(DockingWindow window, Direction splitDir)(Code)(Java Doc) public DockingWindowDragger startDrag(RootWindow dropTarget)(Code)(Java Doc) protected WindowAncestors storeAncestors()(Code)(Java Doc) public String toString()(Code)(Java Doc) public FloatingWindow undock(Point location)(Code)(Java Doc) public FloatingWindow undockWithAbort(Point location) throws OperationAbortedException(Code)(Java Doc) abstract protected void update()(Code)(Java Doc) protected void updateButtonVisibility()(Code)(Java Doc) protected void updateWindowItem(RootWindow rootWindow)(Code)(Java Doc) final protected void updateWindowItems()(Code)(Java Doc) protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws IOException(Code)(Java Doc) protected void writeLocations(ObjectOutputStream out) throws IOException(Code)(Java Doc)
|
|
|
|