Method Summary |
|
protected DropAction | acceptChildDrop(Point p, DockingWindow window) |
DropAction | acceptDrop(Point p, DockingWindow window) |
protected DropAction | acceptInteriorDrop(Point p, DockingWindow window) |
protected DropAction | acceptSplitDrop(Point p, DockingWindow window, int splitDistance) |
protected boolean | acceptsSplitWith(DockingWindow window) |
public void | addListener(DockingWindowListener listener) Adds a listener which will reveive events for this window and all child windows. |
public void | addTabMouseButtonListener(MouseButtonListener listenerDocking)
Adds a listener that receives mouse button events for window tabs. |
final protected DockingWindow | addWindow(DockingWindow window) |
protected void | addWindowItem(DockingWindow w, int index) |
protected void | afterWindowRemoved(DockingWindow window) |
protected void | beforeDrop(DockingWindow target) |
protected static void | beginOptimize(DockingWindow window) |
protected static void | beginUpdateModel() |
void | childGainedFocus(DockingWindow child, View view) |
protected boolean | childInsideTab() |
protected void | childRemoved(DockingWindow child) |
protected void | cleanUpModel() |
protected void | clearChildrenFocus(DockingWindow child, View view) |
protected void | clearFocus(View view) |
public void | close() Removes this window from it's window parent. |
public void | closeWithAbort() Same as
DockingWindow.close() , but the
DockingWindowListener.windowClosing(DockingWindow) method of
the window listeners will be called before closing the window, giving them the possibility to abort the close
operation. |
abstract protected PropertyMap | createPropertyObject() |
protected DropAction | createTabWindow(DockingWindow window) |
final protected void | detach() |
protected DropAction | doAcceptDrop(Point p, DockingWindow window) |
abstract protected void | doRemoveWindow(DockingWindow window) |
abstract protected void | doReplace(DockingWindow oldWindow, DockingWindow newWindow) |
public void | dock() Docks the window to the RootWindow to the location it had before it was undocked.
If the window can't be docked to the exact same location, a good approximation is performed. |
public void | dockWithAbort() Same as
DockingWindow.dock() , but the
DockingWindowListener.windowDocking(DockingWindow) method of
the window listeners will be called before docking the window, giving them the possibility to abort the dock
operation. |
protected static void | endOptimize() |
protected static void | endUpdateModel() |
void | fireTabWindowMouseButtonEvent(MouseEvent event) |
void | fireTabWindowMouseButtonEvent(DockingWindow window, MouseEvent event) |
protected void | fireTitleChanged() |
protected void | fireViewFocusChanged(View previouslyFocusedView, View focusedView) |
void | fireWindowDocked(DockingWindow window, DockingWindow[] oldAncestors) |
void | fireWindowDocked(ArrayList dockedViews) |
void | fireWindowDocking(DockingWindow window) |
protected void | fireWindowHidden(DockingWindow window) |
void | fireWindowMaximized(DockingWindow window) |
void | fireWindowMaximizing(DockingWindow window) |
void | fireWindowMinimized(DockingWindow window, DockingWindow[] oldAncestors) |
void | fireWindowMinimizing(DockingWindow window) |
void | fireWindowRestored(DockingWindow window) |
void | fireWindowRestoring(DockingWindow window) |
protected void | fireWindowShown(DockingWindow window) |
void | fireWindowUndocked(DockingWindow window, DockingWindow[] oldAncestors) |
void | fireWindowUndocking(DockingWindow window) |
protected DockingWindow[] | getAncestors() |
protected DockingWindow | getBestFittedWindow(DockingWindow parentWindow) |
DropFilter | getChildDropFilter() |
protected int | getChildEdgeDepth(DockingWindow window, Direction dir) |
abstract public DockingWindow | getChildWindow(int index) Returns the child window with index index. |
abstract public int | getChildWindowCount() Returns the number of child windows. |
public int | getChildWindowIndex(DockingWindow window) Returns the index of a child windows. |
protected DockingWindow | getContentWindow(DockingWindow parent) |
DropAction | getDefaultDropAction() |
protected int | getEdgeDepth(Direction dir) |
abstract public Icon | getIcon() Returns the icon for this window. |
DropFilter | getInsertTabDropFilter() |
DropFilter | getInteriorDropFilter() |
public DockingWindow | getLastFocusedChildWindow() Returns the child window that last contained focus. |
protected DockingWindow | getLocationWindow() |
protected DockingWindow | getOptimizedWindow() Returns the result after removing unnecessary tab windows which contains only one tab. |
public WindowPopupMenuFactory | getPopupMenuFactory() Returns the popup menu factory for this window. |
protected DockingWindow | getPreferredFocusChild() |
public Direction | getPreferredMinimizeDirection()
Gets the preferred minimize direction of this window. |
abstract protected PropertyMap | getPropertyObject() |
public RootWindow | getRootWindow() Returns the
RootWindow which contains this window, null if there is none. |
DropFilter | getSplitDropFilter() |
WindowTab | getTab() |
public String | getTitle() Returns the title of this window. |
protected boolean | getUpdateModel() |
protected WindowItem | getWindowItem() |
public DockingWindow | getWindowParent() Returns the window parent of this window. |
public DockingWindowProperties | getWindowProperties() Returns the properties for this window. |
protected boolean | hasParent(DockingWindow w) |
protected void | init() |
protected boolean | insideTab() |
protected void | internalClose() |
protected DockingWindow | internalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow) |
protected boolean | isChildShowingInRootWindow(DockingWindow child) |
public boolean | isClosable() Returns true if this window can be closed by the user. |
public boolean | isDockable() Returns true if this window can be docked to the root window from a floating window. |
public boolean | isMaximizable() Returns true if this window can be maximized by the user. |
public boolean | isMaximized() Returns true if this window has a root window and is maximized in that root window or in a floating window. |
public boolean | isMinimizable() Returns true if this window can be minimized by the user. |
public boolean | isMinimized() Returns true if this window is minimized, ie located in a
WindowBar . |
public boolean | isRestorable() Returns true if this window can be restored by the user. |
protected boolean | isShowingInRootWindow() |
public boolean | isUndockable() Returns true if this window can be undocked to a floating window. |
public boolean | isUndocked() |
public void | makeVisible() Makes this window visible. |
final public void | maximize() Maximizes this window in its root window or in its floating window. |
public void | maximizeWithAbort() Same as
DockingWindow.maximize() , but the
DockingWindowListener.windowMaximized(DockingWindow) method of
the window listeners will be called before maximizing the window, giving them the possibility to abort the maximize
operation. |
public void | minimize() Minimizes this window. |
public void | minimize(Direction direction) Minimizes this window to a
WindowBar located in direction. |
public void | minimizeWithAbort() Same as
DockingWindow.minimize() , but the
DockingWindowListener.windowMinimizing(DockingWindow) method of
the window listeners will be called before minimizing the window, giving them the possibility to abort the minimize
operation. |
public void | minimizeWithAbort(Direction direction) Same as
DockingWindow.minimize(Direction) , but the
DockingWindowListener.windowMinimizing(DockingWindow) method of
the window listeners will be called before minimizing the window, giving them the possibility to abort the minimize
operation. |
protected boolean | needsTitleWindow() |
protected void | notifyListeners(WindowAncestors ancestors) |
protected DockingWindow | oldRead(ObjectInputStream in, ReadContext context) |
protected static void | optimizeAfter(DockingWindow window, Runnable runnable) |
protected void | optimizeWindowLayout() |
final protected void | readLocations(ObjectInputStream in, RootWindow rootWindow, int version) |
final protected void | removeChildWindow(DockingWindow window) |
public void | removeListener(DockingWindowListener listener) Removes a previously added listener. |
public void | removeTabMouseButtonListener(MouseButtonListener listenerDocking) Removes a mouse button listener that has been previously added using the
DockingWindow.addTabMouseButtonListener(MouseButtonListener) . |
final protected void | removeWindow(DockingWindow window) |
abstract void | removeWindowComponent(DockingWindow window) |
public void | replaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow) Replaces a child window with another window. |
public void | restore() Restores this window to the location before it was minimized, maximized or closed.
If the window can't be restored to the exact same location, a good approximation is performed. |
public void | restoreFocus() Requests that the last focused child window becomes visible and that focus is restored to the last focused
component in that window. |
abstract void | restoreWindowComponent(DockingWindow window) |
public void | restoreWithAbort() Same as
DockingWindow.restore() , but the
DockingWindowListener.windowRestoring(DockingWindow) method of
the window listeners will be called before restoring the window, giving them the possibility to abort the restore
operation. |
protected void | rootChanged(RootWindow oldRoot, RootWindow newRoot) |
protected void | setFocused(boolean focused) |
protected void | setLastMinimizedDirection(Direction direction) |
public void | setPopupMenuFactory(WindowPopupMenuFactory popupMenuFactory) Sets the popup menu factory for this window. |
public void | setPreferredMinimizeDirection(Direction direction)
Sets the preferred minimize direction of this window. |
protected void | showChildWindow(DockingWindow window) |
void | showPopupMenu(MouseEvent event) |
protected boolean | showsWindowTitle() |
public SplitWindow | split(DockingWindow splitWithWindow, Direction direction, float dividerLocation) Splits this window in the given direction. |
protected DropAction | split(DockingWindow window, Direction splitDir) |
public DockingWindowDragger | startDrag(RootWindow dropTarget) Starts a drag and drop operation for this window. |
protected WindowAncestors | storeAncestors() |
public String | toString() |
public FloatingWindow | undock(Point location) Undocks this window from it's window parent i.e. |
public FloatingWindow | undockWithAbort(Point location) Same as
DockingWindow.undock(Point) , but the
DockingWindowListener.windowUndocking(DockingWindow) method of
the window listeners will be called before undocking the window, giving them the possibility to abort the undock
operation. |
abstract protected void | update() |
protected void | updateButtonVisibility() |
protected void | updateWindowItem(RootWindow rootWindow) |
final protected void | updateWindowItems() |
protected void | write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) |
protected void | writeLocations(ObjectOutputStream out) |