org.apache.batik.apps.svgbrowser
protected class PreferenceDialog.JConfigurationPanel extends JPanel
Nested Class Summary | |
---|---|
protected class | PreferenceDialog.JConfigurationPanel.ResizingCardLayout
A CardLayout that returns a preferred height based on the currently
displayed component. |
Field Summary | |
---|---|
protected ButtonGroup | group
The button group for the configuration page buttons. |
protected CardLayout | layout
The layout manager for the configuration pages. |
protected int | page
The currently selected page. |
protected JPanel | panel
The panel that holds the configuration pages. |
protected JToolBar | toolbar
The toolbar that allows selection between the pages. |
Constructor Summary | |
---|---|
JConfigurationPanel()
Creates a new JConfigurationPanel. |
Method Summary | |
---|---|
void | addPanel(String text, Icon icon, Icon icon2, JPanel p)
Adds a panel to this configuration panel. |
protected int | getComponentIndex(Component c)
Returns the index of the given configuration page. |
protected void | select(JToggleButton b)
Updates the style of the given button to indicate that it is
selected. |
protected void | unselect(JToggleButton b)
Updates the style of the given button to indicate that it is
unselected. |
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