Class GenericTreeNodePanel<T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
io.github.astrapi69.swing.base.BasePanel<T>
io.github.astrapi69.swing.tree.panel.JTreePanel<io.github.astrapi69.gen.tree.TreeNode<T>>
io.github.astrapi69.swing.tree.panel.GenericTreeNodePanel<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
TreeNodeJTreeElementPanel, TreeNodeTreeElementPanel

public abstract class GenericTreeNodePanel<T> extends JTreePanel<io.github.astrapi69.gen.tree.TreeNode<T>>
The abstract class GenericTreeNodePanel a given parameterized TreeNode
See Also:
  • Constructor Details

    • GenericTreeNodePanel

      public GenericTreeNodePanel()
      Instantiates a new GenericTreeNodePanel
    • GenericTreeNodePanel

      public GenericTreeNodePanel(io.github.astrapi69.model.api.IModel<io.github.astrapi69.gen.tree.TreeNode<T>> model)
      Instantiates a new tGenericTreeNodePanel
      Parameters:
      model - the model
  • Method Details

    • newTree

      protected JTree newTree()
      New tree.
      Overrides:
      newTree in class JTreePanel<io.github.astrapi69.gen.tree.TreeNode<T>>
      Returns:
      the j tree
    • newTreeModel

      protected abstract TreeModel newTreeModel(io.github.astrapi69.model.api.IModel<io.github.astrapi69.gen.tree.TreeNode<T>> model)
      Abstract factory callback method that have to be overwritten to provide the specific TreeModel for the JTree
      Specified by:
      newTreeModel in class JTreePanel<io.github.astrapi69.gen.tree.TreeNode<T>>
      Parameters:
      model - the model
      Returns:
      the tree model
    • onInitializeGroupLayout

      protected void onInitializeGroupLayout()
      On initialize group layout.
    • onInitializeLayout

      protected void onInitializeLayout()
      Overrides:
      onInitializeLayout in class JTreePanel<io.github.astrapi69.gen.tree.TreeNode<T>>