public class CheckTreeSelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel
Modifier and Type | Field and Description |
---|---|
private javax.swing.tree.TreeModel |
model |
private static long |
serialVersionUID |
Constructor and Description |
---|
CheckTreeSelectionModel(javax.swing.tree.TreeModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionPaths(javax.swing.tree.TreePath[] paths) |
private void |
appendDescendantPaths(java.util.ArrayList<javax.swing.tree.TreePath> atp,
javax.swing.tree.TreePath tp) |
private boolean |
areSiblingsSelected(javax.swing.tree.TreePath path) |
java.util.ArrayList<javax.swing.tree.TreePath> |
getDescendantPaths(javax.swing.tree.TreePath tp) |
private boolean |
isDescendant(javax.swing.tree.TreePath path1,
javax.swing.tree.TreePath path2) |
boolean |
isPartiallySelected(javax.swing.tree.TreePath path) |
boolean |
isPathSelected(javax.swing.tree.TreePath pathin,
boolean dig) |
void |
removeSelectionPaths(javax.swing.tree.TreePath[] paths) |
void |
setSelectionPaths(javax.swing.tree.TreePath[] pPaths) |
private void |
toggleRemoveSelection(javax.swing.tree.TreePath path) |
addPropertyChangeListener, addSelectionPath, 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, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex
private static final long serialVersionUID
private javax.swing.tree.TreeModel model
public CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
public boolean isPartiallySelected(javax.swing.tree.TreePath path)
public boolean isPathSelected(javax.swing.tree.TreePath pathin, boolean dig)
private boolean isDescendant(javax.swing.tree.TreePath path1, javax.swing.tree.TreePath path2)
public void setSelectionPaths(javax.swing.tree.TreePath[] pPaths)
setSelectionPaths
in interface javax.swing.tree.TreeSelectionModel
setSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
addSelectionPaths
in interface javax.swing.tree.TreeSelectionModel
addSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
private boolean areSiblingsSelected(javax.swing.tree.TreePath path)
public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
removeSelectionPaths
in interface javax.swing.tree.TreeSelectionModel
removeSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
private void toggleRemoveSelection(javax.swing.tree.TreePath path)
public java.util.ArrayList<javax.swing.tree.TreePath> getDescendantPaths(javax.swing.tree.TreePath tp)
private void appendDescendantPaths(java.util.ArrayList<javax.swing.tree.TreePath> atp, javax.swing.tree.TreePath tp)
Copyright © 2013. All Rights Reserved.