Class GenericBaseTreeNodePanel<T,K>

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.BaseTreeNode<T,K>>
io.github.astrapi69.swing.tree.panel.GenericBaseTreeNodePanel<T,K>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BaseTreeNodeJTreeElementPanel

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

    • GenericBaseTreeNodePanel

      public GenericBaseTreeNodePanel()
      Instantiates a new GenericBaseTreeNodePanel
    • GenericBaseTreeNodePanel

      public GenericBaseTreeNodePanel(io.github.astrapi69.model.api.IModel<io.github.astrapi69.gen.tree.BaseTreeNode<T,K>> model)
      Instantiates a new tGenericBaseTreeNodePanel
      Parameters:
      model - the model
  • Method Details

    • newTree

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

      protected abstract TreeModel newTreeModel(io.github.astrapi69.model.api.IModel<io.github.astrapi69.gen.tree.BaseTreeNode<T,K>> 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.BaseTreeNode<T,K>>
      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.BaseTreeNode<T,K>>