org.apache.batik.util.gui
public class CSSMediaPanel extends JPanel implements ActionMap
| Nested Class Summary | |
|---|---|
| protected class | CSSMediaPanel.AddButtonAction
The action associated with the 'Add' button |
| static class | CSSMediaPanel.AddMediumDialog
A dialog to add a new CSS medium. |
| protected class | CSSMediaPanel.ClearButtonAction
The action associated with the 'Clear' button |
| static class | CSSMediaPanel.Dialog
A dialog to edit/add/remove CSS media. |
| protected class | CSSMediaPanel.MediaListDataListener
To manage data modifications in the media list. |
| protected class | CSSMediaPanel.MediaListSelectionListener
To manage selection modifications |
| protected class | CSSMediaPanel.RemoveButtonAction
The action associated with the 'Remove' button |
| Field Summary | |
|---|---|
| protected JButton | addButton
The button to add a CSS medium from the list. |
| protected static ResourceBundle | bundle
The resource bundle |
| protected JButton | clearButton
The button to clear the CSS media list. |
| protected Map | listeners
The map that contains the listeners |
| protected DefaultListModel | listModel
The list that represents the CSS media. |
| protected JList | mediaList
The list that represents the CSS media. |
| protected JButton | removeButton
The button to remove a CSS medium from the list. |
| protected static ResourceManager | resources
The resource manager |
| protected static String | RESOURCES
The resource file name |
| Constructor Summary | |
|---|---|
| CSSMediaPanel()
Constructs a new panel to edit CSS media. | |
| Method Summary | |
|---|---|
| Action | getAction(String key)
Returns the action associated with the given string or null on error
|
| List | getMedia()
Returns the list of media. |
| String | getMediaAsString()
Returns the media list as a string separated by space. |
| static void | main(String[] args)
Main - debug - |
| void | setMedia(List mediaList)
Sets the list of media to edit.
|
| void | setMedia(String media)
Sets the list of media to edit to the specified media list (separated by
space).
|
| static int | showDialog(Component parent, String title)
Brings up a modal dialog to edit/add/remove CSS media.
|
| static int | showDialog(Component parent, String title, List mediaList)
Brings up a modal dialog to edit/add/remove CSS media.
|
| static int | showDialog(Component parent, String title, String media)
Brings up a modal dialog to edit/add/remove CSS media.
|
| protected void | updateButtons()
Updates the button states. |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Parameters: mediaList the list of media to edit
Parameters: media the media separated by space
Parameters: parent the parent of this dialog title the title of this dialog
Parameters: parent the parent of this dialog title the title of this dialog mediaList the list of media
Parameters: parent the parent of this dialog title the title of this dialog media the list of media