Package PamView

Class HidingSidePanel

java.lang.Object
PamView.HidingSidePanel

public class HidingSidePanel extends Object
More sophisticated side panel container which can close itself down to a very small strip to make more room for main display items.
Author:
Doug Gillespie
  • Constructor Summary

    Constructors
    Constructor
    Description
    New side panel which can be hidden using little buttons.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(JComponent panel)
    Add a component to the side panel
    void
    disableShowButton(boolean disable)
    Disable the show and hide button, keeping the side pane in current position.
    int
    Get a count of the number of side panel components
    Get the side panel outer window to include in the main GUI.
    void
    Remove a component from the side panel.
    void
    Remove all components from the side panel
    void
    showPanel(boolean show)
    Show or side the active component of the side panel, Some basic border from the outer panel will always be visible unless the entire thing is hidden because there are no side panel controls available.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HidingSidePanel

      public HidingSidePanel(PamGui pamGui)
      New side panel which can be hidden using little buttons.
  • Method Details

    • disableShowButton

      public void disableShowButton(boolean disable)
      Disable the show and hide button, keeping the side pane in current position.
      Parameters:
      disable - - true to disable the button. False to re-enable.
    • showPanel

      public void showPanel(boolean show)
      Show or side the active component of the side panel, Some basic border from the outer panel will always be visible unless the entire thing is hidden because there are no side panel controls available.
      Parameters:
      show -
    • getSidePanel

      public JPanel getSidePanel()
      Get the side panel outer window to include in the main GUI.
      Returns:
      gui component.
    • remove

      public void remove(JComponent panel)
      Remove a component from the side panel.
      Parameters:
      panel - component to remove
    • add

      public void add(JComponent panel)
      Add a component to the side panel
      Parameters:
      panel - component to add
    • removeAll

      public void removeAll()
      Remove all components from the side panel
    • getComponentCount

      public int getComponentCount()
      Get a count of the number of side panel components
      Returns:
      count of side panel components