Java Doc for ConnectionsTreePanel.java in  » Database-Client » executequery » org » executequery » gui » browser » 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 » executequery » org.executequery.gui.browser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.executequery.gui.AbstractDockedTabActionPanel
   org.executequery.gui.browser.ConnectionsTreePanel

ConnectionsTreePanel
public class ConnectionsTreePanel extends AbstractDockedTabActionPanel implements ConnectionListener,TreeExpansionListener,TreeSelectionListener(Code)

author:
   Takis Diakoumis
version:
   $Revision: 1.27 $

Inner Class :public class PopupMenuActionListener extends ReflectiveAction

Field Summary
final public static  StringMENU_ITEM_KEY
    
final public static  StringPROPERTY_KEY
    
final public static  StringTITLE
    

Constructor Summary
public  ConnectionsTreePanel()
    

Method Summary
protected  voidaddTreeListener()
     Adds the tree listener.
public  voidconnected(ConnectionEvent connectionEvent)
     Indicates a connection has been established.
public  voiddeleteConnection()
     Deletes the selected connection (host node) from the list.
public  voiddeleteConnection(BrowserTreeNode node)
     Deletes the specified connection (host node) from the list.
public  voiddisconnected(ConnectionEvent connectionEvent)
     Indicates a connection has been closed.
protected  DatabaseConnectiongetConnectionAt(Point point)
     Returns the database connection at the specified point.
protected  DatabaseConnectiongetConnectionAt(TreePath path)
     Returns the database connection associated with the specified path.
protected  ConnectionObjectgetConnectionObject(BrowserTreeNode child)
     Returns the ConnectionObject (host node) associated with the specified child node.
protected  DatabaseConnectiongetDatabaseConnection(BrowserTreeNode child)
     Returns the connection properties object associated with the specified child node.
public  StringgetMenuItemKey()
     Returns the name defining the menu cache property for this docked tab view.
protected  String[]getMetaKeyNames(BrowserTreeNode child)
     Returns the available meta key names associated with the specified child node.
protected  BrowserTreeNodegetOldBrowserNodeSelection()
     Returns the previously selected browse node before the current selection.
protected  TreePathgetOldSelectionPath()
     Returns the previosuly selected path before the current selection.
protected  BrowserTreeNodegetParentConnectionNode(DatabaseConnection dc)
    
protected  BrowserTreeNodegetParentNode(BrowserTreeNode child)
    
public  StringgetPropertyKey()
     Returns the name defining the property name for this docked tab view.
protected  BrowserTreeNodegetSelectedBrowserNode()
     Returns the currently selected node's user object where the node is a BrowserTreeNode and the user object is a DatabaseObject.
public  DatabaseConnectiongetSelectedDatabaseConnection()
     Returns the selected database connection.
protected  DatabaseObjectgetSelectedDatabaseObject()
     Returns the currently selected node's user object where the node is a BrowserTreeNode and the user object is a DatabaseObject.
protected  ConnectionObjectgetSelectedMetaObject()
     Returns the selected meta object host node.
public  StringgetTitle()
     Returns the display title for this view.
public  booleanisRootSelectOnDisconnect()
    
protected  booleanisTypeParentSelected()
     Returns the whether the currently selected node's user object is a parent type where the node is a BrowserTreeNode and the user object is a DatabaseObject.
public  voidmoveConnectionDown()
     Moves the selected connection (host node) down in the list.
public  voidmoveConnectionUp()
     Moves the selected connection (host node) up in the list.
public  voidnewConnection()
     Creates a new connection and adds it to the bottom of the list.
public  voidnewConnection(DatabaseConnection dc)
     Creates a new connection based on the specified connection.
protected  voidnodeNameValueChanged(ConnectionObject metaObject)
     Indicates that a node name has changed and fires a call to repaint the tree display.
public  voidreloadPath(TreePath path)
     Reloads the specified tree path.
public  voidreloadSelection()
     Reloads the currently selected node.
public  voidremoveSelectedNode()
     Removes the selected tree node (database object) from the tree.
protected  voidremoveTreeListener()
     Removes the tree listener.
public  voidremoveTreeNode()
     Removes the selected node.
This will attempt to propagate the call to the connected database using a DROP statement.
protected  voidselectBrowserNode(String prefix)
     Selects the node that matches the specified prefix forward from the currently selected node.
protected  voidselectedNodeConnected()
     Notification that the currently selected node (a host) has had their associated db connection created.
protected  voidselectedNodeDisconnected()
     Notification that the currently selected node (a host) has had their associated db connection closed.
protected  voidsetNodeSelected(DefaultMutableTreeNode node)
     Selects the specified node.
public  voidsetRootSelectOnDisconnect(boolean rootSelectOnDisconnect)
    
public  voidsetSelectedConnection(DatabaseConnection dc, boolean reload)
     Sets the selected connection tree node to the specified database connection.
public  voidsetSelectedConnection(DatabaseConnection dc)
     Sets the selected connection tree node to the specified database connection.
public  StringtoString()
    
public  voidtreeCollapsed(TreeExpansionEvent e)
    
public  voidtreeExpanded(TreeExpansionEvent e)
    
public  voidvalueChanged(TreeSelectionEvent e)
     Called whenever the value of the selection changes.

Field Detail
MENU_ITEM_KEY
final public static String MENU_ITEM_KEY(Code)



PROPERTY_KEY
final public static String PROPERTY_KEY(Code)



TITLE
final public static String TITLE(Code)
the title for this panel




Constructor Detail
ConnectionsTreePanel
public ConnectionsTreePanel()(Code)
Creates a new instance of ConnectionsPanel




Method Detail
addTreeListener
protected void addTreeListener()(Code)
Adds the tree listener.



connected
public void connected(ConnectionEvent connectionEvent)(Code)
Indicates a connection has been established.
Parameters:
  the - encapsulating event



deleteConnection
public void deleteConnection()(Code)
Deletes the selected connection (host node) from the list.



deleteConnection
public void deleteConnection(BrowserTreeNode node)(Code)
Deletes the specified connection (host node) from the list.
Parameters:
  the - node representing the connection to be removed



disconnected
public void disconnected(ConnectionEvent connectionEvent)(Code)
Indicates a connection has been closed.
Parameters:
  the - encapsulating event



getConnectionAt
protected DatabaseConnection getConnectionAt(Point point)(Code)
Returns the database connection at the specified point. the connection properties object



getConnectionAt
protected DatabaseConnection getConnectionAt(TreePath path)(Code)
Returns the database connection associated with the specified path. the connection properties object



getConnectionObject
protected ConnectionObject getConnectionObject(BrowserTreeNode child)(Code)
Returns the ConnectionObject (host node) associated with the specified child node.



getDatabaseConnection
protected DatabaseConnection getDatabaseConnection(BrowserTreeNode child)(Code)
Returns the connection properties object associated with the specified child node.



getMenuItemKey
public String getMenuItemKey()(Code)
Returns the name defining the menu cache property for this docked tab view. the preferences key



getMetaKeyNames
protected String[] getMetaKeyNames(BrowserTreeNode child)(Code)
Returns the available meta key names associated with the specified child node.



getOldBrowserNodeSelection
protected BrowserTreeNode getOldBrowserNodeSelection()(Code)
Returns the previously selected browse node before the current selection. the previous node selection



getOldSelectionPath
protected TreePath getOldSelectionPath()(Code)
Returns the previosuly selected path before the current selection. the previous path



getParentConnectionNode
protected BrowserTreeNode getParentConnectionNode(DatabaseConnection dc)(Code)



getParentNode
protected BrowserTreeNode getParentNode(BrowserTreeNode child)(Code)



getPropertyKey
public String getPropertyKey()(Code)
Returns the name defining the property name for this docked tab view. the key



getSelectedBrowserNode
protected BrowserTreeNode getSelectedBrowserNode()(Code)
Returns the currently selected node's user object where the node is a BrowserTreeNode and the user object is a DatabaseObject. If the above is not met, null is returned. the user object of the selected node where theuser object is a DatabaseObject



getSelectedDatabaseConnection
public DatabaseConnection getSelectedDatabaseConnection()(Code)
Returns the selected database connection. the selected connection properties object



getSelectedDatabaseObject
protected DatabaseObject getSelectedDatabaseObject()(Code)
Returns the currently selected node's user object where the node is a BrowserTreeNode and the user object is a DatabaseObject. If the above is not met, null is returned. the user object of the selected node where theuser object is a DatabaseObject



getSelectedMetaObject
protected ConnectionObject getSelectedMetaObject()(Code)
Returns the selected meta object host node. the selected host node meta object



getTitle
public String getTitle()(Code)
Returns the display title for this view. the title displayed for this view



isRootSelectOnDisconnect
public boolean isRootSelectOnDisconnect()(Code)



isTypeParentSelected
protected boolean isTypeParentSelected()(Code)
Returns the whether the currently selected node's user object is a parent type where the node is a BrowserTreeNode and the user object is a DatabaseObject. If the above is not met, false is returned, otherwise the object is evaluated. true | false



moveConnectionDown
public void moveConnectionDown()(Code)
Moves the selected connection (host node) down in the list.



moveConnectionUp
public void moveConnectionUp()(Code)
Moves the selected connection (host node) up in the list.



newConnection
public void newConnection()(Code)
Creates a new connection and adds it to the bottom of the list.



newConnection
public void newConnection(DatabaseConnection dc)(Code)
Creates a new connection based on the specified connection.
Parameters:
  dc - - the connection the new one is to be based on



nodeNameValueChanged
protected void nodeNameValueChanged(ConnectionObject metaObject)(Code)
Indicates that a node name has changed and fires a call to repaint the tree display.



reloadPath
public void reloadPath(TreePath path)(Code)
Reloads the specified tree path.



reloadSelection
public void reloadSelection()(Code)
Reloads the currently selected node.



removeSelectedNode
public void removeSelectedNode()(Code)
Removes the selected tree node (database object) from the tree.



removeTreeListener
protected void removeTreeListener()(Code)
Removes the tree listener.



removeTreeNode
public void removeTreeNode()(Code)
Removes the selected node.
This will attempt to propagate the call to the connected database using a DROP statement.



selectBrowserNode
protected void selectBrowserNode(String prefix)(Code)
Selects the node that matches the specified prefix forward from the currently selected node.
Parameters:
  prefix - - the prefix of the node to select



selectedNodeConnected
protected void selectedNodeConnected()(Code)
Notification that the currently selected node (a host) has had their associated db connection created.



selectedNodeDisconnected
protected void selectedNodeDisconnected()(Code)
Notification that the currently selected node (a host) has had their associated db connection closed.



setNodeSelected
protected void setNodeSelected(DefaultMutableTreeNode node)(Code)
Selects the specified node.



setRootSelectOnDisconnect
public void setRootSelectOnDisconnect(boolean rootSelectOnDisconnect)(Code)



setSelectedConnection
public void setSelectedConnection(DatabaseConnection dc, boolean reload)(Code)
Sets the selected connection tree node to the specified database connection.
Parameters:
  dc - - the database connection to select
Parameters:
  reload - - if true, ensures the view panel is set to the connection properties



setSelectedConnection
public void setSelectedConnection(DatabaseConnection dc)(Code)
Sets the selected connection tree node to the specified database connection.
Parameters:
  dc - - the database connection to select



toString
public String toString()(Code)



treeCollapsed
public void treeCollapsed(TreeExpansionEvent e)(Code)



treeExpanded
public void treeExpanded(TreeExpansionEvent e)(Code)



valueChanged
public void valueChanged(TreeSelectionEvent e)(Code)
Called whenever the value of the selection changes. This will store the current path selection.
Parameters:
  the - event that characterizes the change



Methods inherited from org.executequery.gui.AbstractDockedTabActionPanel
abstract public String getMenuItemKey()(Code)(Java Doc)
abstract public String getPropertyKey()(Code)(Java Doc)
public int getUserPreferencePosition()(Code)(Java Doc)
public void setGlassPaneVisible(boolean visible)(Code)(Java Doc)
public void setInProcess(boolean inProcess)(Code)(Java Doc)
public boolean tabViewClosing()(Code)(Java Doc)
public boolean tabViewDeselected()(Code)(Java Doc)
public boolean tabViewSelected()(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.