org.apache.batik.apps.svgbrowser

Class PreferenceDialog.JConfigurationPanel

protected class PreferenceDialog.JConfigurationPanel extends JPanel

A paged panel for configuration windows.
Nested Class Summary
protected classPreferenceDialog.JConfigurationPanel.ResizingCardLayout
A CardLayout that returns a preferred height based on the currently displayed component.
Field Summary
protected ButtonGroupgroup
The button group for the configuration page buttons.
protected CardLayoutlayout
The layout manager for the configuration pages.
protected intpage
The currently selected page.
protected JPanelpanel
The panel that holds the configuration pages.
protected JToolBartoolbar
The toolbar that allows selection between the pages.
Constructor Summary
JConfigurationPanel()
Creates a new JConfigurationPanel.
Method Summary
voidaddPanel(String text, Icon icon, Icon icon2, JPanel p)
Adds a panel to this configuration panel.
protected intgetComponentIndex(Component c)
Returns the index of the given configuration page.
protected voidselect(JToggleButton b)
Updates the style of the given button to indicate that it is selected.
protected voidunselect(JToggleButton b)
Updates the style of the given button to indicate that it is unselected.

Field Detail

group

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

layout

protected CardLayout layout
The layout manager for the configuration pages.

page

protected int page
The currently selected page.

panel

protected JPanel panel
The panel that holds the configuration pages.

toolbar

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

Constructor Detail

JConfigurationPanel

public JConfigurationPanel()
Creates a new JConfigurationPanel.

Method Detail

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.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.