| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
y.view.hierarchy.HierarchyTreeSelectionModel
public class HierarchyTreeSelectionModel
This TreeSelectionModel represents the selection state of the nodes within a graph hierarchy. Its main purpose is to synchronize the selection state of objects represented within a JTree and node objects within a graph hierarchy.
| 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 | |
|---|---|
| HierarchyTreeSelectionModel(HierarchyManager hierarchy)Initializes a new HierarchyTreeSelectionModelinstance. | |
| Method Summary | |
|---|---|
|  void | dispose()Disposes the HierarchyTreeSelectionModelinstance. | 
|  boolean | isMixedSelectionAllowed()Determines whether mixed selections (where nodes and edges are selected at the same time) are allowed. | 
|  void | setMixedSelectionAllowed(boolean mixedSelectionAllowed)Sets whether mixed selections (where nodes and edges are selected at the same time) are allowed. | 
| 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, setSelectionPaths, toString, updateLeadIndex | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public HierarchyTreeSelectionModel(HierarchyManager hierarchy)
HierarchyTreeSelectionModel instance.
hierarchy - the graph hierarchy whose selection states have to be
 synchronized with the selection model's associated JTree.| Method Detail | 
|---|
public boolean isMixedSelectionAllowed()
false will deselect selected edges if the user
 selects a node. The default value is false.
public void setMixedSelectionAllowed(boolean mixedSelectionAllowed)
false will deselect selected edges if the user
 selects a node. The default value is false.
mixedSelectionAllowed - whether mixed selections are allowedpublic void dispose()
HierarchyTreeSelectionModel instance.
 To free resources, this method should be called after a
 HierarchyTreeSelectionModel instance is not needed anymore.
 
 Note: It is not safe to invoke any methods on a disposed
 HierarchyTreeSelectionModel instance. Doing so may result in
 NullPointerException being thrown.
 
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||