Class RootWindow
- java.lang.Object
-
- java.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.RootWindow
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,Readable,ReadWritable,Writable
public class RootWindow extends DockingWindow implements ReadWritable
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.- Version:
- $Revision: 1.129 $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classRootWindow.SingleComponentLayout-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private booleancleanUpModelprivate javax.swing.JRootPanecurrentDragRootPaneprivate java.awt.ComponentdragRectangleprivate java.awt.ContainerdragTextContainerprivate javax.swing.JLabeldragTextLabelprivate DragLabelWindowdragTextWindowprivate javax.swing.JFramedummyFrameprivate static intFLOATING_WINDOW_MIN_HEIGHTprivate static intFLOATING_WINDOW_MIN_WIDTHprivate java.util.ArrayListfloatingWindowsprivate ViewfocusedViewprivate java.util.ArrayListfocusedWindowsprivate booleanheavyweightSupportprivate java.util.ArrayListlastFocusedWindowsprivate ShapedPanellayeredPaneprivate SimplePanelmainPanelprivate DockingWindowmaximizedWindowprivate java.lang.RunnablemodelCleanUpEventprivate static intSERIALIZE_VERSIONprivate java.util.ArrayListviewsprivate ViewSerializerviewSerializerprivate DockingWindowwindowprivate WindowBar[]windowBarsprivate ShapedPanelwindowPanel-
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
-
-
Constructor Summary
Constructors Constructor Description RootWindow(boolean heavyweightSupport, ViewSerializer viewSerializer)Creates an empty root window with support for heavyweight components inside the views.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.RootWindow(ViewSerializer viewSerializer)Creates an empty root window.RootWindow(ViewSerializer viewSerializer, DockingWindow window)Creates a root window with the given window as window inside this root window.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DropActionacceptInteriorDrop(java.awt.Point p, DockingWindow window)protected booleanacceptsSplitWith(DockingWindow window)(package private) voidaddFocusedWindow(DockingWindow window)(package private) voidaddView(View view)protected voidcleanUpModel()(package private) FloatingWindowcreateFloatingWindow()FloatingWindowcreateFloatingWindow(java.awt.Point location, java.awt.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.(package private) FloatingWindowcreateFloatingWindow(DockingWindow window, java.awt.Point p)protected PropertyMapcreatePropertyObject()private voidcreateWindowBars()protected DropActiondoAcceptDrop(java.awt.Point p, DockingWindow window)protected voiddoRemoveWindow(DockingWindow window)protected voiddoReplace(DockingWindow oldWindow, DockingWindow newWindow)(package private) booleanfloatingWindowsContainPoint(java.awt.Point p)DockingWindowgetChildWindow(int index)Returns the child window with index index.intgetChildWindowCount()Returns the number of child windows.DirectiongetClosestWindowBar(DockingWindow window)Returns the direction of the closest enabled window bar to a docking window.(package private) javax.swing.JRootPanegetCurrentDragRootPane()ViewgetFocusedView()Returns the view that currently contains the focus.javax.swing.IcongetIcon()Returns the icon for this window.(package private) javax.swing.JComponentgetLayeredPane()DockingWindowgetMaximizedWindow()Returns the maximized window in this root window, or null if there no maximized window.protected PropertyMapgetPropertyObject()RootWindowgetRootWindow()Returns theRootWindowwhich contains this window, null if there is none.RootWindowPropertiesgetRootWindowProperties()Returns the property values for this root window.(package private) java.awt.ComponentgetTopLevelComponent()ViewSerializergetViewSerializer()Returns the view serializer object for the views inside this root window.DockingWindowgetWindow()Returns the top level docking window inside this root window.WindowBargetWindowBar(Direction direction)Returns the window bar in the direction.(package private) javax.swing.JComponentgetWindowPanel()private voidinternalSetMaximizedWindow(DockingWindow window)(package private) voidinternalStartDrag(javax.swing.JComponent component)(package private) booleanisHeavyweightSupported()protected booleanisShowingInRootWindow()private voidnewInternalRead(java.io.ObjectInputStream in, ReadContext context)private voidoldInternalRead(java.io.ObjectInputStream in, ReadContext context)protected voidpaintComponent(java.awt.Graphics g)voidread(java.io.ObjectInputStream in)Reads a previously written window state.voidread(java.io.ObjectInputStream in, boolean readProperties)Reads a previously written window state.private voidreadMaximized(java.io.ObjectInputStream in)(package private) voidremoveFloatingWindow(FloatingWindow fw)voidremoveView(View view)Removes all internal references to a view.private voidremoveWeak(java.lang.Object item, java.util.List l)(package private) voidremoveWindowComponent(DockingWindow window)private static booleanreparent(java.awt.Container parent, java.awt.Component c)(package private) voidrestoreWindowComponent(DockingWindow window)(package private) voidsetCurrentDragRootPane(javax.swing.JRootPane rootPane)(package private) voidsetDragCursor(java.awt.Cursor cursor)(package private) voidsetDragRectangle(java.awt.Rectangle rect)(package private) voidsetDragText(java.awt.Point textPoint, java.lang.String text)(package private) voidsetFocusedView(View view)voidsetMaximizedWindow(DockingWindow window)Sets the maximized window in this root window.voidsetWindow(DockingWindow newWindow)Sets the top level docking window inside this root window.protected voidshowChildWindow(DockingWindow window)(package private) voidstopDrag()protected voidupdate()voidupdateUI()(package private) booleanwindowBarEnabled()voidwrite(java.io.ObjectOutputStream out)Writes the state of this root window and all child windows.voidwrite(java.io.ObjectOutputStream out, boolean writeProperties)Writes the state of this root window and all child windows.private voidwriteMaximized(DockingWindow window, java.io.ObjectOutputStream out)private static voidwriteViews(java.util.ArrayList views, java.io.ObjectOutputStream out, WriteContext context)private voidwriteWindowItemIndex(WindowItem item, java.io.ObjectOutputStream out)-
Methods inherited from class net.infonode.docking.DockingWindow
acceptChildDrop, acceptDrop, acceptSplitDrop, addListener, addTabMouseButtonListener, addWindow, addWindowItem, afterWindowRemoved, beforeDrop, beginOptimize, beginUpdateModel, childGainedFocus, childInsideTab, childRemoved, clearChildrenFocus, clearFocus, close, closeWithAbort, createTabWindow, createTopLevelComponent, detach, dock, dockWithAbort, endOptimize, endUpdateModel, fireTabWindowMouseButtonEvent, fireTabWindowMouseButtonEvent, fireTitleChanged, fireViewFocusChanged, fireWindowDocked, fireWindowDocked, fireWindowDocking, fireWindowHidden, fireWindowMaximized, fireWindowMaximizing, fireWindowMinimized, fireWindowMinimizing, fireWindowRestored, fireWindowRestoring, fireWindowShown, fireWindowUndocked, fireWindowUndocking, getAncestors, getBestFittedWindow, getChildDropFilter, getChildEdgeDepth, getChildWindowIndex, getContentWindow, getDefaultDropAction, getEdgeDepth, getInsertTabDropFilter, getInteriorDropFilter, getLastFocusedChildWindow, getLocationWindow, getOptimizedWindow, getPopupMenuFactory, getPreferredFocusChild, getPreferredMinimizeDirection, getSplitDropFilter, getTab, getTitle, getUpdateModel, getWindowItem, getWindowParent, getWindowProperties, hasParent, init, insideTab, internalClose, internalReplaceChildWindow, isChildShowingInRootWindow, isClosable, isDockable, isMaximizable, isMaximized, isMinimizable, isMinimized, isRestorable, isUndockable, isUndocked, makeVisible, maximize, maximizeWithAbort, minimize, minimize, minimizeWithAbort, minimizeWithAbort, needsTitleWindow, notifyListeners, oldRead, optimizeAfter, optimizeWindowLayout, readLocations, removeChildWindow, removeListener, removeTabMouseButtonListener, removeWindow, replaceChildWindow, restore, restoreFocus, restoreWithAbort, rootChanged, setFocused, setLastMinimizedDirection, setPopupMenuFactory, setPreferredMinimizeDirection, showPopupMenu, showsWindowTitle, split, split, startDrag, storeAncestors, toString, undock, undockWithAbort, updateButtonVisibility, updateWindowItem, updateWindowItem, updateWindowItems, write, writeLocations
-
Methods inherited from class net.infonode.gui.panel.BasePanel
setComponent, setSouthComponent
-
Methods inherited from class net.infonode.gui.panel.BaseContainer
setBackground, setFont, setForeground, setOpaque, setUI
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString
-
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
-
-
-
-
Field Detail
-
SERIALIZE_VERSION
private static final int SERIALIZE_VERSION
- See Also:
- Constant Field Values
-
FLOATING_WINDOW_MIN_WIDTH
private static final int FLOATING_WINDOW_MIN_WIDTH
- See Also:
- Constant Field Values
-
FLOATING_WINDOW_MIN_HEIGHT
private static final int FLOATING_WINDOW_MIN_HEIGHT
- See Also:
- Constant Field Values
-
heavyweightSupport
private boolean heavyweightSupport
-
layeredPane
private final ShapedPanel layeredPane
-
windowPanel
private final ShapedPanel windowPanel
-
mainPanel
private final SimplePanel mainPanel
-
dummyFrame
private javax.swing.JFrame dummyFrame
-
viewSerializer
private final ViewSerializer viewSerializer
-
window
private DockingWindow window
-
windowBars
private final WindowBar[] windowBars
-
floatingWindows
private final java.util.ArrayList floatingWindows
-
maximizedWindow
private DockingWindow maximizedWindow
-
focusedView
private View focusedView
-
lastFocusedWindows
private java.util.ArrayList lastFocusedWindows
-
focusedWindows
private java.util.ArrayList focusedWindows
-
views
private final java.util.ArrayList views
-
cleanUpModel
private boolean cleanUpModel
-
modelCleanUpEvent
private final java.lang.Runnable modelCleanUpEvent
-
dragTextLabel
private final javax.swing.JLabel dragTextLabel
-
dragTextContainer
private java.awt.Container dragTextContainer
-
dragTextWindow
private DragLabelWindow dragTextWindow
-
dragRectangle
private final java.awt.Component dragRectangle
-
currentDragRootPane
private javax.swing.JRootPane currentDragRootPane
-
-
Constructor Detail
-
RootWindow
public RootWindow(ViewSerializer viewSerializer)
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)Creates an empty root window with support for heavyweight components inside the views.- Parameters:
heavyweightSupport- true for heavy weight component support, otherwise falseviewSerializer- used when reading and writing views- Since:
- IDW 1.4.0
-
RootWindow
public RootWindow(ViewSerializer viewSerializer, DockingWindow window)
Creates a root window with the given window as window inside this root window.- Parameters:
viewSerializer- used when reading and writing viewswindow- the window that is placed inside the root window
-
RootWindow
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.- Parameters:
heavyweightSupport- true for heavy weight component support, otherwise falseviewSerializer- used when reading and writing viewswindow- the window that is placed inside the root window- Since:
- IDW 1.4.0
-
-
Method Detail
-
getFocusedView
public View getFocusedView()
Returns the view that currently contains the focus.- Returns:
- The currently focused view, null if no view has focus
-
addFocusedWindow
void addFocusedWindow(DockingWindow window)
-
setFocusedView
void setFocusedView(View view)
-
getRootWindowProperties
public RootWindowProperties getRootWindowProperties()
Returns the property values for this root window. The property values will be inherited to docking windows inside this root window.- Returns:
- the property values for this root window
-
getClosestWindowBar
public Direction getClosestWindowBar(DockingWindow window)
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- Returns:
- the direction of the closest enabled window bar to a docking window
-
getWindowBar
public WindowBar getWindowBar(Direction direction)
Returns the window bar in the direction.- Parameters:
direction- the direction- Returns:
- the window bar in the direction
-
setWindow
public void setWindow(DockingWindow newWindow)
Sets the top level docking window inside this root window.- Parameters:
newWindow- the top level docking window
-
getWindow
public DockingWindow getWindow()
Returns the top level docking window inside this root window.- Returns:
- the top level docking window inside this root window
-
createFloatingWindow
public FloatingWindow createFloatingWindow(java.awt.Point location, java.awt.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. 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 screeninnerSize- the inner dimension of the floating window's top level container i.e.the size of the root panewindow- the docking window that is the top level window in this floating window or null for no top-level window i.e. empty floating window- Returns:
- the floating window
- Since:
- IDW 1.4.0
-
createFloatingWindow
FloatingWindow createFloatingWindow()
-
createFloatingWindow
FloatingWindow createFloatingWindow(DockingWindow window, java.awt.Point p)
-
removeFloatingWindow
void removeFloatingWindow(FloatingWindow fw)
-
getViewSerializer
public ViewSerializer getViewSerializer()
Returns the view serializer object for the views inside this root window.- Returns:
- the view serializer object for the views inside this root window
-
getChildWindow
public DockingWindow getChildWindow(int index)
Description copied from class:DockingWindowReturns the child window with index index.- Specified by:
getChildWindowin classDockingWindow- Parameters:
index- the child window index- Returns:
- the child window
-
getChildWindowCount
public int getChildWindowCount()
Description copied from class:DockingWindowReturns the number of child windows.- Specified by:
getChildWindowCountin classDockingWindow- Returns:
- the number of child windows
-
getIcon
public javax.swing.Icon getIcon()
Description copied from class:DockingWindowReturns the icon for this window.- Specified by:
getIconin classDockingWindow- Returns:
- the icon
-
write
public void write(java.io.ObjectOutputStream out) throws java.io.IOExceptionWrites the state of this root window and all child windows.
-
write
public void write(java.io.ObjectOutputStream out, boolean writeProperties) throws java.io.IOExceptionWrites the state of this root window and all child windows.- Parameters:
out- the stream on which to write the statewriteProperties- true if the property values for all docking windows should be written to the stream- Throws:
java.io.IOException- if there is a stream error
-
writeWindowItemIndex
private void writeWindowItemIndex(WindowItem item, java.io.ObjectOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMaximized
private void writeMaximized(DockingWindow window, java.io.ObjectOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeViews
private static void writeViews(java.util.ArrayList views, java.io.ObjectOutputStream out, WriteContext context) throws java.io.IOException- Throws:
java.io.IOException
-
read
public void read(java.io.ObjectInputStream in) throws java.io.IOExceptionReads a previously written window state. This will create child windows and read their state.
-
oldInternalRead
private void oldInternalRead(java.io.ObjectInputStream in, ReadContext context) throws java.io.IOException- Throws:
java.io.IOException
-
newInternalRead
private void newInternalRead(java.io.ObjectInputStream in, ReadContext context) throws java.io.IOException- Throws:
java.io.IOException
-
read
public void read(java.io.ObjectInputStream in, boolean readProperties) throws java.io.IOExceptionReads a previously written window state. This will create child windows and read their state.- Parameters:
in- the stream from which to read the statereadProperties- true if the property values for all child windows should be read. This parameter can be set to true or false regardless of if the property values was included when the state was written, though obviously no property values are read if there aren't any in the stream.- Throws:
java.io.IOException- if there is a stream error
-
readMaximized
private void readMaximized(java.io.ObjectInputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
getMaximizedWindow
public DockingWindow getMaximizedWindow()
Returns the maximized window in this root window, or null if there no maximized window.- Returns:
- the maximized window in this root window, or null if there no maximized window
- Since:
- IDW 1.1.0
-
setMaximizedWindow
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. 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
-
addView
void addView(View view)
-
removeView
public void removeView(View view)
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
-
removeWeak
private void removeWeak(java.lang.Object item, java.util.List l)
-
internalSetMaximizedWindow
private void internalSetMaximizedWindow(DockingWindow window)
-
createWindowBars
private void createWindowBars()
-
getLayeredPane
javax.swing.JComponent getLayeredPane()
-
getWindowPanel
javax.swing.JComponent getWindowPanel()
-
showChildWindow
protected void showChildWindow(DockingWindow window)
- Overrides:
showChildWindowin classDockingWindow
-
update
protected void update()
- Specified by:
updatein classDockingWindow
-
internalStartDrag
void internalStartDrag(javax.swing.JComponent component)
-
stopDrag
void stopDrag()
-
floatingWindowsContainPoint
boolean floatingWindowsContainPoint(java.awt.Point p)
-
setCurrentDragRootPane
void setCurrentDragRootPane(javax.swing.JRootPane rootPane)
-
getCurrentDragRootPane
javax.swing.JRootPane getCurrentDragRootPane()
-
getTopLevelComponent
java.awt.Component getTopLevelComponent()
-
isHeavyweightSupported
boolean isHeavyweightSupported()
-
reparent
private static boolean reparent(java.awt.Container parent, java.awt.Component c)
-
setDragCursor
void setDragCursor(java.awt.Cursor cursor)
-
setDragText
void setDragText(java.awt.Point textPoint, java.lang.String text)
-
setDragRectangle
void setDragRectangle(java.awt.Rectangle rect)
-
doReplace
protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)
- Specified by:
doReplacein classDockingWindow
-
doRemoveWindow
protected void doRemoveWindow(DockingWindow window)
- Specified by:
doRemoveWindowin classDockingWindow
-
getRootWindow
public RootWindow getRootWindow()
Description copied from class:DockingWindowReturns theRootWindowwhich contains this window, null if there is none.- Overrides:
getRootWindowin classDockingWindow- Returns:
- the
RootWindow, null if there is none
-
acceptsSplitWith
protected boolean acceptsSplitWith(DockingWindow window)
- Overrides:
acceptsSplitWithin classDockingWindow
-
doAcceptDrop
protected DropAction doAcceptDrop(java.awt.Point p, DockingWindow window)
- Overrides:
doAcceptDropin classDockingWindow
-
acceptInteriorDrop
protected DropAction acceptInteriorDrop(java.awt.Point p, DockingWindow window)
- Overrides:
acceptInteriorDropin classDockingWindow
-
getPropertyObject
protected PropertyMap getPropertyObject()
- Specified by:
getPropertyObjectin classDockingWindow
-
createPropertyObject
protected PropertyMap createPropertyObject()
- Specified by:
createPropertyObjectin classDockingWindow
-
windowBarEnabled
boolean windowBarEnabled()
-
removeWindowComponent
void removeWindowComponent(DockingWindow window)
- Specified by:
removeWindowComponentin classDockingWindow
-
restoreWindowComponent
void restoreWindowComponent(DockingWindow window)
- Specified by:
restoreWindowComponentin classDockingWindow
-
cleanUpModel
protected void cleanUpModel()
- Overrides:
cleanUpModelin classDockingWindow
-
isShowingInRootWindow
protected boolean isShowingInRootWindow()
- Overrides:
isShowingInRootWindowin classDockingWindow
-
updateUI
public void updateUI()
- Overrides:
updateUIin classjavax.swing.JPanel
-
paintComponent
protected void paintComponent(java.awt.Graphics g)
- Overrides:
paintComponentin classBaseContainer
-
-