javax.swing .JTree net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree .ObjectTree ObjectTree class ObjectTree extends JTree (Code) This is the tree showing the structure of objects in the database.
author: Colin Bell
addNotify public void addNotify()(Code) Component has been added to its parent.
addObjectTreeListener public void addObjectTreeListener(IObjectTreeListener lis)(Code) Adds a listener for changes in this cache entry.
Parameters: lis - a IObjectCacheChangeListener that will be notified whenobjects are added and removed from this cache entry.
addToPopup void addToPopup(DatabaseObjectType dboType, Action action) (Code) Add an item to the popup menu for the specified node type in the object
tree.
Parameters: dboType - Database Object Type.Parameters: action - Action to add to menu.throws: IllegalArgumentException - Thrown if a null Action orDatabaseObjectType thrown.
addToPopup void addToPopup(Action action) (Code) Add an item to the popup menu for the all nodes.
Parameters: action - Action to add to menu.throws: IllegalArgumentException - Thrown if a null Action thrown.
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.
dispose public void dispose()(Code)
getSelectedDatabaseObjects IDatabaseObjectInfo [] getSelectedDatabaseObjects() (Code) Return an array of the currently selected database
objects.
array of ObjectTreeNode objects.
getSelectedNodes ObjectTreeNode [] getSelectedNodes() (Code) Return an array of the currently selected nodes. This array is sorted
by the simple name of the database object.
array of ObjectTreeNode objects.
getSelectedTables List <ITableInfo > getSelectedTables() (Code) Return a type-safe list of the currently selected database tables
list of ITableInfo objects.
getToolTipText public String getToolTipText(MouseEvent evt)(Code) Return the name of the object that the mouse is currently
over as the tooltip text.
Parameters: event - Used to determine the current mouse position.
getTypedModel public ObjectTreeModel getTypedModel()(Code) Return the typed data model for this tree.
The typed data model for this tree.
matchKeyPrefix protected boolean matchKeyPrefix(Map <String , Object > map, ObjectTreeNode node, String path)(Code) This is to handle the case where the user has enabled showRowCounts and
the table/view name as it appeared before is different only because the
number of rows has changed. For example, suppose a user deletes records
in a table "foo" with 100 rows then refreshes the tree. The tree node
before the delete looks like foo(100) and after looks like foo(0). We
want to strip off the (...) and test to see if the selected path "foo"
is the same before the delete as after. This way, when the user refreshes
"foo(...)", then it is still selected after the refresh.
Parameters: map - Parameters: pattern -
refresh public void refresh(boolean reloadSchemaInfo)(Code) Refresh tree.
Parameters: reloadSchemaInfo -
refreshSelectedNodes public void refreshSelectedNodes()(Code) Refresh the nodes currently selected in the object tree.
removeNotify public void removeNotify()(Code) Component has been removed from its parent.
removeObjectTreeListener void removeObjectTreeListener(IObjectTreeListener lis) (Code) Removes a listener for changes in this cache entry.
Parameters: lis - a IObjectCacheChangeListener that will be notified whenobjects are added and removed from this cache entry.
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)