Class OptionPanel

All Implemented Interfaces:
Serializable, OptionContainer, OptionElement, OptionProperties

public class OptionPanel extends AbstractOptionContainer
Instances of this page represent dynamic UI components representing a page (or panel) container, with the underlying Swing component being a JPanel.
It also implements a specific behavior for radio buttons: any radio button that is a direct child is also added to a ButtonGroup.
Author:
Laurent Cohen
See Also:
  • Field Details

    • panel

      protected JPanel panel
      The panel used to display this options page.
    • buttonGroup

      protected ButtonGroup buttonGroup
      An eventual button group to which any radio button direct child is added.
  • Constructor Details

    • OptionPanel

      public OptionPanel()
      Default constructor.
    • OptionPanel

      public OptionPanel(String name, String label, boolean scrollable, boolean bordered)
      Initialize this option page with the specified parameters.
      Parameters:
      name - this component's name.
      label - the panel's title.
      scrollable - determines whether this page should be enclosed within a scroll pane.
      bordered - determines whether this page has a border around it.
    • OptionPanel

      public OptionPanel(String name, String label, boolean scrollable)
      Initialize this option page with the specified parameters, setting up a page without border. This constructor is used for building outermost pages.
      Parameters:
      name - this component's name.
      label - the panel's title.
      scrollable - determines whether this page should be enclosed within a scroll pane.
  • Method Details