org.apache.batik.util.gui
public static class CSSMediaPanel.AddMediumDialog extends JDialog implements ActionMap
Nested Class Summary | |
---|---|
protected class | CSSMediaPanel.AddMediumDialog.CancelButtonAction
The action associated with the 'Cancel' button |
protected class | CSSMediaPanel.AddMediumDialog.OKButtonAction
The action associated with the 'OK' button |
Field Summary | |
---|---|
static int | CANCEL_OPTION
The return value if 'Cancel' is chosen. |
protected Map | listeners
The map that contains the listeners |
protected JComboBox | medium
The new medium. |
static int | OK_OPTION
The return value if 'OK' is chosen. |
protected int | returnCode
The return code. |
Constructor Summary | |
---|---|
AddMediumDialog(Component parent)
Constructs a new AddMediumDialog.
|
Method Summary | |
---|---|
protected Component | createButtonsPanel()
Returns the button panel. |
protected Component | createContentPanel()
Returns the panel to enter a new CSS medium. |
Action | getAction(String key)
Returns the action associated with the given string or null on error
|
String | getMedium()
Returns the medium that might be added or null if any. |
int | getReturnCode()
Returns the code that describes how the dialog has been closed (OK or
CANCEL). |
Parameters: parent the parent of this dialog
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found