Class TreeControl.TreeNodeComponentState

  • Enclosing class:
    TreeControl

    protected static class TreeControl.TreeNodeComponentState
    extends AbstractCompositeStateComponent.ComponentState
    An encapsulation of a component for a tree node along with other metadata, such as whether the component was editable when created.
    Author:
    Garret Wilson
    • Constructor Detail

      • TreeNodeComponentState

        public TreeNodeComponentState​(Component component,
                                      boolean editable)
        Constructor
        Parameters:
        component - The component for a tree node.
        editable - Whether the component is for a tree node that was editable when the component was created.
        Throws:
        java.lang.NullPointerException - if the given component is null.
    • Method Detail

      • isEditable

        public boolean isEditable()
        Returns:
        Whether the component is for a tree node that was editable when the component was created.