jgnash.ui.account
Class AbstractAccountEnabledTreeCellRenderer.SelectionModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by jgnash.ui.account.AbstractAccountEnabledTreeCellRenderer.SelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeSelectionModel
Enclosing class:
AbstractAccountEnabledTreeCellRenderer

private class AbstractAccountEnabledTreeCellRenderer.SelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel

Selection model based on the returned value of isAccountEnabled. Depending on the result, the path may be disabled from selection


Field Summary
private static long serialVersionUID
           
 
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
AbstractAccountEnabledTreeCellRenderer.SelectionModel()
           
 
Method Summary
 void setSelectionPath(javax.swing.tree.TreePath path)
          Overrides the super to prevent selection of place holder accounts
 
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, setSelectionPaths, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AbstractAccountEnabledTreeCellRenderer.SelectionModel

public AbstractAccountEnabledTreeCellRenderer.SelectionModel()
Method Detail

setSelectionPath

public void setSelectionPath(javax.swing.tree.TreePath path)
Overrides the super to prevent selection of place holder accounts

Specified by:
setSelectionPath in interface javax.swing.tree.TreeSelectionModel
Overrides:
setSelectionPath in class javax.swing.tree.DefaultTreeSelectionModel
Parameters:
path - new path to select