Class JTreeWithContentPanel<T,C>

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<T>
io.github.astrapi69.swing.tree.panel.content.JTreeWithContentPanel<T,C>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
GenericBaseTreeNodeWithContentPanel, GenericTreeNodeWithContentPanel

public abstract class JTreeWithContentPanel<T,C> extends JTreePanel<T>
See Also:
  • Field Details

    • scrTreeEntryTable

      protected JScrollPane scrTreeEntryTable
    • tblTreeEntryTable

      protected io.github.astrapi69.swing.table.GenericJTable<C> tblTreeEntryTable
  • Constructor Details

    • JTreeWithContentPanel

      public JTreeWithContentPanel()
    • JTreeWithContentPanel

      public JTreeWithContentPanel(io.github.astrapi69.model.api.IModel<T> model)
  • Method Details

    • newTableModel

      protected abstract io.github.astrapi69.swing.table.model.GenericTableModel<C> newTableModel(T model)
      Abstract factory callback method that have to be overwritten to provide the specific TableModel for the JTable
      Parameters:
      model - the model
      Returns:
      the table model
    • newTableScrollPane

      protected JScrollPane newTableScrollPane()
      Factory method for creating the new JScrollPane. This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a JScrollPane
      Returns:
      the new JScrollPane
    • newJTable

      protected io.github.astrapi69.swing.table.GenericJTable<C> newJTable()
      Factory method for creating the new JTable. This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a JTable
      Returns:
      the new JTable
    • onInitializeComponents

      protected void onInitializeComponents()
      Overrides:
      onInitializeComponents in class JTreePanel<T>
    • onTableSingleLeftClick

      protected void onTableSingleLeftClick(MouseEvent mouseEvent)
      The callback method on the table single left click.
      Parameters:
      mouseEvent - the mouse event
    • onTableSingleMiddleClick

      protected void onTableSingleMiddleClick(MouseEvent mouseEvent)
      The callback method on the table single middle click.
      Parameters:
      mouseEvent - the mouse event
    • onTableSingleRightClick

      protected void onTableSingleRightClick(MouseEvent mouseEvent)
      The callback method on the table single right click.
      Parameters:
      mouseEvent - the mouse event
    • onTableDoubleLeftClick

      protected void onTableDoubleLeftClick(MouseEvent mouseEvent)
      The callback method on the table double left click.
      Parameters:
      mouseEvent - the mouse event
    • onTableDoubleMiddleClick

      protected void onTableDoubleMiddleClick(MouseEvent mouseEvent)
      The callback method on the table double middle click.
      Parameters:
      mouseEvent - the mouse event
    • onTableDoubleRightClick

      protected void onTableDoubleRightClick(MouseEvent mouseEvent)
      The callback method on the table double right click.
      Parameters:
      mouseEvent - the mouse event