Class JTreeTable.ListToTreeSelectionModelWrapper

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeSelectionModel
    Enclosing class:
    JTreeTable

    public class JTreeTable.ListToTreeSelectionModelWrapper
    extends javax.swing.tree.DefaultTreeSelectionModel
    ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel to listen for changes in the ListSelectionModel it maintains. Once a change in the ListSelectionModel happens, the paths are updated in the DefaultTreeSelectionModel.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel

        SELECTION_MODE_PROPERTY
      • Fields inherited from interface javax.swing.tree.TreeSelectionModel

        CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.ListSelectionModel getListSelectionModel()
      Returns the list selection model.
      void resetRowSelection()
      This is overridden to set updatingListSelectionModel and message super.
      • Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel

        addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, clearSelection, clone, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ListToTreeSelectionModelWrapper

        public ListToTreeSelectionModelWrapper()
    • Method Detail

      • getListSelectionModel

        public javax.swing.ListSelectionModel getListSelectionModel()
        Returns the list selection model. ListToTreeSelectionModelWrapper listens for changes to this model and updates the selected paths accordingly.
      • resetRowSelection

        public void resetRowSelection()
        This is overridden to set updatingListSelectionModel and message super. This is the only place DefaultTreeSelectionModel alters the ListSelectionModel.
        Specified by:
        resetRowSelection in interface javax.swing.tree.TreeSelectionModel
        Overrides:
        resetRowSelection in class javax.swing.tree.DefaultTreeSelectionModel