Java Doc for WindowManager.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » client » gui » 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 » Database Client » squirrel sql 2.6.5a » net.sourceforge.squirrel_sql.client.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.squirrel_sql.client.gui.WindowManager

WindowManager
public class WindowManager (Code)
This class manages the windows for the application. TODO: Correct these notes

When a session closes the window manager will ensure that all of the windows for that sesion are closed.

Similarily when a window is closed the windows manager will ensure that references to the window are removed for the session. JASON: Prior to this patch there was some code movement from this class to Sessionmanager. The idea being that Sessionmanager was the controller. Do we still want to do this? Remember in the future there will probably be an SDI as well as MDI version of the windows.
author:
   Colin Bell
author:
   Jason Height




Constructor Summary
public  WindowManager(IApplication app)
     Ctor.

Method Summary
public  voidactivateNextSessionWindow()
    
public  voidactivatePreviousSessionWindow()
    
public  voidaddSessionSheetListener(InternalFrameListener listener)
     Adds a listener to the sheets attached to this session

When new sheets are constructed, they are automatically added to the session via the registerSessionSheet method.

public synchronized  SessionInternalFramecreateInternalFrame(ISession session)
     Create a new internal frame for the passed session.
public synchronized  ObjectTreeInternalFramecreateObjectTreeInternalFrame(ISession session)
     Creates a new Object Tree internal frame for the passed session.
public synchronized  SQLInternalFramecreateSQLInternalFrame(ISession session)
     Creates a new SQL View internal frame for the passed session.
public  AliasesListInternalFramegetAliasesListInternalFrame()
    
public  WindowStategetAliasesWindowState()
    
public  BaseSessionInternalFrame[]getAllFramesOfSession(IIdentifier sessionIdentifier)
    
public  DriversListInternalFramegetDriversListInternalFrame()
    
public  WindowStategetDriversWindowState()
    
public  MainFramegetMainFrame()
     Retrieve applications main frame.
public  voidmoveToFront(Window win)
    
public  voidmoveToFront(JInternalFrame fr)
    
protected  voidrefireSessionSheetActivated(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetClosed(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetClosing(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetDeactivated(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetDeiconified(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetIconified(InternalFrameEvent evt)
    
protected  voidrefireSessionSheetOpened(InternalFrameEvent evt)
    
public synchronized  voidregisterSessionSheet(BaseSessionInternalFrame sheet)
     Registers a sheet that is attached to a session.
public  voidshowCopyAliasInternalFrame(SQLAlias alias)
     Create and show a new maintenance sheet that will allow the user to create a new alias that is a copy of the passed one.
public  voidshowCopyDriverInternalFrame(ISQLDriver driver)
     Create and show a new maintenance sheet that will allow the user to create a new driver that is a copy of the passed one.
public synchronized  EditWhereColsSheetshowEditWhereColsDialog(IObjectTreeAPI tree, IDatabaseObjectInfo objectInfo)
     Get a EditWhereCols sheet for the passed session.
public  voidshowModifyAliasInternalFrame(ISQLAlias alias)
     Get a maintenance sheet for the passed alias.
public  voidshowModifyDriverInternalFrame(ISQLDriver driver)
     Get a maintenance sheet for the passed driver.
public  voidshowNewAliasInternalFrame()
     Create and show a new maintenance window to allow the user to create a new alias.
public  voidshowNewDriverInternalFrame()
     Create and show a new maintenance window to allow the user to create a new driver.
public synchronized  SQLFilterSheetshowSQLFilterDialog(IObjectTreeAPI objectTree, IDatabaseObjectInfo objectInfo)
     Get an SQL Filter sheet for the passed data.
public synchronized  voidshowSessionPropertiesDialog(ISession session, int tabIndexToSelect)
     Get a properties dialog for the passed session.


Constructor Detail
WindowManager
public WindowManager(IApplication app)(Code)
Ctor.
Parameters:
  app - Application API.
throws:
  IllegalArgumentException - Thrown if null IApplication passed.




Method Detail
activateNextSessionWindow
public void activateNextSessionWindow()(Code)



activatePreviousSessionWindow
public void activatePreviousSessionWindow()(Code)



addSessionSheetListener
public void addSessionSheetListener(InternalFrameListener listener)(Code)
Adds a listener to the sheets attached to this session

When new sheets are constructed, they are automatically added to the session via the registerSessionSheet method.

All other listener events fire due to interaction with the frame.

The InternalFrameListener.internalFrameOpened is a good location to tailor the session sheets (ie internal frame) from a plugin. Examples can be found in the oracle plugin of how to modify how a session sheet.




createInternalFrame
public synchronized SessionInternalFrame createInternalFrame(ISession session)(Code)
Create a new internal frame for the passed session.
Parameters:
  session - Session we are creating internal frame for.
throws:
  IllegalArgumentException - Thrown if ISession is passed as null.



createObjectTreeInternalFrame
public synchronized ObjectTreeInternalFrame createObjectTreeInternalFrame(ISession session)(Code)
Creates a new Object Tree internal frame for the passed session.
Parameters:
  session - Session we are creating internal frame for.
throws:
  IllegalArgumentException - Thrown if ISession is passed as null.



createSQLInternalFrame
public synchronized SQLInternalFrame createSQLInternalFrame(ISession session)(Code)
Creates a new SQL View internal frame for the passed session.
Parameters:
  session - Session we are creating internal frame for.
throws:
  IllegalArgumentException - Thrown if ISession is passed as null.



getAliasesListInternalFrame
public AliasesListInternalFrame getAliasesListInternalFrame()(Code)



getAliasesWindowState
public WindowState getAliasesWindowState()(Code)



getAllFramesOfSession
public BaseSessionInternalFrame[] getAllFramesOfSession(IIdentifier sessionIdentifier)(Code)



getDriversListInternalFrame
public DriversListInternalFrame getDriversListInternalFrame()(Code)



getDriversWindowState
public WindowState getDriversWindowState()(Code)



getMainFrame
public MainFrame getMainFrame()(Code)
Retrieve applications main frame. Applications main frame.



moveToFront
public void moveToFront(Window win)(Code)



moveToFront
public void moveToFront(JInternalFrame fr)(Code)



refireSessionSheetActivated
protected void refireSessionSheetActivated(InternalFrameEvent evt)(Code)



refireSessionSheetClosed
protected void refireSessionSheetClosed(InternalFrameEvent evt)(Code)



refireSessionSheetClosing
protected void refireSessionSheetClosing(InternalFrameEvent evt)(Code)



refireSessionSheetDeactivated
protected void refireSessionSheetDeactivated(InternalFrameEvent evt)(Code)



refireSessionSheetDeiconified
protected void refireSessionSheetDeiconified(InternalFrameEvent evt)(Code)



refireSessionSheetIconified
protected void refireSessionSheetIconified(InternalFrameEvent evt)(Code)



refireSessionSheetOpened
protected void refireSessionSheetOpened(InternalFrameEvent evt)(Code)



registerSessionSheet
public synchronized void registerSessionSheet(BaseSessionInternalFrame sheet)(Code)
Registers a sheet that is attached to a session. This sheet will be automatically closed when the session is closing.

There is no need to call this method manually. Any classes that properly extend BaseSessionInternalFrame will be registered.




showCopyAliasInternalFrame
public void showCopyAliasInternalFrame(SQLAlias alias)(Code)
Create and show a new maintenance sheet that will allow the user to create a new alias that is a copy of the passed one. The new maintenance sheet.
throws:
  IllegalArgumentException - Thrown if a null ISQLAlias passed.



showCopyDriverInternalFrame
public void showCopyDriverInternalFrame(ISQLDriver driver)(Code)
Create and show a new maintenance sheet that will allow the user to create a new driver that is a copy of the passed one. The new maintenance sheet.
throws:
  IllegalArgumentException - Thrown if a null ISQLDriver passed.



showEditWhereColsDialog
public synchronized EditWhereColsSheet showEditWhereColsDialog(IObjectTreeAPI tree, IDatabaseObjectInfo objectInfo)(Code)
Get a EditWhereCols sheet for the passed session. If one already exists it will be brought to the front. If one doesn't exist it will be created.
Parameters:
  tree - Object tree containing the table.
Parameters:
  objectInfo - An instance of a class containing information aboutthe database metadata. The maintenance sheet for the passed session.



showModifyAliasInternalFrame
public void showModifyAliasInternalFrame(ISQLAlias alias)(Code)
Get a maintenance sheet for the passed alias. If a maintenance sheet already exists it will be brought to the front. If one doesn't exist it will be created.
Parameters:
  alias - The alias that user has requested to modify.
throws:
  IllegalArgumentException - Thrown if a null ISQLAlias passed.



showModifyDriverInternalFrame
public void showModifyDriverInternalFrame(ISQLDriver driver)(Code)
Get a maintenance sheet for the passed driver. If a maintenance sheet already exists it will be brought to the front. If one doesn't exist it will be created.
Parameters:
  driver - The driver that user has requested to modify.
throws:
  IllegalArgumentException - Thrown if a null ISQLDriver passed.



showNewAliasInternalFrame
public void showNewAliasInternalFrame()(Code)
Create and show a new maintenance window to allow the user to create a new alias.



showNewDriverInternalFrame
public void showNewDriverInternalFrame()(Code)
Create and show a new maintenance window to allow the user to create a new driver.



showSQLFilterDialog
public synchronized SQLFilterSheet showSQLFilterDialog(IObjectTreeAPI objectTree, IDatabaseObjectInfo objectInfo)(Code)
Get an SQL Filter sheet for the passed data. If one already exists it will be brought to the front. If one doesn't exist it will be created.
Parameters:
  objectTree -
Parameters:
  objectInfo - An instance of a class containing information aboutthe database metadata. The filter dialog.
throws:
  IllegalArgumentException - Thrown if null ContentsTab,IObjectTreeAPI, or IDatabaseObjectInfo passed.



showSessionPropertiesDialog
public synchronized void showSessionPropertiesDialog(ISession session, int tabIndexToSelect)(Code)
Get a properties dialog for the passed session. If one already exists it will be brought to the front. If one doesn't exist it will be created.
Parameters:
  session - The session that user has request property dialog for.
Parameters:
  tabNameToSelect - The name (title) of the Tab to select. First Tab will be selectedif tabNameToSelect is null or doesnt match any tab.
Parameters:
  tabNameToSelect -
throws:
  IllegalArgumentException - Thrown if a null ISession passed.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.