Interface TreeModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROOT_NODE_PROPERTY
      The bound property of the root node.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TreeNodeModel<?> getRootNode()  
      void setAllExpanded​(boolean newAllExpanded)
      Sets whether all tree nodes are expanded.
      void setRootNode​(TreeNodeModel<?> newRootNode)
      Sets the root node of the tree model.
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
      • Methods inherited from interface com.globalmentor.beans.PropertyConstrainable

        addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
    • Field Detail

      • ROOT_NODE_PROPERTY

        static final java.lang.String ROOT_NODE_PROPERTY
        The bound property of the root node.
    • Method Detail

      • getRootNode

        TreeNodeModel<?> getRootNode()
        Returns:
        The root node of the tree model.
      • setRootNode

        void setRootNode​(TreeNodeModel<?> newRootNode)
        Sets the root node of the tree model. This is a bound property.
        Parameters:
        newRootNode - The new root node of the tree model.
        Throws:
        java.lang.NullPointerException - if the given root node is null.
        See Also:
        ROOT_NODE_PROPERTY
      • setAllExpanded

        void setAllExpanded​(boolean newAllExpanded)
        Sets whether all tree nodes are expanded. This method delegates to the root node TreeNodeModel.setAllExpanded(boolean).
        Parameters:
        newAllExpanded - true if all the nodes should be expanded, or false if they should be collapsed.