public class UndoableTreeSelectionModel extends javax.swing.tree.DefaultTreeSelectionModel implements Undoable, javax.swing.undo.StateEditable
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.event.EventListenerList |
listenerList |
| Constructor and Description |
|---|
UndoableTreeSelectionModel()
Creates new UndoableTreeSelectionModel
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionPaths(javax.swing.tree.TreePath[] paths)
Adds paths to the current selection.
|
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Adds an UndoableEditListener.
|
void |
clearSelection()
Empties the current selection.
|
protected void |
fireUndoableEditEvent(javax.swing.undo.UndoableEdit edit)
Notify all listeners that have registered interest for
notification on this event type.
|
void |
removeSelectionPath(javax.swing.tree.TreePath path)
Removes path from the selection.
|
void |
removeSelectionPaths(javax.swing.tree.TreePath[] paths)
Removes paths from the selection.
|
void |
removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Removes an UndoableEditListener.
|
void |
restoreState(java.util.Hashtable state)
Upon receiving this message the receiver should extract any relevant
state out of state.
|
void |
setSelectionPath(javax.swing.tree.TreePath path)
Sets the selection to path.
|
void |
setSelectionPaths(javax.swing.tree.TreePath[] paths)
Sets the selection to the paths in paths.
|
void |
storeState(java.util.Hashtable state)
Upon receiving this message the receiver should place any relevant
state into state.
|
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, toString, updateLeadIndexpublic UndoableTreeSelectionModel()
public void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
addUndoableEditListener in interface Undoablepublic void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
removeUndoableEditListener in interface Undoableprotected void fireUndoableEditEvent(javax.swing.undo.UndoableEdit edit)
public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
The lead path is set to the last element in paths.
addSelectionPaths in interface javax.swing.tree.TreeSelectionModeladdSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpaths - the new paths to add to the current selection.public void clearSelection()
clearSelection in interface javax.swing.tree.TreeSelectionModelclearSelection in class javax.swing.tree.DefaultTreeSelectionModelpublic void removeSelectionPath(javax.swing.tree.TreePath path)
removeSelectionPath in interface javax.swing.tree.TreeSelectionModelremoveSelectionPath in class javax.swing.tree.DefaultTreeSelectionModelpath - the path to remove from the selection.public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
removeSelectionPaths in interface javax.swing.tree.TreeSelectionModelremoveSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpaths - the paths to remove from the selection.public void setSelectionPath(javax.swing.tree.TreePath path)
setSelectionPath in interface javax.swing.tree.TreeSelectionModelsetSelectionPath in class javax.swing.tree.DefaultTreeSelectionModelpath - new path to selectpublic void setSelectionPaths(javax.swing.tree.TreePath[] paths)
The lead path is set to the last path in pPaths.
setSelectionPaths in interface javax.swing.tree.TreeSelectionModelsetSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpaths - new selection.public void restoreState(java.util.Hashtable state)
restoreState in interface javax.swing.undo.StateEditablepublic void storeState(java.util.Hashtable state)
storeState in interface javax.swing.undo.StateEditable