Class CheckboxCategoryPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class CheckboxCategoryPanel extends JPanel implements ChangeListener
Class CheckboxCategoryPanel holds the checkboxes under a category
Version:
$Revision: 1.3 $
Author:
IDV Development Team
See Also:
  • Field Details

    • categoryOpenIcon

      public static ImageIcon categoryOpenIcon
      Toggle icon used to show open categories and legend details
    • categoryClosedIcon

      public static ImageIcon categoryClosedIcon
      Toggle icon used to show closed categories and legend details
  • Constructor Details

    • CheckboxCategoryPanel

      public CheckboxCategoryPanel(String catName, boolean visible)
      Create me
      Parameters:
      catName - The name of the category
      visible - Is it initially visible
  • Method Details

    • addItem

      public void addItem(JCheckBox box)
      Add the given item into the list of children
      Parameters:
      box - The item
    • stateChanged

      public void stateChanged(ChangeEvent e)
      handle change event
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - event_
    • getTopPanel

      public JPanel getTopPanel()
      Create and return the top panel. That is, the one that holds the toggle button, vis checkbox and the label.
      Returns:
      The top panel
    • toggleAll

      public void toggleAll(boolean toWhat)
      Turn on/off all of the checkboxes held under this category
      Parameters:
      toWhat - What do we turn the checkboxes to
    • checkVisCbx

      public void checkVisCbx()
      Turn on the vis checkbox if all sub elements are on