Java Doc for ProfileTree.java in  » Database-Client » SQL-Workbench » workbench » gui » profiles » 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 » SQL Workbench » workbench.gui.profiles 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JTree
   workbench.gui.profiles.ProfileTree

ProfileTree
public class ProfileTree extends JTree implements TreeModelListener,MouseListener,ClipboardSupport,ActionListener,TreeSelectionListener(Code)
A Tree to display connection profiles It supports drag & drop from profiles into different groups
author:
   support@sql-workbench.net



Constructor Summary
public  ProfileTree()
    

Method Summary
public  voidactionPerformed(ActionEvent e)
    
public  StringaddProfileGroup()
     Prompts the user for a group name and creates a new group with the provided name.
public  voidautoscroll(Point cursorLocation)
    
public  voidclear()
    
public  voidcollapseAll()
    
public  voidcopy()
    
public  voidcut()
    
public  voidexpandAll()
    
public  voidexpandGroups(List groupList)
     Expand the groups that are contained in th list.
public  InsetsgetAutoscrollInsets()
    
public  ListgetExpandedGroupNames()
     Return the names of the expaned groups.
protected  DefaultMutableTreeNodegetSelectedGroupNode()
    
public  ConnectionProfilegetSelectedProfile()
     Returns the currently selected Profile.
public  voidhandleDroppedNodes(DefaultMutableTreeNode[] nodes, DefaultMutableTreeNode newParent, int action)
    
public  booleanisGroup(TreePath p)
    
public  booleanisPathEditable(TreePath path)
    
public  voidmouseClicked(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmousePressed(MouseEvent e)
    
public  voidmouseReleased(MouseEvent e)
    
public  booleanonlyGroupSelected()
    
public  booleanonlyProfilesSelected()
    
public  voidpaste()
    
public  voidrenameGroup()
     Prompts the user for a new group name and renames the currently selected group to the supplied name.
public  voidselectAll()
    
public  voidselectPath(TreePath path)
    
public  voidselectProfile(ProfileKey def)
     Finds and selects the connection profile with the given name.
public  voidsetDeleteAction(DeleteListEntryAction delete)
    
public  voidsetModel(TreeModel model)
    
public  voidtreeNodesChanged(TreeModelEvent e)
    
public  voidtreeNodesInserted(TreeModelEvent e)
    
public  voidtreeNodesRemoved(TreeModelEvent e)
    
public  voidtreeStructureChanged(TreeModelEvent e)
    
public  voidvalueChanged(TreeSelectionEvent e)
    


Constructor Detail
ProfileTree
public ProfileTree()(Code)




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)



addProfileGroup
public String addProfileGroup()(Code)
Prompts the user for a group name and creates a new group with the provided name. The new group node is automatically after creation. the name of the new group or null if the user cancelled the name input



autoscroll
public void autoscroll(Point cursorLocation)(Code)



clear
public void clear()(Code)



collapseAll
public void collapseAll()(Code)



copy
public void copy()(Code)



cut
public void cut()(Code)



expandAll
public void expandAll()(Code)



expandGroups
public void expandGroups(List groupList)(Code)
Expand the groups that are contained in th list. The list is expected to contain Sting objects that identify the names of the groups.



getAutoscrollInsets
public Insets getAutoscrollInsets()(Code)



getExpandedGroupNames
public List getExpandedGroupNames()(Code)
Return the names of the expaned groups.



getSelectedGroupNode
protected DefaultMutableTreeNode getSelectedGroupNode()(Code)



getSelectedProfile
public ConnectionProfile getSelectedProfile()(Code)
Returns the currently selected Profile. If either more then one entry is selected or a group is selected, null is returned the selected profile if any



handleDroppedNodes
public void handleDroppedNodes(DefaultMutableTreeNode[] nodes, DefaultMutableTreeNode newParent, int action)(Code)



isGroup
public boolean isGroup(TreePath p)(Code)



isPathEditable
public boolean isPathEditable(TreePath path)(Code)



mouseClicked
public void mouseClicked(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mousePressed
public void mousePressed(MouseEvent e)(Code)



mouseReleased
public void mouseReleased(MouseEvent e)(Code)



onlyGroupSelected
public boolean onlyGroupSelected()(Code)
Checks if the current selection contains only groups



onlyProfilesSelected
public boolean onlyProfilesSelected()(Code)
Checks if the current selection contains only profiles



paste
public void paste()(Code)



renameGroup
public void renameGroup()(Code)
Prompts the user for a new group name and renames the currently selected group to the supplied name.



selectAll
public void selectAll()(Code)



selectPath
public void selectPath(TreePath path)(Code)



selectProfile
public void selectProfile(ProfileKey def)(Code)
Finds and selects the connection profile with the given name. If the profile is not found, the first profile will be selected (and expanded)



setDeleteAction
public void setDeleteAction(DeleteListEntryAction delete)(Code)



setModel
public void setModel(TreeModel model)(Code)



treeNodesChanged
public void treeNodesChanged(TreeModelEvent e)(Code)



treeNodesInserted
public void treeNodesInserted(TreeModelEvent e)(Code)



treeNodesRemoved
public void treeNodesRemoved(TreeModelEvent e)(Code)



treeStructureChanged
public void treeStructureChanged(TreeModelEvent e)(Code)



valueChanged
public void valueChanged(TreeSelectionEvent e)(Code)



Fields inherited from javax.swing.JTree
final public static String ANCHOR_SELECTION_PATH_PROPERTY(Code)(Java Doc)
final public static String CELL_EDITOR_PROPERTY(Code)(Java Doc)
final public static String CELL_RENDERER_PROPERTY(Code)(Java Doc)
final public static String EDITABLE_PROPERTY(Code)(Java Doc)
final public static String EXPANDS_SELECTED_PATHS_PROPERTY(Code)(Java Doc)
final public static String INVOKES_STOP_CELL_EDITING_PROPERTY(Code)(Java Doc)
final public static String LARGE_MODEL_PROPERTY(Code)(Java Doc)
final public static String LEAD_SELECTION_PATH_PROPERTY(Code)(Java Doc)
final public static String ROOT_VISIBLE_PROPERTY(Code)(Java Doc)
final public static String ROW_HEIGHT_PROPERTY(Code)(Java Doc)
final public static String SCROLLS_ON_EXPAND_PROPERTY(Code)(Java Doc)
final public static String SELECTION_MODEL_PROPERTY(Code)(Java Doc)
final public static String SHOWS_ROOT_HANDLES_PROPERTY(Code)(Java Doc)
final public static String TOGGLE_CLICK_COUNT_PROPERTY(Code)(Java Doc)
final public static String TREE_MODEL_PROPERTY(Code)(Java Doc)
final public static String VISIBLE_ROW_COUNT_PROPERTY(Code)(Java Doc)
protected transient TreeCellEditor cellEditor(Code)(Java Doc)
protected transient TreeCellRenderer cellRenderer(Code)(Java Doc)
protected boolean editable(Code)(Java Doc)
protected boolean invokesStopCellEditing(Code)(Java Doc)
protected boolean largeModel(Code)(Java Doc)
protected boolean rootVisible(Code)(Java Doc)
protected int rowHeight(Code)(Java Doc)
protected boolean scrollsOnExpand(Code)(Java Doc)
protected transient TreeSelectionModel selectionModel(Code)(Java Doc)
protected transient TreeSelectionRedirector selectionRedirector(Code)(Java Doc)
protected boolean showsRootHandles(Code)(Java Doc)
protected int toggleClickCount(Code)(Java Doc)
protected transient TreeModel treeModel(Code)(Java Doc)
protected transient TreeModelListener treeModelListener(Code)(Java Doc)
protected int visibleRowCount(Code)(Java Doc)

Methods inherited from javax.swing.JTree
public void addSelectionInterval(int index0, int index1)(Code)(Java Doc)
public void addSelectionPath(TreePath path)(Code)(Java Doc)
public void addSelectionPaths(TreePath[] paths)(Code)(Java Doc)
public void addSelectionRow(int row)(Code)(Java Doc)
public void addSelectionRows(int[] rows)(Code)(Java Doc)
public void addTreeExpansionListener(TreeExpansionListener tel)(Code)(Java Doc)
public void addTreeSelectionListener(TreeSelectionListener tsl)(Code)(Java Doc)
public void addTreeWillExpandListener(TreeWillExpandListener tel)(Code)(Java Doc)
public void cancelEditing()(Code)(Java Doc)
public void clearSelection()(Code)(Java Doc)
protected void clearToggledPaths()(Code)(Java Doc)
public void collapsePath(TreePath path)(Code)(Java Doc)
public void collapseRow(int row)(Code)(Java Doc)
public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)(Code)(Java Doc)
protected static TreeModel createTreeModel(Object value)(Code)(Java Doc)
protected TreeModelListener createTreeModelListener()(Code)(Java Doc)
public void expandPath(TreePath path)(Code)(Java Doc)
public void expandRow(int row)(Code)(Java Doc)
public void fireTreeCollapsed(TreePath path)(Code)(Java Doc)
public void fireTreeExpanded(TreePath path)(Code)(Java Doc)
public void fireTreeWillCollapse(TreePath path) throws ExpandVetoException(Code)(Java Doc)
public void fireTreeWillExpand(TreePath path) throws ExpandVetoException(Code)(Java Doc)
protected void fireValueChanged(TreeSelectionEvent e)(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public TreePath getAnchorSelectionPath()(Code)(Java Doc)
public TreeCellEditor getCellEditor()(Code)(Java Doc)
public TreeCellRenderer getCellRenderer()(Code)(Java Doc)
public TreePath getClosestPathForLocation(int x, int y)(Code)(Java Doc)
public int getClosestRowForLocation(int x, int y)(Code)(Java Doc)
protected static TreeModel getDefaultTreeModel()(Code)(Java Doc)
protected Enumeration<TreePath> getDescendantToggledPaths(TreePath parent)(Code)(Java Doc)
public boolean getDragEnabled()(Code)(Java Doc)
final public DropLocation getDropLocation()(Code)(Java Doc)
final public DropMode getDropMode()(Code)(Java Doc)
public TreePath getEditingPath()(Code)(Java Doc)
public Enumeration<TreePath> getExpandedDescendants(TreePath parent)(Code)(Java Doc)
public boolean getExpandsSelectedPaths()(Code)(Java Doc)
public boolean getInvokesStopCellEditing()(Code)(Java Doc)
public Object getLastSelectedPathComponent()(Code)(Java Doc)
public TreePath getLeadSelectionPath()(Code)(Java Doc)
public int getLeadSelectionRow()(Code)(Java Doc)
public int getMaxSelectionRow()(Code)(Java Doc)
public int getMinSelectionRow()(Code)(Java Doc)
public TreeModel getModel()(Code)(Java Doc)
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias)(Code)(Java Doc)
protected TreePath[] getPathBetweenRows(int index0, int index1)(Code)(Java Doc)
public Rectangle getPathBounds(TreePath path)(Code)(Java Doc)
public TreePath getPathForLocation(int x, int y)(Code)(Java Doc)
public TreePath getPathForRow(int row)(Code)(Java Doc)
public Dimension getPreferredScrollableViewportSize()(Code)(Java Doc)
public Rectangle getRowBounds(int row)(Code)(Java Doc)
public int getRowCount()(Code)(Java Doc)
public int getRowForLocation(int x, int y)(Code)(Java Doc)
public int getRowForPath(TreePath path)(Code)(Java Doc)
public int getRowHeight()(Code)(Java Doc)
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc)
public boolean getScrollableTracksViewportHeight()(Code)(Java Doc)
public boolean getScrollableTracksViewportWidth()(Code)(Java Doc)
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)(Code)(Java Doc)
public boolean getScrollsOnExpand()(Code)(Java Doc)
public int getSelectionCount()(Code)(Java Doc)
public TreeSelectionModel getSelectionModel()(Code)(Java Doc)
public TreePath getSelectionPath()(Code)(Java Doc)
public TreePath[] getSelectionPaths()(Code)(Java Doc)
public int[] getSelectionRows()(Code)(Java Doc)
public boolean getShowsRootHandles()(Code)(Java Doc)
public int getToggleClickCount()(Code)(Java Doc)
public String getToolTipText(MouseEvent event)(Code)(Java Doc)
public TreeExpansionListener[] getTreeExpansionListeners()(Code)(Java Doc)
public TreeSelectionListener[] getTreeSelectionListeners()(Code)(Java Doc)
public TreeWillExpandListener[] getTreeWillExpandListeners()(Code)(Java Doc)
public TreeUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public int getVisibleRowCount()(Code)(Java Doc)
public boolean hasBeenExpanded(TreePath path)(Code)(Java Doc)
public boolean isCollapsed(TreePath path)(Code)(Java Doc)
public boolean isCollapsed(int row)(Code)(Java Doc)
public boolean isEditable()(Code)(Java Doc)
public boolean isEditing()(Code)(Java Doc)
public boolean isExpanded(TreePath path)(Code)(Java Doc)
public boolean isExpanded(int row)(Code)(Java Doc)
public boolean isFixedRowHeight()(Code)(Java Doc)
public boolean isLargeModel()(Code)(Java Doc)
public boolean isPathEditable(TreePath path)(Code)(Java Doc)
public boolean isPathSelected(TreePath path)(Code)(Java Doc)
public boolean isRootVisible()(Code)(Java Doc)
public boolean isRowSelected(int row)(Code)(Java Doc)
public boolean isSelectionEmpty()(Code)(Java Doc)
public boolean isVisible(TreePath path)(Code)(Java Doc)
public void makeVisible(TreePath path)(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected boolean removeDescendantSelectedPaths(TreePath path, boolean includePath)(Code)(Java Doc)
protected void removeDescendantToggledPaths(Enumeration<TreePath> toRemove)(Code)(Java Doc)
public void removeSelectionInterval(int index0, int index1)(Code)(Java Doc)
public void removeSelectionPath(TreePath path)(Code)(Java Doc)
public void removeSelectionPaths(TreePath[] paths)(Code)(Java Doc)
public void removeSelectionRow(int row)(Code)(Java Doc)
public void removeSelectionRows(int[] rows)(Code)(Java Doc)
public void removeTreeExpansionListener(TreeExpansionListener tel)(Code)(Java Doc)
public void removeTreeSelectionListener(TreeSelectionListener tsl)(Code)(Java Doc)
public void removeTreeWillExpandListener(TreeWillExpandListener tel)(Code)(Java Doc)
public void scrollPathToVisible(TreePath path)(Code)(Java Doc)
public void scrollRowToVisible(int row)(Code)(Java Doc)
public void setAnchorSelectionPath(TreePath newPath)(Code)(Java Doc)
public void setCellEditor(TreeCellEditor cellEditor)(Code)(Java Doc)
public void setCellRenderer(TreeCellRenderer x)(Code)(Java Doc)
public void setDragEnabled(boolean b)(Code)(Java Doc)
final public void setDropMode(DropMode dropMode)(Code)(Java Doc)
public void setEditable(boolean flag)(Code)(Java Doc)
protected void setExpandedState(TreePath path, boolean state)(Code)(Java Doc)
public void setExpandsSelectedPaths(boolean newValue)(Code)(Java Doc)
public void setInvokesStopCellEditing(boolean newValue)(Code)(Java Doc)
public void setLargeModel(boolean newValue)(Code)(Java Doc)
public void setLeadSelectionPath(TreePath newPath)(Code)(Java Doc)
public void setModel(TreeModel newModel)(Code)(Java Doc)
public void setRootVisible(boolean rootVisible)(Code)(Java Doc)
public void setRowHeight(int rowHeight)(Code)(Java Doc)
public void setScrollsOnExpand(boolean newValue)(Code)(Java Doc)
public void setSelectionInterval(int index0, int index1)(Code)(Java Doc)
public void setSelectionModel(TreeSelectionModel selectionModel)(Code)(Java Doc)
public void setSelectionPath(TreePath path)(Code)(Java Doc)
public void setSelectionPaths(TreePath[] paths)(Code)(Java Doc)
public void setSelectionRow(int row)(Code)(Java Doc)
public void setSelectionRows(int[] rows)(Code)(Java Doc)
public void setShowsRootHandles(boolean newValue)(Code)(Java Doc)
public void setToggleClickCount(int clickCount)(Code)(Java Doc)
public void setUI(TreeUI ui)(Code)(Java Doc)
public void setVisibleRowCount(int newCount)(Code)(Java Doc)
public void startEditingAtPath(TreePath path)(Code)(Java Doc)
public boolean stopEditing()(Code)(Java Doc)
public void treeDidChange()(Code)(Java Doc)
public void updateUI()(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.