com.ibm.di.admin.ui
Class ConnectorTreeUI.TreeSelMod

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by com.ibm.di.admin.ui.ConnectorTreeUI.TreeSelMod
All Implemented Interfaces:
Serializable, Cloneable, TreeSelectionModel
Enclosing class:
ConnectorTreeUI

public class ConnectorTreeUI.TreeSelMod
extends DefaultTreeSelectionModel

Override the setSelectionPath to prevent resetting selected items if user clicks on an already selected item. If no control or shift is used in the selection, then the singleClick() method will reset the selected items and set the currently clicked item as selected.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
ConnectorTreeUI.TreeSelMod()
          Constructor for the TreeSelMod object
 
Method Summary
 void setSelectionPaths(TreePath[] paths)
          Sets the selectionPaths attribute of the TreeSelMod object
 
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectorTreeUI.TreeSelMod

public ConnectorTreeUI.TreeSelMod()
Constructor for the TreeSelMod object

Method Detail

setSelectionPaths

public void setSelectionPaths(TreePath[] paths)
Sets the selectionPaths attribute of the TreeSelMod object

Specified by:
setSelectionPaths in interface TreeSelectionModel
Overrides:
setSelectionPaths in class DefaultTreeSelectionModel
Parameters:
paths - The new selectionPaths value