Class SwingEntityTreeModel.EntityTreeNode

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
is.codion.swing.framework.model.SwingEntityTreeModel.EntityTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Enclosing class:
SwingEntityTreeModel

public static final class SwingEntityTreeModel.EntityTreeNode extends DefaultMutableTreeNode
A tree node based on an Entity instance.
See Also:
  • Method Details

    • refresh

      Refreshes this node, that is, reloads all child nodes.
      Returns:
      this tree node
    • entity

      public Entity entity()
      Returns the entity, note that this entity is null for the root node.
      Returns:
      the entity, null in case of the root node
    • toString

      public String toString()
      Overrides:
      toString in class DefaultMutableTreeNode