Java Doc for FloatingWindow.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.docking.DockingWindow
   net.infonode.docking.FloatingWindow

FloatingWindow
public class FloatingWindow extends DockingWindow (Code)

A window that is floating on-top of the root window and containing another docking window.

A window can be maximized inside the floating window just as in a root window.

After a floating window has been closed it shouldn't be reused again.

Floating window inherits its component properties and shaped panel properties from the root window's window area. It is possible to set specific component and shaped panel properties for a floating window in the net.infonode.docking.properties.FloatingWindowProperties , see FloatingWindow.getFloatingWindowProperties .

A floating window is created by calling the net.infonode.docking.RootWindow.createFloatingWindow(PointDimensionDockingWindow) method or indirectly created by calling the net.infonode.docking.DockingWindow.undock(Point) method.

It's possible to add a menu bar to the floating window. Just call:

 myFloatingWindow.getRootPane().setJMenuBar(myMenuBar);
 

The floating window is placed as the BorderLayout.CENTER component of the content pane of the root pane. You can add additional components in the other BorderLayout positions. Example, add a status label at the bottom:

 myFloatingWindow.getRootPane().getContentPane().add(myStstusLabel, BroderLayout.SOUTH);
 

author:
   $Author: jesper $
version:
   $Revision: 1.51 $
since:
   IDW 1.4.0



Constructor Summary
 FloatingWindow(RootWindow rootWindow)
    
 FloatingWindow(RootWindow rootWindow, DockingWindow window, Point p, Dimension internalSize)
    

Method Summary
protected  DropActionacceptInteriorDrop(Point p, DockingWindow window)
    
protected  booleanacceptsSplitWith(DockingWindow window)
    
protected  voidafterWindowRemoved(DockingWindow window)
    
public  voidclose()
    
protected  PropertyMapcreatePropertyObject()
    
protected  DropActiondoAcceptDrop(Point p, DockingWindow window)
    
protected  voiddoRemoveWindow(DockingWindow window)
    
protected  voiddoReplace(DockingWindow oldWindow, DockingWindow newWindow)
    
protected  voidfireTitleChanged()
    
public  DockingWindowgetChildWindow(int index)
    
public  intgetChildWindowCount()
    
 JPanelgetDragPanel()
    
public  FloatingWindowPropertiesgetFloatingWindowProperties()
    

Returns the property values for this floating window.

Floating window inherits its component properties and shaped panel properties from the root window's window area.

public  IcongetIcon()
    
public  DockingWindowgetMaximizedWindow()
     Returns the maximized window in this floating window.
protected  PropertyMapgetPropertyObject()
    
public  DockingWindowgetWindow()
     Returns the top level docking window inside this floating window.
public  DockingWindowPropertiesgetWindowProperties()
    

Returns the properties for this window.

public  booleanisDockable()
    
public  booleanisMaximizable()
    
public  booleanisMinimizable()
    
public  booleanisRestorable()
    
public  booleanisUndockable()
    
public  booleanisUndocked()
    
public  voidminimize()
    
public  voidminimize(Direction direction)
    
protected  DockingWindowread(ObjectInputStream in, ReadContext context, ViewReader viewReader)
    
 voidremoveWindowComponent(DockingWindow window)
    
 voidrestoreWindowComponent(DockingWindow window)
    
public  voidsetMaximizedWindow(DockingWindow window)
     Sets the maximized window in this floating window.
public  voidsetWindow(DockingWindow newWindow)
     Sets the top level docking window inside this floating window.
Parameters:
  newWindow - the top level docking window, null for no window i.e.
protected  voidshowChildWindow(DockingWindow window)
    
 voidstartDrag()
    
 voidstopDrag()
    
protected  voidupdate()
    
 booleanwindowContainsPoint(Point p)
    
protected  voidwrite(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter)
    


Constructor Detail
FloatingWindow
FloatingWindow(RootWindow rootWindow)(Code)



FloatingWindow
FloatingWindow(RootWindow rootWindow, DockingWindow window, Point p, Dimension internalSize)(Code)




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



acceptsSplitWith
protected boolean acceptsSplitWith(DockingWindow window)(Code)



afterWindowRemoved
protected void afterWindowRemoved(DockingWindow window)(Code)



close
public void close()(Code)



createPropertyObject
protected PropertyMap createPropertyObject()(Code)



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



doRemoveWindow
protected void doRemoveWindow(DockingWindow window)(Code)



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



fireTitleChanged
protected void fireTitleChanged()(Code)



getChildWindow
public DockingWindow getChildWindow(int index)(Code)



getChildWindowCount
public int getChildWindowCount()(Code)



getDragPanel
JPanel getDragPanel()(Code)



getFloatingWindowProperties
public FloatingWindowProperties getFloatingWindowProperties()(Code)

Returns the property values for this floating window.

Floating window inherits its component properties and shaped panel properties from the root window's window area. It is possible to set specific component and shaped panel properties for a floating window in the net.infonode.docking.properties.FloatingWindowProperties .

the property values for this floating window



getIcon
public Icon getIcon()(Code)



getMaximizedWindow
public DockingWindow getMaximizedWindow()(Code)
Returns the maximized window in this floating window. maximized window or null if no window is maximized



getPropertyObject
protected PropertyMap getPropertyObject()(Code)



getWindow
public DockingWindow getWindow()(Code)
Returns the top level docking window inside this floating window. the top level docking window inside this floating window



getWindowProperties
public DockingWindowProperties getWindowProperties()(Code)

Returns the properties for this window.

Note: A floating window only uses the close enabled and title provider properties of the docking window properties.

the properties for this window



isDockable
public boolean isDockable()(Code)



isMaximizable
public boolean isMaximizable()(Code)



isMinimizable
public boolean isMinimizable()(Code)



isRestorable
public boolean isRestorable()(Code)



isUndockable
public boolean isUndockable()(Code)



isUndocked
public boolean isUndocked()(Code)



minimize
public void minimize()(Code)
Floating window cannot be minimized



minimize
public void minimize(Direction direction)(Code)
Floating window cannot be minimized
Parameters:
  direction -



read
protected DockingWindow read(ObjectInputStream in, ReadContext context, ViewReader viewReader) throws IOException(Code)



removeWindowComponent
void removeWindowComponent(DockingWindow window)(Code)



restoreWindowComponent
void restoreWindowComponent(DockingWindow window)(Code)



setMaximizedWindow
public void setMaximizedWindow(DockingWindow window)(Code)
Sets the maximized window in this floating window.
Parameters:
  window - the window to maximize, must be a member of the window tree inside this floating window



setWindow
public void setWindow(DockingWindow newWindow)(Code)
Sets the top level docking window inside this floating window.
Parameters:
  newWindow - the top level docking window, null for no window i.e. empty floating window



showChildWindow
protected void showChildWindow(DockingWindow window)(Code)



startDrag
void startDrag()(Code)



stopDrag
void stopDrag()(Code)



update
protected void update()(Code)



windowContainsPoint
boolean windowContainsPoint(Point p)(Code)



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



Methods inherited from net.infonode.docking.DockingWindow
protected DropAction acceptChildDrop(Point p, DockingWindow window)(Code)(Java Doc)
DropAction acceptDrop(Point p, DockingWindow window)(Code)(Java Doc)
protected DropAction acceptInteriorDrop(Point p, DockingWindow window)(Code)(Java Doc)
protected DropAction acceptSplitDrop(Point p, DockingWindow window, int splitDistance)(Code)(Java Doc)
protected boolean acceptsSplitWith(DockingWindow window)(Code)(Java Doc)
public void addListener(DockingWindowListener listener)(Code)(Java Doc)
public void addTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)(Java Doc)
final protected DockingWindow addWindow(DockingWindow window)(Code)(Java Doc)
protected void addWindowItem(DockingWindow w, int index)(Code)(Java Doc)
protected void afterWindowRemoved(DockingWindow window)(Code)(Java Doc)
protected void beforeDrop(DockingWindow target) throws OperationAbortedException(Code)(Java Doc)
protected static void beginOptimize(DockingWindow window)(Code)(Java Doc)
protected static void beginUpdateModel()(Code)(Java Doc)
void childGainedFocus(DockingWindow child, View view)(Code)(Java Doc)
protected boolean childInsideTab()(Code)(Java Doc)
protected void childRemoved(DockingWindow child)(Code)(Java Doc)
protected void cleanUpModel()(Code)(Java Doc)
protected void clearChildrenFocus(DockingWindow child, View view)(Code)(Java Doc)
protected void clearFocus(View view)(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void closeWithAbort() throws OperationAbortedException(Code)(Java Doc)
abstract protected PropertyMap createPropertyObject()(Code)(Java Doc)
protected DropAction createTabWindow(DockingWindow window)(Code)(Java Doc)
final protected void detach()(Code)(Java Doc)
protected DropAction doAcceptDrop(Point p, DockingWindow window)(Code)(Java Doc)
abstract protected void doRemoveWindow(DockingWindow window)(Code)(Java Doc)
abstract protected void doReplace(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc)
public void dock()(Code)(Java Doc)
public void dockWithAbort() throws OperationAbortedException(Code)(Java Doc)
protected static void endOptimize()(Code)(Java Doc)
protected static void endUpdateModel()(Code)(Java Doc)
void fireTabWindowMouseButtonEvent(MouseEvent event)(Code)(Java Doc)
void fireTabWindowMouseButtonEvent(DockingWindow window, MouseEvent event)(Code)(Java Doc)
protected void fireTitleChanged()(Code)(Java Doc)
protected void fireViewFocusChanged(View previouslyFocusedView, View focusedView)(Code)(Java Doc)
void fireWindowDocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc)
void fireWindowDocked(ArrayList dockedViews)(Code)(Java Doc)
void fireWindowDocking(DockingWindow window) throws OperationAbortedException(Code)(Java Doc)
protected void fireWindowHidden(DockingWindow window)(Code)(Java Doc)
void fireWindowMaximized(DockingWindow window)(Code)(Java Doc)
void fireWindowMaximizing(DockingWindow window) throws OperationAbortedException(Code)(Java Doc)
void fireWindowMinimized(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc)
void fireWindowMinimizing(DockingWindow window) throws OperationAbortedException(Code)(Java Doc)
void fireWindowRestored(DockingWindow window)(Code)(Java Doc)
void fireWindowRestoring(DockingWindow window) throws OperationAbortedException(Code)(Java Doc)
protected void fireWindowShown(DockingWindow window)(Code)(Java Doc)
void fireWindowUndocked(DockingWindow window, DockingWindow[] oldAncestors)(Code)(Java Doc)
void fireWindowUndocking(DockingWindow window) throws OperationAbortedException(Code)(Java Doc)
protected DockingWindow[] getAncestors()(Code)(Java Doc)
protected DockingWindow getBestFittedWindow(DockingWindow parentWindow)(Code)(Java Doc)
DropFilter getChildDropFilter()(Code)(Java Doc)
protected int getChildEdgeDepth(DockingWindow window, Direction dir)(Code)(Java Doc)
abstract public DockingWindow getChildWindow(int index)(Code)(Java Doc)
abstract public int getChildWindowCount()(Code)(Java Doc)
public int getChildWindowIndex(DockingWindow window)(Code)(Java Doc)
protected DockingWindow getContentWindow(DockingWindow parent)(Code)(Java Doc)
DropAction getDefaultDropAction()(Code)(Java Doc)
protected int getEdgeDepth(Direction dir)(Code)(Java Doc)
abstract public Icon getIcon()(Code)(Java Doc)
DropFilter getInsertTabDropFilter()(Code)(Java Doc)
DropFilter getInteriorDropFilter()(Code)(Java Doc)
public DockingWindow getLastFocusedChildWindow()(Code)(Java Doc)
protected DockingWindow getLocationWindow()(Code)(Java Doc)
protected DockingWindow getOptimizedWindow()(Code)(Java Doc)
public WindowPopupMenuFactory getPopupMenuFactory()(Code)(Java Doc)
protected DockingWindow getPreferredFocusChild()(Code)(Java Doc)
public Direction getPreferredMinimizeDirection()(Code)(Java Doc)
abstract protected PropertyMap getPropertyObject()(Code)(Java Doc)
public RootWindow getRootWindow()(Code)(Java Doc)
DropFilter getSplitDropFilter()(Code)(Java Doc)
WindowTab getTab()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
protected boolean getUpdateModel()(Code)(Java Doc)
protected WindowItem getWindowItem()(Code)(Java Doc)
public DockingWindow getWindowParent()(Code)(Java Doc)
public DockingWindowProperties getWindowProperties()(Code)(Java Doc)
protected boolean hasParent(DockingWindow w)(Code)(Java Doc)
protected void init()(Code)(Java Doc)
protected boolean insideTab()(Code)(Java Doc)
protected void internalClose()(Code)(Java Doc)
protected DockingWindow internalReplaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc)
protected boolean isChildShowingInRootWindow(DockingWindow child)(Code)(Java Doc)
public boolean isClosable()(Code)(Java Doc)
public boolean isDockable()(Code)(Java Doc)
public boolean isMaximizable()(Code)(Java Doc)
public boolean isMaximized()(Code)(Java Doc)
public boolean isMinimizable()(Code)(Java Doc)
public boolean isMinimized()(Code)(Java Doc)
public boolean isRestorable()(Code)(Java Doc)
protected boolean isShowingInRootWindow()(Code)(Java Doc)
public boolean isUndockable()(Code)(Java Doc)
public boolean isUndocked()(Code)(Java Doc)
public void makeVisible()(Code)(Java Doc)
final public void maximize()(Code)(Java Doc)
public void maximizeWithAbort() throws OperationAbortedException(Code)(Java Doc)
public void minimize()(Code)(Java Doc)
public void minimize(Direction direction)(Code)(Java Doc)
public void minimizeWithAbort() throws OperationAbortedException(Code)(Java Doc)
public void minimizeWithAbort(Direction direction) throws OperationAbortedException(Code)(Java Doc)
protected boolean needsTitleWindow()(Code)(Java Doc)
protected void notifyListeners(WindowAncestors ancestors)(Code)(Java Doc)
protected DockingWindow oldRead(ObjectInputStream in, ReadContext context) throws IOException(Code)(Java Doc)
protected static void optimizeAfter(DockingWindow window, Runnable runnable)(Code)(Java Doc)
protected void optimizeWindowLayout()(Code)(Java Doc)
final protected void readLocations(ObjectInputStream in, RootWindow rootWindow, int version) throws IOException(Code)(Java Doc)
final protected void removeChildWindow(DockingWindow window)(Code)(Java Doc)
public void removeListener(DockingWindowListener listener)(Code)(Java Doc)
public void removeTabMouseButtonListener(MouseButtonListener listenerDocking)(Code)(Java Doc)
final protected void removeWindow(DockingWindow window)(Code)(Java Doc)
abstract void removeWindowComponent(DockingWindow window)(Code)(Java Doc)
public void replaceChildWindow(DockingWindow oldWindow, DockingWindow newWindow)(Code)(Java Doc)
public void restore()(Code)(Java Doc)
public void restoreFocus()(Code)(Java Doc)
abstract void restoreWindowComponent(DockingWindow window)(Code)(Java Doc)
public void restoreWithAbort() throws OperationAbortedException(Code)(Java Doc)
protected void rootChanged(RootWindow oldRoot, RootWindow newRoot)(Code)(Java Doc)
protected void setFocused(boolean focused)(Code)(Java Doc)
protected void setLastMinimizedDirection(Direction direction)(Code)(Java Doc)
public void setPopupMenuFactory(WindowPopupMenuFactory popupMenuFactory)(Code)(Java Doc)
public void setPreferredMinimizeDirection(Direction direction)(Code)(Java Doc)
protected void showChildWindow(DockingWindow window)(Code)(Java Doc)
void showPopupMenu(MouseEvent event)(Code)(Java Doc)
protected boolean showsWindowTitle()(Code)(Java Doc)
public SplitWindow split(DockingWindow splitWithWindow, Direction direction, float dividerLocation)(Code)(Java Doc)
protected DropAction split(DockingWindow window, Direction splitDir)(Code)(Java Doc)
public DockingWindowDragger startDrag(RootWindow dropTarget)(Code)(Java Doc)
protected WindowAncestors storeAncestors()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public FloatingWindow undock(Point location)(Code)(Java Doc)
public FloatingWindow undockWithAbort(Point location) throws OperationAbortedException(Code)(Java Doc)
abstract protected void update()(Code)(Java Doc)
protected void updateButtonVisibility()(Code)(Java Doc)
protected void updateWindowItem(RootWindow rootWindow)(Code)(Java Doc)
final protected void updateWindowItems()(Code)(Java Doc)
protected void write(ObjectOutputStream out, WriteContext context, ViewWriter viewWriter) throws IOException(Code)(Java Doc)
protected void writeLocations(ObjectOutputStream out) throws IOException(Code)(Java Doc)

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