Class PreferenceDialog.JConfigurationPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.batik.apps.svgbrowser.PreferenceDialog.JConfigurationPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
PreferenceDialog

protected class PreferenceDialog.JConfigurationPanel extends JPanel
A paged panel for configuration windows.
See Also:
  • Field Details

    • toolbar

      protected JToolBar toolbar
      The toolbar that allows selection between the pages.
    • panel

      protected JPanel panel
      The panel that holds the configuration pages.
    • layout

      protected CardLayout layout
      The layout manager for the configuration pages.
    • group

      protected ButtonGroup group
      The button group for the configuration page buttons.
    • page

      protected int page
      The currently selected page.
  • Constructor Details

    • JConfigurationPanel

      public JConfigurationPanel()
      Creates a new JConfigurationPanel.
  • Method Details

    • addPanel

      public void addPanel(String text, Icon icon, Icon icon2, JPanel p)
      Adds a panel to this configuration panel.
      Parameters:
      text - the text to use on the toolbar button
      icon - the icon to use on the toolbar button
      icon2 - the icon to use on the toolbar button when the mouse button is held down
      p - the configuration panel page
    • getComponentIndex

      protected int getComponentIndex(Component c)
      Returns the index of the given configuration page.
    • select

      protected void select(JToggleButton b)
      Updates the style of the given button to indicate that it is selected.
    • unselect

      protected void unselect(JToggleButton b)
      Updates the style of the given button to indicate that it is unselected.