Class JTreeTable.ListToTreeSelectionModelWrapper

  • All Implemented Interfaces:
    Serializable, Cloneable, TreeSelectionModel
    Enclosing class:
    JTreeTable

    public class JTreeTable.ListToTreeSelectionModelWrapper
    extends 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 Detail

      • updatingListSelectionModel

        protected boolean updatingListSelectionModel
        Set to true when we are updating the ListSelectionModel.
    • Constructor Detail

      • ListToTreeSelectionModelWrapper

        public ListToTreeSelectionModelWrapper()
    • Method Detail

      • createListSelectionListener

        protected ListSelectionListener createListSelectionListener()
        Creates and returns an instance of ListSelectionHandler.
      • updateSelectedPathsFromSelectedRows

        public void updateSelectedPathsFromSelectedRows()
        If updatingListSelectionModel is false, this will reset the selected paths from the selected rows in the list selection model.