Class TabbedPaneOption

All Implemented Interfaces:
Serializable, OptionContainer, OptionElement, OptionProperties

public class TabbedPaneOption extends AbstractOptionContainer
This option class encapsulates a tabbed pane, as the one present in the Swing api.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • TabbedPaneOption

      public TabbedPaneOption()
  • Method Details

    • createUI

      public void createUI()
      Description copied from class: AbstractOptionProperties
      Create the UI components for this option.
      Specified by:
      createUI in class AbstractOptionProperties
    • add

      public void add(OptionElement element)
      Description copied from interface: OptionContainer
      Add an element to this options page.
      Specified by:
      add in interface OptionContainer
      Overrides:
      add in class AbstractOptionContainer
      Parameters:
      element - the element to add.
    • add

      public void add(OptionElement element, Component tabComponent)
      Add the specified component at the specified index.
      Parameters:
      element - the component to add.
      tabComponent - the component (normally label with icon + text) displayed in the tab list.
    • add

      public void add(OptionElement element, int index)
      Add the specified component at the specified index.
      Overrides:
      add in class AbstractOptionContainer
      Parameters:
      element - the component to add.
      index - the index at which to add the component.
    • add

      public void add(OptionElement element, int index, Component tabComponent)
      Add the specified component at the specified index.
      Parameters:
      element - the component to add.
      index - the index at which to add the component.
      tabComponent - the component (normally label with icon + text) displayed in the tab list.
    • remove

      public void remove(OptionElement element)
      Description copied from interface: OptionContainer
      Remove an element from this options page.
      Specified by:
      remove in interface OptionContainer
      Overrides:
      remove in class AbstractOptionContainer
      Parameters:
      element - the element to remove.
    • getTabComponent

      public Component getTabComponent(OptionElement element)
      Get the tab component for the specified option.
      Parameters:
      element - the option for which to get the tab component.
      Returns:
      the tab component as a Component.