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


javax.swing.JPanel
   net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.ObjectTreePanel

ObjectTreePanel
public class ObjectTreePanel extends JPanel implements IObjectTreeAPI(Code)
This is the panel for the Object Tree tab.
author:
   Colin Bell



Constructor Summary
public  ObjectTreePanel(ISession session)
     ctor specifying the current session.

Method Summary
public  voidaddDetailTab(DatabaseObjectType dboType, IObjectTab tab)
     Add a tab to be displayed in the detail panel for the passed database object type type.
public  voidaddExpander(DatabaseObjectType dboType, INodeExpander expander)
     Add an expander for the specified database object type.
public  voidaddKnownDatabaseObjectType(DatabaseObjectType dboType)
     Add a known database object type to the object tree.
public  voidaddNotify()
    
public  voidaddObjectTreeListener(IObjectTreeListener lis)
     Add a listener to the object tree.
public  voidaddToPopup(DatabaseObjectType dboType, Action action)
     Add an item to the popup menu for the specified database object type in the object tree.
public  voidaddToPopup(Action action)
     Add an item to the popup menu for all node types in the object tree.
public  voidaddToPopup(DatabaseObjectType dboType, JMenu menu)
     Add an hierarchical menu to the popup menu for the specified database object type.
public  voidaddToPopup(JMenu menu)
     Add an hierarchical menu to the popup menu for all node types.
public  voidaddTreeModelListener(TreeModelListener lis)
     Add a listener to the object tree for structure changes.
public  voidaddTreeSelectionListener(TreeSelectionListener lis)
     Add a listener to the object tree for selection changes.
public  voidexpandNode(ObjectTreeNode node)
     Expands the specified tree node.
public  DatabaseObjectType[]getDatabaseObjectTypes()
     Retrieve details about all object types that can be in this tree.
public  IIdentifiergetIdentifier()
     Return the unique identifier for this object.
public  IDatabaseObjectInfo[]getSelectedDatabaseObjects()
     Return an array of the currently selected database objects.
public  ObjectTreeNode[]getSelectedNodes()
     Return an array of the currently selected nodes.
public  List<ITableInfo>getSelectedTables()
    
public  ISessiongetSession()
    
public  IObjectTabgetTabbedPaneIfSelected(DatabaseObjectType dbObjectType, String title)
    
public  voidrefreshSelectedNodes()
     Refresh the nodes currently selected in the object tree.
public  voidrefreshSelectedTab()
     Calls refreshComponent on the selected tab in the current ObjectTreeTabbedPane, if the selected tab happens to be a BaseDataSetTab type.
public  voidrefreshTree()
     Refresh object tree.
public  voidrefreshTree(boolean reloadSchemaInfo)
    
public  voidremoveNodes(ObjectTreeNode[] nodes)
     Remove one or more nodes from the tree.
public  voidremoveNotify()
    
public  voidremoveObjectTreeListener(IObjectTreeListener lis)
     Remove a listener from the object tree.
public  voidremoveTreeModelListener(TreeModelListener lis)
     Remove a structure changes listener from the object tree.
public  voidremoveTreeSelectionListener(TreeSelectionListener lis)
     Remove a listener from the object tree for selection changes.
public  voidrestoreSavedSelectedPaths()
     Used to restore selected tree paths that were saved with saveSelectedPaths.
public  voidsaveSelectedPaths()
     Saves the tree paths that are currently selected.
public  booleanselectInObjectTree(String catalog, String schema, String object)
     Tries to locate the object given by the paramteres in the Object tree.
public  voidselectRoot()
    
public  voidsessionWindowClosing()
    


Constructor Detail
ObjectTreePanel
public ObjectTreePanel(ISession session)(Code)
ctor specifying the current session.
Parameters:
  session - Current session.
throws:
  IllegalArgumentException - Thrown if null ISession passed.




Method Detail
addDetailTab
public void addDetailTab(DatabaseObjectType dboType, IObjectTab tab)(Code)
Add a tab to be displayed in the detail panel for the passed database object type type.
Parameters:
  dboType - Database Object type.
Parameters:
  tab - Tab to be displayed.
throws:
  IllegalArgumentException - Thrown when a null DatabaseObjectType orIObjectPanelTab passed.



addExpander
public void addExpander(DatabaseObjectType dboType, INodeExpander expander)(Code)
Add an expander for the specified database object type.
Parameters:
  dboType - Database object type.
Parameters:
  expander - Expander called to add children to a parent node.
throws:
  IllegalArgumentException - Thrown if a null DatabaseObjectTypeor INodeExpander passed.



addKnownDatabaseObjectType
public void addKnownDatabaseObjectType(DatabaseObjectType dboType)(Code)
Add a known database object type to the object tree.
Parameters:
  dboType - The new database object type.



addNotify
public void addNotify()(Code)



addObjectTreeListener
public void addObjectTreeListener(IObjectTreeListener lis)(Code)
Add a listener to the object tree.
Parameters:
  lis - The ObjectTreeListener you want added.
throws:
  IllegalArgumentException - Thrown if null ObjectTreeListener passed.



addToPopup
public void addToPopup(DatabaseObjectType dboType, Action action)(Code)
Add an item to the popup menu for the specified database object type in the object tree.
Parameters:
  dboType - Database Object type.
throws:
  IllegalArgumentException - Thrown if a null DatabaseObjectTypeor Action passed.



addToPopup
public void addToPopup(Action action)(Code)
Add an item to the popup menu for all node types in the object tree.
Parameters:
  action - Action to add to menu.
throws:
  IllegalArgumentException - Thrown if a null Action passed.



addToPopup
public void addToPopup(DatabaseObjectType dboType, JMenu menu)(Code)
Add an hierarchical menu to the popup menu for the specified database object type.
Parameters:
  dboType - Database object type.
Parameters:
  menu - JMenu to add to menu.
throws:
  IllegalArgumentException - Thrown if a null DatabaseObjectType orJMenu thrown.



addToPopup
public void addToPopup(JMenu menu)(Code)
Add an hierarchical menu to the popup menu for all node types.
Parameters:
  menu - JMenu to add to menu.
throws:
  IllegalArgumentException - Thrown if a null JMenu thrown.



addTreeModelListener
public void addTreeModelListener(TreeModelListener lis)(Code)
Add a listener to the object tree for structure changes. I.E nodes added/removed.
Parameters:
  lis - The TreeModelListener you want added.
throws:
  IllegalArgumentException - Thrown if null TreeModelListener passed.



addTreeSelectionListener
public void addTreeSelectionListener(TreeSelectionListener lis)(Code)
Add a listener to the object tree for selection changes.
Parameters:
  lis - The TreeSelectionListener you want added.
throws:
  IllegalArgumentException - Thrown if null TreeSelectionListener passed.



expandNode
public void expandNode(ObjectTreeNode node)(Code)
Expands the specified tree node.
Parameters:
  node - the tree node to expand



getDatabaseObjectTypes
public DatabaseObjectType[] getDatabaseObjectTypes()(Code)
Retrieve details about all object types that can be in this tree. DatabaseObjectType[] Array of object type info objects.



getIdentifier
public IIdentifier getIdentifier()(Code)
Return the unique identifier for this object. the unique identifier for this object.



getSelectedDatabaseObjects
public IDatabaseObjectInfo[] getSelectedDatabaseObjects()(Code)
Return an array of the currently selected database objects. This is guaranteed to be non-null. array of ObjectTreeNode objects.



getSelectedNodes
public ObjectTreeNode[] getSelectedNodes()(Code)
Return an array of the currently selected nodes. array of ObjectTreeNode objects.



getSelectedTables
public List<ITableInfo> getSelectedTables()(Code)
Return a type-safe list of the currently selected database tables list of ITableInfo objects.



getSession
public ISession getSession()(Code)



getTabbedPaneIfSelected
public IObjectTab getTabbedPaneIfSelected(DatabaseObjectType dbObjectType, String title)(Code)



refreshSelectedNodes
public void refreshSelectedNodes()(Code)
Refresh the nodes currently selected in the object tree.



refreshSelectedTab
public void refreshSelectedTab() throws DataSetException(Code)
Calls refreshComponent on the selected tab in the current ObjectTreeTabbedPane, if the selected tab happens to be a BaseDataSetTab type.
throws:
  DataSetException - if there was a problem refreshing the component.



refreshTree
public void refreshTree()(Code)
Refresh object tree.



refreshTree
public void refreshTree(boolean reloadSchemaInfo)(Code)



removeNodes
public void removeNodes(ObjectTreeNode[] nodes)(Code)
Remove one or more nodes from the tree.
Parameters:
  nodes - Array of nodes to be removed.
throws:
  IllegalArgumentException - Thrown if a null ObjectTreeNode[] thrown.



removeNotify
public void removeNotify()(Code)



removeObjectTreeListener
public void removeObjectTreeListener(IObjectTreeListener lis)(Code)
Remove a listener from the object tree.
Parameters:
  lis - The ObjectTreeListener you want removed.
throws:
  IllegalArgumentException - Thrown if null ObjectTreeListener passed.



removeTreeModelListener
public void removeTreeModelListener(TreeModelListener lis)(Code)
Remove a structure changes listener from the object tree.
Parameters:
  lis - The TreeModelListener you want removed.
throws:
  IllegalArgumentException - Thrown if null TreeModelListener passed.



removeTreeSelectionListener
public void removeTreeSelectionListener(TreeSelectionListener lis)(Code)
Remove a listener from the object tree for selection changes.
Parameters:
  lis - The TreeSelectionListener you want removed.
throws:
  IllegalArgumentException - Thrown if null TreeSelectionListener passed.



restoreSavedSelectedPaths
public void restoreSavedSelectedPaths()(Code)
Used to restore selected tree paths that were saved with saveSelectedPaths.



saveSelectedPaths
public void saveSelectedPaths()(Code)
Saves the tree paths that are currently selected. These can then be restored with restoreSavedSelectedPaths.



selectInObjectTree
public boolean selectInObjectTree(String catalog, String schema, String object)(Code)
Tries to locate the object given by the paramteres in the Object tree. The first matching object found is selected.
Parameters:
  catalog - null means any catalog
Parameters:
  schema - null means any schema true if the Object was found and selected.



selectRoot
public void selectRoot()(Code)



sessionWindowClosing
public void sessionWindowClosing()(Code)



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

w___w__w___.__j__a__v_a_2_s___.___c___o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.