Class DockingWindow
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
- Direct Known Subclasses:
AbstractTabWindow
,FloatingWindow
,RootWindow
,SplitWindow
,View
RootWindow
at the root. Each DockingWindow has a window parent and a number of child windows.
Warning: the non-public methods in this class can be changed in non-compatible ways in future versions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DropAction
acceptChildDrop
(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) void
addListener
(DockingWindowListener listener) Adds a listener which will reveive events for this window and all child windows.void
addTabMouseButtonListener
(MouseButtonListener listenerDocking) Adds a listener that receives mouse button events for window tabs.protected final 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
protected boolean
protected void
childRemoved
(DockingWindow child) protected void
protected void
clearChildrenFocus
(DockingWindow child, View view) protected void
clearFocus
(View view) void
close()
Removes this window from it's window parent.void
Same asclose()
, but theDockingWindowListener.windowClosing(DockingWindow)
method of the window listeners will be called before closing the window, giving them the possibility to abort the close operation.protected abstract PropertyMap
protected DropAction
createTabWindow
(DockingWindow window) protected final void
detach()
protected DropAction
doAcceptDrop
(Point p, DockingWindow window) void
dock()
Docks the window to the RootWindow to the location it had before it was undocked.void
Same asdock()
, but theDockingWindowListener.windowDocking(DockingWindow)
method of the window listeners will be called before docking the window, giving them the possibility to abort the dock operation.protected abstract void
doRemoveWindow
(DockingWindow window) protected abstract void
doReplace
(DockingWindow oldWindow, DockingWindow newWindow) protected static void
protected static void
protected void
protected void
fireViewFocusChanged
(View previouslyFocusedView, View focusedView) protected void
fireWindowHidden
(DockingWindow window) protected void
fireWindowShown
(DockingWindow window) protected DockingWindow[]
protected DockingWindow
getBestFittedWindow
(DockingWindow parentWindow) protected int
getChildEdgeDepth
(DockingWindow window, Direction dir) abstract DockingWindow
getChildWindow
(int index) Returns the child window with index index.abstract int
Returns the number of child windows.int
getChildWindowIndex
(DockingWindow window) Returns the index of a child windows.protected DockingWindow
getContentWindow
(DockingWindow parent) protected int
getEdgeDepth
(Direction dir) abstract Icon
getIcon()
Returns the icon for this window.Returns the child window that last contained focus.protected DockingWindow
protected DockingWindow
Returns the result after removing unnecessary tab windows which contains only one tab.Returns the popup menu factory for this window.protected DockingWindow
Gets the preferred minimize direction of this window.protected abstract PropertyMap
Returns theRootWindow
which contains this window, null if there is none.getTitle()
Returns the title of this window.protected boolean
protected WindowItem
Returns the window parent of this window.Returns the properties for this window.protected boolean
protected void
init()
protected boolean
protected void
protected DockingWindow
internalReplaceChildWindow
(DockingWindow oldWindow, DockingWindow newWindow) protected boolean
boolean
Returns true if this window can be closed by the user.boolean
Returns true if this window can be docked to the root window from a floating window.boolean
Returns true if this window can be maximized by the user.boolean
Returns true if this window has a root window and is maximized in that root window or in a floating window.boolean
Returns true if this window can be minimized by the user.boolean
Returns true if this window is minimized, ie located in aWindowBar
.boolean
Returns true if this window can be restored by the user.protected boolean
boolean
Returns true if this window can be undocked to a floating window.boolean
void
Makes this window visible.final void
maximize()
Maximizes this window in its root window or in its floating window.void
Same asmaximize()
, but theDockingWindowListener.windowMaximized(DockingWindow)
method of the window listeners will be called before maximizing the window, giving them the possibility to abort the maximize operation.void
minimize()
Minimizes this window.void
Minimizes this window to aWindowBar
located in direction.void
Same asminimize()
, but theDockingWindowListener.windowMinimizing(DockingWindow)
method of the window listeners will be called before minimizing the window, giving them the possibility to abort the minimize operation.void
minimizeWithAbort
(Direction direction) Same asminimize(Direction)
, but theDockingWindowListener.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
protected void
notifyListeners
(WindowAncestors ancestors) protected DockingWindow
oldRead
(ObjectInputStream in, ReadContext context) protected static void
optimizeAfter
(DockingWindow window, Runnable runnable) protected void
protected final void
readLocations
(ObjectInputStream in, RootWindow rootWindow, int version) protected final void
removeChildWindow
(DockingWindow window) void
removeListener
(DockingWindowListener listener) Removes a previously added listener.void
removeTabMouseButtonListener
(MouseButtonListener listenerDocking) Removes a mouse button listener that has been previously added using theaddTabMouseButtonListener(MouseButtonListener)
.protected final void
removeWindow
(DockingWindow window) void
replaceChildWindow
(DockingWindow oldWindow, DockingWindow newWindow) Replaces a child window with another window.void
restore()
Restores this window to the location before it was minimized, maximized or closed.void
Requests that the last focused child window becomes visible and that focus is restored to the last focused component in that window.void
Same asrestore()
, but theDockingWindowListener.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) void
setPopupMenuFactory
(WindowPopupMenuFactory popupMenuFactory) Sets the popup menu factory for this window.void
setPreferredMinimizeDirection
(Direction direction) Sets the preferred minimize direction of this window.protected void
showChildWindow
(DockingWindow window) protected boolean
protected DropAction
split
(DockingWindow window, Direction splitDir) split
(DockingWindow splitWithWindow, Direction direction, float dividerLocation) Splits this window in the given direction.startDrag
(RootWindow dropTarget) Starts a drag and drop operation for this window.protected WindowAncestors
toString()
Undocks this window from it's window parent i.e.undockWithAbort
(Point location) Same asundock(Point)
, but theDockingWindowListener.windowUndocking(DockingWindow)
method of the window listeners will be called before undocking the window, giving them the possibility to abort the undock operation.protected abstract void
update()
protected void
protected void
protected void
updateWindowItem
(RootWindow rootWindow) protected final void
protected void
write
(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) protected void
Methods inherited from class net.infonode.gui.panel.BasePanel
setComponent, setSouthComponent
Methods inherited from class net.infonode.gui.panel.BaseContainer
paintComponent, setBackground, setFont, setForeground, setOpaque, setUI
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
DockingWindow
-
-
Method Details
-
getIcon
Returns the icon for this window.- Returns:
- the icon
-
getChildWindow
Returns the child window with index index.- Parameters:
index
- the child window index- Returns:
- the child window
-
getChildWindowCount
public abstract int getChildWindowCount()Returns the number of child windows.- Returns:
- the number of child windows
-
doReplace
-
doRemoveWindow
-
update
protected abstract void update() -
init
protected void init() -
addWindowItem
-
updateWindowItem
-
updateWindowItems
protected final void updateWindowItems() -
setPreferredMinimizeDirection
Sets the preferred minimize direction of this window. If the
WindowBar
in this direction is enabled this window will be placed on that bar whenminimize()
is called.Note that a window will "remember" the last
WindowBar
it was added to so the preferred minimize direction is changed when the window is added to anotherWindowBar
.- Parameters:
direction
- the preferred minimize direction of this window, null (which is default value) means use the closest, enabledWindowBar
- Since:
- IDW 1.3.0
-
getPreferredMinimizeDirection
Gets the preferred minimize direction of this window. See
setPreferredMinimizeDirection(net.infonode.util.Direction)
for more information.- Returns:
- the preferred minimize direction of this window, null if the closest
WindowBar
is used - Since:
- IDW 1.3.0
-
isUndocked
public boolean isUndocked() -
addTabMouseButtonListener
Adds a listener that receives mouse button events for window tabs. The listener will be called when a mouse button is pressed, clicked or released on a window tab of this window or a descendant of this window.
The listeners are called in the reverse order they were added, so the last added listener will be called first. When all the listeners of this window has been called, the event is propagated up to the window parent of this window, if there is one.
The
MouseEvent
source is the docking window connected to the tab in which the mouse event occured. The event point is the mouse coordinate where the event occured relative to the window.- Parameters:
listenerDocking
- the listener- Since:
- IDW 1.3.0
-
removeTabMouseButtonListener
Removes a mouse button listener that has been previously added using theaddTabMouseButtonListener(MouseButtonListener)
.- Parameters:
listenerDocking
- the listener- Since:
- IDW 1.3.0
-
addListener
Adds a listener which will reveive events for this window and all child windows.- Parameters:
listener
- the listener- Since:
- IDW 1.1.0
-
removeListener
Removes a previously added listener.- Parameters:
listener
- the listener- Since:
- IDW 1.1.0
-
getWindowParent
Returns the window parent of this window.- Returns:
- the window parent of this window
-
split
Splits this window in the given direction. If this window is a View which is contained in a TabWindow with a single tab, the TabWindow will splitted instead of this View.- Parameters:
splitWithWindow
- the splitWithWindow which to split withdirection
- the split directiondividerLocation
- the relative split divider location (0 - 1)- Returns:
- the resulting split window
-
startDrag
Starts a drag and drop operation for this window.- Parameters:
dropTarget
- theRootWindow
in which the window can be dropped- Returns:
- an
DockingWindowDragger
object which controls the drag and drop operation - Since:
- IDW 1.3.0
-
getWindowProperties
Returns the properties for this window.- Returns:
- the properties for this window
-
getRootWindow
Returns theRootWindow
which contains this window, null if there is none.- Returns:
- the
RootWindow
, null if there is none
-
restoreWithAbort
Same asrestore()
, but theDockingWindowListener.windowRestoring(DockingWindow)
method of the window listeners will be called before restoring the window, giving them the possibility to abort the restore operation.- Throws:
OperationAbortedException
- if the restore operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
restore
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. It's not guaranteed that the window is shown anywhere after this method has returned. -
close
public void close()Removes 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
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. -
closeWithAbort
Same asclose()
, but theDockingWindowListener.windowClosing(DockingWindow)
method of the window listeners will be called before closing the window, giving them the possibility to abort the close operation.- Throws:
OperationAbortedException
- if the close operation was aborted by a window listener- Since:
- IDW 1.1.0
- See Also:
-
undock
Undocks this window from it's window parent i.e. creates a
FloatingWindow
containing this window.The window can be docked again by calling
dock()
.This method will call the
DockingWindowListener.windowUndocked(DockingWindow)
method of all the listeners of this window and all window ancestors. The listeners of child windows will not be notified, for example undocking a tab window containing views will not notify the listeners of views in that tab window.- Parameters:
location
- floating window location in screen coordinates- Returns:
- the floating window containing the undocked window
- Since:
- IDW 1.4.0
-
undockWithAbort
Same asundock(Point)
, but theDockingWindowListener.windowUndocking(DockingWindow)
method of the window listeners will be called before undocking the window, giving them the possibility to abort the undock operation.- Parameters:
location
- floating window location in screen coordinates- Returns:
- the floating window containing the undocked window
- Throws:
OperationAbortedException
- if the undock operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
dock
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. It's not guaranteed that the window is shown anywhere after this method has returned.
This method will call the
DockingWindowListener.windowDocked(DockingWindow)
method of all the listeners of this window and all window ancestors. The listeners of child windows will not be notified, for example docking a tab window containing views will not notify the listeners of views in that tab window.- Since:
- IDW 1.4.0
-
dockWithAbort
Same asdock()
, but theDockingWindowListener.windowDocking(DockingWindow)
method of the window listeners will be called before docking the window, giving them the possibility to abort the dock operation.- Throws:
OperationAbortedException
- if the dock operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
getChildWindowIndex
Returns the index of a child windows.- Parameters:
window
- the child window- Returns:
- the index of the child window, -1 if the window is not a child of this window
-
getPopupMenuFactory
Returns the popup menu factory for this window. If it's null the window parent popup menu factory will be used when the mouse popup trigger is activated on this window.- Returns:
- the popup menu factory for this window, null if there is none
-
setPopupMenuFactory
Sets the popup menu factory for this window. If it's not null a popup menu will be created and shown when the mouse popup trigger is activated on this window.- Parameters:
popupMenuFactory
- the popup menu factory, null if no popup menu should be shown
-
isMinimized
public boolean isMinimized()Returns true if this window is minimized, ie located in aWindowBar
.- Returns:
- true if this window is minimized
-
getLastFocusedChildWindow
Returns the child window that last contained focus.- Returns:
- the child window that last contained focus, null if no child window has contained focus or the child has been removed from this window
-
maximize
public final void maximize()Maximizes this window in its root window or in its floating window. If this window has no root window nothing happens. This method takes the window component and displays it at the top in the root window or in the floating window. It does NOT modify the window tree structure, ie the window parent remains the unchanged.The location of this window is saved and the window can be restored to that location using the
restore()
method.- Since:
- IDW 1.1.0
-
maximizeWithAbort
Same asmaximize()
, but theDockingWindowListener.windowMaximized(DockingWindow)
method of the window listeners will be called before maximizing the window, giving them the possibility to abort the maximize operation.- Throws:
OperationAbortedException
- if the maximize operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
isMaximized
public boolean isMaximized()Returns true if this window has a root window and is maximized in that root window or in a floating window.- Returns:
- true if this window has a root window and is maximized in that root window or in a floating window
- Since:
- IDW 1.1.0
-
minimize
public void minimize()Minimizes this window. The window is minimized to theWindowBar
in the preferred minimize direction, seesetPreferredMinimizeDirection(net.infonode.util.Direction)
andgetPreferredMinimizeDirection()
. If theWindowBar
in that direction is not enabled, or the direction is null, thiw window is placed on the closest enabledWindowBar
. If no suitableWindowBar
was found or this window already is minimized, no action is performed.The location of this window is saved and the window can be restored to that location using the
restore()
method. -
minimize
Minimizes this window to aWindowBar
located in direction. If no suitableWindowBar
was found or this window already is minimized, no action is performed.The location of this window is saved and the window can be restored to that location using the
restore()
method.- Parameters:
direction
- the direction in which the window bar to be minimized to is located
-
minimizeWithAbort
Same asminimize()
, but theDockingWindowListener.windowMinimizing(DockingWindow)
method of the window listeners will be called before minimizing the window, giving them the possibility to abort the minimize operation.- Throws:
OperationAbortedException
- if the minimize operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
minimizeWithAbort
Same asminimize(Direction)
, but theDockingWindowListener.windowMinimizing(DockingWindow)
method of the window listeners will be called before minimizing the window, giving them the possibility to abort the minimize operation.- Throws:
OperationAbortedException
- if the minimize operation was aborted by a window listener- Since:
- IDW 1.4.0
- See Also:
-
isMinimizable
public boolean isMinimizable()Returns true if this window can be minimized by the user.- Returns:
- true if this window can be minimized
- See Also:
-
isMaximizable
public boolean isMaximizable()Returns true if this window can be maximized by the user.- Returns:
- true if this window can be maximized
- Since:
- IDW 1.2.0
- See Also:
-
isClosable
public boolean isClosable()Returns true if this window can be closed by the user.- Returns:
- true if this window can be closed
- Since:
- IDW 1.2.0
- See Also:
-
isRestorable
public boolean isRestorable()Returns true if this window can be restored by the user.- Returns:
- true if this window can be restored
- Since:
- IDW 1.2.0
- See Also:
-
isUndockable
public boolean isUndockable()Returns true if this window can be undocked to a floating window.- Returns:
- true if this window can be undocked
- Since:
- IDW 1.4.0
- See Also:
-
isDockable
public boolean isDockable()Returns true if this window can be docked to the root window from a floating window.- Returns:
- true if this window can be docked
- Since:
- IDW 1.4.0
- See Also:
-
replaceChildWindow
Replaces a child window with another window.- Parameters:
oldWindow
- the child window to replaceChildWindownewWindow
- the window to replaceChildWindow it with
-
internalReplaceChildWindow
protected DockingWindow internalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow) -
getTitle
Returns the title of this window.- Returns:
- the window title
-
toString
-
storeAncestors
-
notifyListeners
-
isShowingInRootWindow
protected boolean isShowingInRootWindow() -
isChildShowingInRootWindow
-
makeVisible
public void makeVisible()Makes this window visible. This causes the tabs of allTabWindow
parents containing this window to be selected.- Since:
- IDW 1.1.0
-
restoreFocus
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. If no child window has had focus or the child window has been removed from this window, focus is transferred to a child component of this window.- Since:
- IDW 1.1.0
-
getPreferredFocusChild
-
getOptimizedWindow
Returns the result after removing unnecessary tab windows which contains only one tab.- Returns:
- the result after removing unnecessary tab windows which contains only one tab
-
getBestFittedWindow
-
internalClose
protected void internalClose() -
showChildWindow
-
insideTab
protected boolean insideTab()- Returns:
- true if this window is inside a tab __exclude__
-
childInsideTab
protected boolean childInsideTab()- Returns:
- true if the child windows are inside tabs __exclude__
-
getAncestors
-
fireWindowShown
-
fireViewFocusChanged
-
fireWindowHidden
-
setLastMinimizedDirection
-
clearChildrenFocus
-
childRemoved
-
updateButtonVisibility
protected void updateButtonVisibility() -
readLocations
protected final void readLocations(ObjectInputStream in, RootWindow rootWindow, int version) throws IOException - Throws:
IOException
-
writeLocations
- Throws:
IOException
-
beginOptimize
-
endOptimize
protected static void endOptimize() -
optimizeAfter
-
needsTitleWindow
protected boolean needsTitleWindow() -
showsWindowTitle
protected boolean showsWindowTitle() -
optimizeWindowLayout
protected void optimizeWindowLayout() -
getLocationWindow
-
fireTitleChanged
protected void fireTitleChanged() -
getContentWindow
-
removeChildWindow
-
removeWindow
-
detach
protected final void detach() -
addWindow
-
rootChanged
-
clearFocus
-
acceptsSplitWith
-
doAcceptDrop
-
acceptSplitDrop
-
split
-
beforeDrop
- Throws:
OperationAbortedException
-
createTabWindow
-
acceptInteriorDrop
-
hasParent
-
oldRead
- Throws:
IOException
-
getPropertyObject
-
createPropertyObject
-
setFocused
protected void setFocused(boolean focused) -
getEdgeDepth
-
getChildEdgeDepth
-
acceptChildDrop
-
getWindowItem
-
getUpdateModel
protected boolean getUpdateModel() -
beginUpdateModel
protected static void beginUpdateModel() -
endUpdateModel
protected static void endUpdateModel() -
updateWindowItem
-
afterWindowRemoved
-
write
protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws IOException - Throws:
IOException
-
cleanUpModel
protected void cleanUpModel()
-