org.apache.batik.util.gui
public class UserStyleDialog extends JDialog implements ActionMap
| Nested Class Summary | |
|---|---|
| protected class | UserStyleDialog.CancelButtonAction
The action associated with the 'Cancel' button |
| protected class | UserStyleDialog.OKButtonAction
The action associated with the 'OK' button |
| static class | UserStyleDialog.Panel
This class represents the main panel of the dialog. |
| Field Summary | |
|---|---|
| protected static ResourceBundle | bundle
The resource bundle |
| protected String | chosenPath
The chosen path. |
| static int | CANCEL_OPTION
The return value if 'Cancel' is chosen. |
| protected Map | listeners
The map that contains the listeners |
| static int | OK_OPTION
The return value if 'OK' is chosen. |
| protected UserStyleDialog.Panel | panel
The main panel. |
| protected static ResourceManager | resources
The resource manager |
| protected int | returnCode
The last return code. |
| protected static String | RESOURCES
The resource file name |
| Constructor Summary | |
|---|---|
| UserStyleDialog(JFrame f)
Creates a new user style dialog. | |
| Method Summary | |
|---|---|
| protected JPanel | createButtonsPanel()
Creates the OK/Cancel buttons panel |
| Action | getAction(String key)
Returns the action associated with the given string
or null on error |
| String | getPath()
Returns the chosen path or null. |
| void | setPath(String s)
Sets the current dialog path. |
| int | showDialog()
Shows the dialog. |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Returns: OK_OPTION or CANCEL_OPTION.