Java Doc for DockingWindow.java in  » Swing-Library » InfoNode-Docking-Windows » net » infonode » docking » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » InfoNode Docking Windows » net.infonode.docking 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.infonode.gui.panel.BasePanel
   net.infonode.docking.DockingWindow

All known Subclasses:   net.infonode.docking.AbstractTabWindow,  net.infonode.docking.View,  net.infonode.docking.SplitWindow,  net.infonode.docking.FloatingWindow,  net.infonode.docking.RootWindow,
DockingWindow
abstract public class DockingWindow extends BasePanel (Code)
This is the base class for all types of docking windows. The windows are structured in a tree, typically with a 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.
author:
   $Author: jesper $
version:
   $Revision: 1.119 $




Constructor Summary
protected  DockingWindow(WindowItem windowItem)
    

Method Summary
protected  DropActionacceptChildDrop(Point p, DockingWindow window)
    
 DropActionacceptDrop(Point p, DockingWindow window)
    
protected  DropActionacceptInteriorDrop(Point p, DockingWindow window)
    
protected  DropActionacceptSplitDrop(Point p, DockingWindow window, int splitDistance)
    
protected  booleanacceptsSplitWith(DockingWindow window)
    
public  voidaddListener(DockingWindowListener listener)
     Adds a listener which will reveive events for this window and all child windows.
public  voidaddTabMouseButtonListener(MouseButtonListener listenerDocking)
    

Adds a listener that receives mouse button events for window tabs.

final protected  DockingWindowaddWindow(DockingWindow window)
    
protected  voidaddWindowItem(DockingWindow w, int index)
    
protected  voidafterWindowRemoved(DockingWindow window)
    
protected  voidbeforeDrop(DockingWindow target)
    
protected static  voidbeginOptimize(DockingWindow window)
    
protected static  voidbeginUpdateModel()
    
 voidchildGainedFocus(DockingWindow child, View view)
    
protected  booleanchildInsideTab()
    
protected  voidchildRemoved(DockingWindow child)
    
protected  voidcleanUpModel()
    
protected  voidclearChildrenFocus(DockingWindow child, View view)
    
protected  voidclearFocus(View view)
    
public  voidclose()
    

Removes this window from it's window parent.

public  voidcloseWithAbort()
     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  PropertyMapcreatePropertyObject()
    
protected  DropActioncreateTabWindow(DockingWindow window)
    
final protected  voiddetach()
    
protected  DropActiondoAcceptDrop(Point p, DockingWindow window)
    
abstract protected  voiddoRemoveWindow(DockingWindow window)
    
abstract protected  voiddoReplace(DockingWindow oldWindow, DockingWindow newWindow)
    
public  voiddock()
    

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  voiddockWithAbort()
     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  voidendOptimize()
    
protected static  voidendUpdateModel()
    
 voidfireTabWindowMouseButtonEvent(MouseEvent event)
    
 voidfireTabWindowMouseButtonEvent(DockingWindow window, MouseEvent event)
    
protected  voidfireTitleChanged()
    
protected  voidfireViewFocusChanged(View previouslyFocusedView, View focusedView)
    
 voidfireWindowDocked(DockingWindow window, DockingWindow[] oldAncestors)
    
 voidfireWindowDocked(ArrayList dockedViews)
    
 voidfireWindowDocking(DockingWindow window)
    
protected  voidfireWindowHidden(DockingWindow window)
    
 voidfireWindowMaximized(DockingWindow window)
    
 voidfireWindowMaximizing(DockingWindow window)
    
 voidfireWindowMinimized(DockingWindow window, DockingWindow[] oldAncestors)
    
 voidfireWindowMinimizing(DockingWindow window)
    
 voidfireWindowRestored(DockingWindow window)
    
 voidfireWindowRestoring(DockingWindow window)
    
protected  voidfireWindowShown(DockingWindow window)
    
 voidfireWindowUndocked(DockingWindow window, DockingWindow[] oldAncestors)
    
 voidfireWindowUndocking(DockingWindow window)
    
protected  DockingWindow[]getAncestors()
    
protected  DockingWindowgetBestFittedWindow(DockingWindow parentWindow)
    
 DropFiltergetChildDropFilter()
    
protected  intgetChildEdgeDepth(DockingWindow window, Direction dir)
    
abstract public  DockingWindowgetChildWindow(int index)
     Returns the child window with index index.
abstract public  intgetChildWindowCount()
     Returns the number of child windows.
public  intgetChildWindowIndex(DockingWindow window)
     Returns the index of a child windows.
protected  DockingWindowgetContentWindow(DockingWindow parent)
    
 DropActiongetDefaultDropAction()
    
protected  intgetEdgeDepth(Direction dir)
    
abstract public  IcongetIcon()
     Returns the icon for this window.
 DropFiltergetInsertTabDropFilter()
    
 DropFiltergetInteriorDropFilter()
    
public  DockingWindowgetLastFocusedChildWindow()
     Returns the child window that last contained focus.
protected  DockingWindowgetLocationWindow()
    
protected  DockingWindowgetOptimizedWindow()
     Returns the result after removing unnecessary tab windows which contains only one tab.
public  WindowPopupMenuFactorygetPopupMenuFactory()
     Returns the popup menu factory for this window.
protected  DockingWindowgetPreferredFocusChild()
    
public  DirectiongetPreferredMinimizeDirection()
    

Gets the preferred minimize direction of this window.

abstract protected  PropertyMapgetPropertyObject()
    
public  RootWindowgetRootWindow()
     Returns the RootWindow which contains this window, null if there is none.
 DropFiltergetSplitDropFilter()
    
 WindowTabgetTab()
    
public  StringgetTitle()
     Returns the title of this window.
protected  booleangetUpdateModel()
    
protected  WindowItemgetWindowItem()
    
public  DockingWindowgetWindowParent()
     Returns the window parent of this window.
public  DockingWindowPropertiesgetWindowProperties()
     Returns the properties for this window.
protected  booleanhasParent(DockingWindow w)
    
protected  voidinit()
    
protected  booleaninsideTab()
    
protected  voidinternalClose()
    
protected  DockingWindowinternalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)
    
protected  booleanisChildShowingInRootWindow(DockingWindow child)
    
public  booleanisClosable()
     Returns true if this window can be closed by the user.
public  booleanisDockable()
     Returns true if this window can be docked to the root window from a floating window.
public  booleanisMaximizable()
     Returns true if this window can be maximized by the user.
public  booleanisMaximized()
     Returns true if this window has a root window and is maximized in that root window or in a floating window.
public  booleanisMinimizable()
     Returns true if this window can be minimized by the user.
public  booleanisMinimized()
     Returns true if this window is minimized, ie located in a WindowBar .
public  booleanisRestorable()
     Returns true if this window can be restored by the user.
protected  booleanisShowingInRootWindow()
    
public  booleanisUndockable()
     Returns true if this window can be undocked to a floating window.
public  booleanisUndocked()
    
public  voidmakeVisible()
     Makes this window visible.
final public  voidmaximize()
     Maximizes this window in its root window or in its floating window.
public  voidmaximizeWithAbort()
     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  voidminimize()
     Minimizes this window.
public  voidminimize(Direction direction)
     Minimizes this window to a WindowBar located in direction.
public  voidminimizeWithAbort()
     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  voidminimizeWithAbort(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  booleanneedsTitleWindow()
    
protected  voidnotifyListeners(WindowAncestors ancestors)
    
protected  DockingWindowoldRead(ObjectInputStream in, ReadContext context)
    
protected static  voidoptimizeAfter(DockingWindow window, Runnable runnable)
    
protected  voidoptimizeWindowLayout()
    
final protected  voidreadLocations(ObjectInputStream in, RootWindow rootWindow, int version)
    
final protected  voidremoveChildWindow(DockingWindow window)
    
public  voidremoveListener(DockingWindowListener listener)
     Removes a previously added listener.
public  voidremoveTabMouseButtonListener(MouseButtonListener listenerDocking)
     Removes a mouse button listener that has been previously added using the DockingWindow.addTabMouseButtonListener(MouseButtonListener) .
final protected  voidremoveWindow(DockingWindow window)
    
abstract  voidremoveWindowComponent(DockingWindow window)
    
public  voidreplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)
     Replaces a child window with another window.
public  voidrestore()
     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  voidrestoreFocus()
     Requests that the last focused child window becomes visible and that focus is restored to the last focused component in that window.
abstract  voidrestoreWindowComponent(DockingWindow window)
    
public  voidrestoreWithAbort()
     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  voidrootChanged(RootWindow oldRoot, RootWindow newRoot)
    
protected  voidsetFocused(boolean focused)
    
protected  voidsetLastMinimizedDirection(Direction direction)
    
public  voidsetPopupMenuFactory(WindowPopupMenuFactory popupMenuFactory)
     Sets the popup menu factory for this window.
public  voidsetPreferredMinimizeDirection(Direction direction)
    

Sets the preferred minimize direction of this window.

protected  voidshowChildWindow(DockingWindow window)
    
 voidshowPopupMenu(MouseEvent event)
    
protected  booleanshowsWindowTitle()
    
public  SplitWindowsplit(DockingWindow splitWithWindow, Direction direction, float dividerLocation)
     Splits this window in the given direction.
protected  DropActionsplit(DockingWindow window, Direction splitDir)
    
public  DockingWindowDraggerstartDrag(RootWindow dropTarget)
     Starts a drag and drop operation for this window.
protected  WindowAncestorsstoreAncestors()
    
public  StringtoString()
    
public  FloatingWindowundock(Point location)
    

Undocks this window from it's window parent i.e.

public  FloatingWindowundockWithAbort(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  voidupdate()
    
protected  voidupdateButtonVisibility()
    
protected  voidupdateWindowItem(RootWindow rootWindow)
    
final protected  voidupdateWindowItems()
    
protected  voidwrite(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter)
    
protected  voidwriteLocations(ObjectOutputStream out)
    


Constructor Detail
DockingWindow
protected DockingWindow(WindowItem windowItem)(Code)




Method Detail
acceptChildDrop
protected DropAction acceptChildDrop(Point p, DockingWindow window)(Code)



acceptDrop
DropAction acceptDrop(Point p, DockingWindow window)(Code)



acceptInteriorDrop
protected DropAction acceptInteriorDrop(Point p, DockingWindow window)(Code)



acceptSplitDrop
protected DropAction acceptSplitDrop(Point p, DockingWindow window, int splitDistance)(Code)



acceptsSplitWith
protected boolean acceptsSplitWith(DockingWindow window)(Code)



addListener
public void addListener(DockingWindowListener listener)(Code)
Adds a listener which will reveive events for this window and all child windows.
Parameters:
  listener - the listener
since:
   IDW 1.1.0



addTabMouseButtonListener
public void addTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)

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



addWindow
final protected DockingWindow addWindow(DockingWindow window)(Code)



addWindowItem
protected void addWindowItem(DockingWindow w, int index)(Code)



afterWindowRemoved
protected void afterWindowRemoved(DockingWindow window)(Code)



beforeDrop
protected void beforeDrop(DockingWindow target) throws OperationAbortedException(Code)



beginOptimize
protected static void beginOptimize(DockingWindow window)(Code)



beginUpdateModel
protected static void beginUpdateModel()(Code)



childGainedFocus
void childGainedFocus(DockingWindow child, View view)(Code)



childInsideTab
protected boolean childInsideTab()(Code)
true if the child windows are inside tabs __exclude__



childRemoved
protected void childRemoved(DockingWindow child)(Code)



cleanUpModel
protected void cleanUpModel()(Code)



clearChildrenFocus
protected void clearChildrenFocus(DockingWindow child, View view)(Code)



clearFocus
protected void clearFocus(View view)(Code)



close
public void close()(Code)

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 DockingWindow.restore() method.

This method will call the DockingWindowListener.windowClosed(DockingWindow) method of all the listeners of this window and all window ancestors. The listeners of child windows will not be notified, for example closing a tab window containing views will not notify the listeners of views in that tab window.




closeWithAbort
public void closeWithAbort() throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the close operation was aborted by a window listener
See Also:   DockingWindow.close()
See Also:   DockingWindowListener.windowClosing(DockingWindow)
since:
   IDW 1.1.0



createPropertyObject
abstract protected PropertyMap createPropertyObject()(Code)



createTabWindow
protected DropAction createTabWindow(DockingWindow window)(Code)



detach
final protected void detach()(Code)



doAcceptDrop
protected DropAction doAcceptDrop(Point p, DockingWindow window)(Code)



doRemoveWindow
abstract protected void doRemoveWindow(DockingWindow window)(Code)



doReplace
abstract protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)(Code)



dock
public void dock()(Code)

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
public void dockWithAbort() throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the dock operation was aborted by a window listener
See Also:   DockingWindow.dock()
See Also:   DockingWindowListener.windowDocking(DockingWindow)
since:
   IDW 1.4.0



endOptimize
protected static void endOptimize()(Code)



endUpdateModel
protected static void endUpdateModel()(Code)



fireTabWindowMouseButtonEvent
void fireTabWindowMouseButtonEvent(MouseEvent event)(Code)



fireTabWindowMouseButtonEvent
void fireTabWindowMouseButtonEvent(DockingWindow window, MouseEvent event)(Code)



fireTitleChanged
protected void fireTitleChanged()(Code)



fireViewFocusChanged
protected void fireViewFocusChanged(View previouslyFocusedView, View focusedView)(Code)



fireWindowDocked
void fireWindowDocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)



fireWindowDocked
void fireWindowDocked(ArrayList dockedViews)(Code)



fireWindowDocking
void fireWindowDocking(DockingWindow window) throws OperationAbortedException(Code)



fireWindowHidden
protected void fireWindowHidden(DockingWindow window)(Code)



fireWindowMaximized
void fireWindowMaximized(DockingWindow window)(Code)



fireWindowMaximizing
void fireWindowMaximizing(DockingWindow window) throws OperationAbortedException(Code)



fireWindowMinimized
void fireWindowMinimized(DockingWindow window, DockingWindow[] oldAncestors)(Code)



fireWindowMinimizing
void fireWindowMinimizing(DockingWindow window) throws OperationAbortedException(Code)



fireWindowRestored
void fireWindowRestored(DockingWindow window)(Code)



fireWindowRestoring
void fireWindowRestoring(DockingWindow window) throws OperationAbortedException(Code)



fireWindowShown
protected void fireWindowShown(DockingWindow window)(Code)



fireWindowUndocked
void fireWindowUndocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)



fireWindowUndocking
void fireWindowUndocking(DockingWindow window) throws OperationAbortedException(Code)



getAncestors
protected DockingWindow[] getAncestors()(Code)



getBestFittedWindow
protected DockingWindow getBestFittedWindow(DockingWindow parentWindow)(Code)



getChildDropFilter
DropFilter getChildDropFilter()(Code)



getChildEdgeDepth
protected int getChildEdgeDepth(DockingWindow window, Direction dir)(Code)



getChildWindow
abstract public DockingWindow getChildWindow(int index)(Code)
Returns the child window with index index.
Parameters:
  index - the child window index the child window



getChildWindowCount
abstract public int getChildWindowCount()(Code)
Returns the number of child windows. the number of child windows



getChildWindowIndex
public int getChildWindowIndex(DockingWindow window)(Code)
Returns the index of a child windows.
Parameters:
  window - the child window the index of the child window, -1 if the window is not a child of this window



getContentWindow
protected DockingWindow getContentWindow(DockingWindow parent)(Code)



getDefaultDropAction
DropAction getDefaultDropAction()(Code)



getEdgeDepth
protected int getEdgeDepth(Direction dir)(Code)



getIcon
abstract public Icon getIcon()(Code)
Returns the icon for this window. the icon



getInsertTabDropFilter
DropFilter getInsertTabDropFilter()(Code)



getInteriorDropFilter
DropFilter getInteriorDropFilter()(Code)



getLastFocusedChildWindow
public DockingWindow getLastFocusedChildWindow()(Code)
Returns the child window that last contained focus. the child window that last contained focus, null if no child window has contained focus or the childhas been removed from this window



getLocationWindow
protected DockingWindow getLocationWindow()(Code)



getOptimizedWindow
protected DockingWindow getOptimizedWindow()(Code)
Returns the result after removing unnecessary tab windows which contains only one tab. the result after removing unnecessary tab windows which contains only one tab



getPopupMenuFactory
public WindowPopupMenuFactory getPopupMenuFactory()(Code)
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. the popup menu factory for this window, null if there is none



getPreferredFocusChild
protected DockingWindow getPreferredFocusChild()(Code)



getPreferredMinimizeDirection
public Direction getPreferredMinimizeDirection()(Code)

Gets the preferred minimize direction of this window. See DockingWindow.setPreferredMinimizeDirection(net.infonode.util.Direction) for more information.

the preferred minimize direction of this window, null if the closest WindowBar is used
since:
   IDW 1.3.0



getPropertyObject
abstract protected PropertyMap getPropertyObject()(Code)



getRootWindow
public RootWindow getRootWindow()(Code)
Returns the RootWindow which contains this window, null if there is none. the RootWindow, null if there is none



getSplitDropFilter
DropFilter getSplitDropFilter()(Code)



getTab
WindowTab getTab()(Code)



getTitle
public String getTitle()(Code)
Returns the title of this window. the window title



getUpdateModel
protected boolean getUpdateModel()(Code)



getWindowItem
protected WindowItem getWindowItem()(Code)



getWindowParent
public DockingWindow getWindowParent()(Code)
Returns the window parent of this window. the window parent of this window



getWindowProperties
public DockingWindowProperties getWindowProperties()(Code)
Returns the properties for this window. the properties for this window



hasParent
protected boolean hasParent(DockingWindow w)(Code)



init
protected void init()(Code)



insideTab
protected boolean insideTab()(Code)
true if this window is inside a tab __exclude__



internalClose
protected void internalClose()(Code)



internalReplaceChildWindow
protected DockingWindow internalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)



isChildShowingInRootWindow
protected boolean isChildShowingInRootWindow(DockingWindow child)(Code)



isClosable
public boolean isClosable()(Code)
Returns true if this window can be closed by the user. true if this window can be closed
See Also:   DockingWindow.close()
See Also:   DockingWindow.closeWithAbort()
since:
   IDW 1.2.0



isDockable
public boolean isDockable()(Code)
Returns true if this window can be docked to the root window from a floating window. true if this window can be docked
See Also:   DockingWindow.dock()
since:
   IDW 1.4.0



isMaximizable
public boolean isMaximizable()(Code)
Returns true if this window can be maximized by the user. true if this window can be maximized
See Also:   DockingWindow.maximize()
since:
   IDW 1.2.0



isMaximized
public boolean isMaximized()(Code)
Returns true if this window has a root window and is maximized in that root window or in a floating window. 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



isMinimizable
public boolean isMinimizable()(Code)
Returns true if this window can be minimized by the user. true if this window can be minimized
See Also:   DockingWindow.minimize()



isMinimized
public boolean isMinimized()(Code)
Returns true if this window is minimized, ie located in a WindowBar . true if this window is minimized



isRestorable
public boolean isRestorable()(Code)
Returns true if this window can be restored by the user. true if this window can be restored
See Also:   DockingWindow.restore()
since:
   IDW 1.2.0



isShowingInRootWindow
protected boolean isShowingInRootWindow()(Code)



isUndockable
public boolean isUndockable()(Code)
Returns true if this window can be undocked to a floating window. true if this window can be undocked
See Also:   DockingWindow.undock(Point)
since:
   IDW 1.4.0



isUndocked
public boolean isUndocked()(Code)



makeVisible
public void makeVisible()(Code)
Makes this window visible. This causes the tabs of all TabWindow parents containing this window to be selected.
since:
   IDW 1.1.0



maximize
final public void maximize()(Code)
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 DockingWindow.restore() method.


since:
   IDW 1.1.0



maximizeWithAbort
public void maximizeWithAbort() throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the maximize operation was aborted by a window listener
See Also:   DockingWindow.maximize()
See Also:   DockingWindowListener.windowMinimizing(DockingWindow)
since:
   IDW 1.4.0



minimize
public void minimize()(Code)
Minimizes this window. The window is minimized to the WindowBar in the preferred minimize direction, see DockingWindow.setPreferredMinimizeDirection(net.infonode.util.Direction) and DockingWindow.getPreferredMinimizeDirection() . If the WindowBar in that direction is not enabled, or the direction is null, thiw window is placed on the closest enabled WindowBar . If no suitable WindowBar 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 DockingWindow.restore() method.




minimize
public void minimize(Direction direction)(Code)
Minimizes this window to a WindowBar located in direction. If no suitable WindowBar 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 DockingWindow.restore() method.


Parameters:
  direction - the direction in which the window bar to be minimized to is located



minimizeWithAbort
public void minimizeWithAbort() throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the minimize operation was aborted by a window listener
See Also:   DockingWindow.minimize()
See Also:   DockingWindowListener.windowMinimizing(DockingWindow)
since:
   IDW 1.4.0



minimizeWithAbort
public void minimizeWithAbort(Direction direction) throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the minimize operation was aborted by a window listener
See Also:   DockingWindow.minimize(Direction)
See Also:   DockingWindowListener.windowMinimizing(DockingWindow)
since:
   IDW 1.4.0



needsTitleWindow
protected boolean needsTitleWindow()(Code)



notifyListeners
protected void notifyListeners(WindowAncestors ancestors)(Code)



oldRead
protected DockingWindow oldRead(ObjectInputStream in, ReadContext context) throws IOException(Code)



optimizeAfter
protected static void optimizeAfter(DockingWindow window, Runnable runnable)(Code)



optimizeWindowLayout
protected void optimizeWindowLayout()(Code)



readLocations
final protected void readLocations(ObjectInputStream in, RootWindow rootWindow, int version) throws IOException(Code)



removeChildWindow
final protected void removeChildWindow(DockingWindow window)(Code)



removeListener
public void removeListener(DockingWindowListener listener)(Code)
Removes a previously added listener.
Parameters:
  listener - the listener
since:
   IDW 1.1.0



removeTabMouseButtonListener
public void removeTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)
Removes a mouse button listener that has been previously added using the DockingWindow.addTabMouseButtonListener(MouseButtonListener) .
Parameters:
  listenerDocking - the listener
since:
   IDW 1.3.0



removeWindow
final protected void removeWindow(DockingWindow window)(Code)



removeWindowComponent
abstract void removeWindowComponent(DockingWindow window)(Code)



replaceChildWindow
public void replaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)
Replaces a child window with another window.
Parameters:
  oldWindow - the child window to replaceChildWindow
Parameters:
  newWindow - the window to replaceChildWindow it with



restore
public void restore()(Code)
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.



restoreFocus
public void restoreFocus()(Code)
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



restoreWindowComponent
abstract void restoreWindowComponent(DockingWindow window)(Code)



restoreWithAbort
public void restoreWithAbort() throws OperationAbortedException(Code)
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.
throws:
  OperationAbortedException - if the restore operation was aborted by a window listener
See Also:   DockingWindow.restore()
See Also:   DockingWindowListener.windowMinimizing(DockingWindow)
since:
   IDW 1.4.0



rootChanged
protected void rootChanged(RootWindow oldRoot, RootWindow newRoot)(Code)



setFocused
protected void setFocused(boolean focused)(Code)



setLastMinimizedDirection
protected void setLastMinimizedDirection(Direction direction)(Code)



setPopupMenuFactory
public void setPopupMenuFactory(WindowPopupMenuFactory popupMenuFactory)(Code)
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



setPreferredMinimizeDirection
public void setPreferredMinimizeDirection(Direction direction)(Code)

Sets the preferred minimize direction of this window. If the WindowBar in this direction is enabled this window will be placed on that bar when DockingWindow.minimize() 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 another WindowBar .


Parameters:
  direction - the preferred minimize direction of this window, null (which is default value) means use theclosest, enabled WindowBar
since:
   IDW 1.3.0



showChildWindow
protected void showChildWindow(DockingWindow window)(Code)



showPopupMenu
void showPopupMenu(MouseEvent event)(Code)



showsWindowTitle
protected boolean showsWindowTitle()(Code)



split
public SplitWindow split(DockingWindow splitWithWindow, Direction direction, float dividerLocation)(Code)
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 with
Parameters:
  direction - the split direction
Parameters:
  dividerLocation - the relative split divider location (0 - 1) the resulting split window



split
protected DropAction split(DockingWindow window, Direction splitDir)(Code)



startDrag
public DockingWindowDragger startDrag(RootWindow dropTarget)(Code)
Starts a drag and drop operation for this window.
Parameters:
  dropTarget - the RootWindow in which the window can be dropped an DockingWindowDragger object which controls the drag and drop operation
since:
   IDW 1.3.0



storeAncestors
protected WindowAncestors storeAncestors()(Code)



toString
public String toString()(Code)



undock
public FloatingWindow undock(Point location)(Code)

Undocks this window from it's window parent i.e. creates a FloatingWindow containing this window.

The window can be docked again by calling DockingWindow.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 the floating window containing the undocked window
since:
   IDW 1.4.0



undockWithAbort
public FloatingWindow undockWithAbort(Point location) throws OperationAbortedException(Code)
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.
Parameters:
  location - floating window location in screen coordinates the floating window containing the undocked window
throws:
  OperationAbortedException - if the undock operation was aborted by a window listener
See Also:   DockingWindow.undock(Point)
See Also:   DockingWindowListener.windowClosing(DockingWindow)
since:
   IDW 1.4.0



update
abstract protected void update()(Code)



updateButtonVisibility
protected void updateButtonVisibility()(Code)



updateWindowItem
protected void updateWindowItem(RootWindow rootWindow)(Code)



updateWindowItems
final protected void updateWindowItems()(Code)



write
protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws IOException(Code)



writeLocations
protected void writeLocations(ObjectOutputStream out) throws IOException(Code)



Methods inherited from net.infonode.gui.panel.BasePanel
protected void setComponent(Component c)(Code)(Java Doc)
protected void setSouthComponent(Component c)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.