Class PreferencesPanel<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<T>
io.github.astrapi69.swing.tree.panel.content.PreferencesPanel<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public abstract class PreferencesPanel<T> extends JTreePanel<T>
See Also:
  • Field Details

    • splitPane

      protected JSplitPane splitPane
      The JSplitPane for the tree in the left side and the corresponding value at teh right side.
  • Constructor Details

    • PreferencesPanel

      public PreferencesPanel(io.github.astrapi69.model.api.IModel<T> model)
      Instantiates a new PreferencesPanel object panel
      Parameters:
      model - the model
  • Method Details

    • getSelectedComponent

      protected Component getSelectedComponent()
    • newJSplitPane

      protected JSplitPane newJSplitPane()
    • newPreferredSize

      protected Dimension newPreferredSize(int width, int height)
      Factory method for creating the new Dimension. This method is invoked in the constructor from the derived classes and can be overridden so users can provide their own version of a Dimension
      Overrides:
      newPreferredSize in class JTreePanel<T>
      Parameters:
      width - the width
      height - the height
      Returns:
      the new Dimension
    • newTree

      protected JTree newTree()
      Description copied from class: JTreePanel
      New tree.
      Overrides:
      newTree in class JTreePanel<T>
      Returns:
      the j tree
    • onInitializeComponents

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

      protected void onInitializeLayout()
      Overrides:
      onInitializeLayout in class JTreePanel<T>