|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
ch.randelshofer.gui.tree.DefaultUndoableTreeSelectionModel
public class DefaultUndoableTreeSelectionModel
Supports UndoableEditListeners.
| 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 |
| Fields inherited from interface javax.swing.undo.StateEditable |
|---|
RCSID |
| Constructor Summary | |
|---|---|
DefaultUndoableTreeSelectionModel()
Creates new DefaultUndoableTreeSelectionModel |
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
|---|
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, updateLeadIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeSelectionModel |
|---|
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode |
| Constructor Detail |
|---|
public DefaultUndoableTreeSelectionModel()
| Method Detail |
|---|
public void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
addUndoableEditListener in interface Undoablepublic void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
removeUndoableEditListener in interface Undoablepublic void fireUndoableEditEvent(javax.swing.undo.UndoableEdit edit)
fireUndoableEditEvent in interface UndoableTreeSelectionModelpublic 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
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||