org.apache.batik.util.gui
public class URIChooser extends JDialog implements ActionMap
Nested Class Summary | |
---|---|
protected class | URIChooser.BrowseButtonAction
The action associated with the 'browse' button |
protected class | URIChooser.CancelButtonAction
The action associated with the 'Cancel' button of the URI chooser |
protected class | URIChooser.ClearButtonAction
The action associated with the 'Clear' button of the URI chooser |
protected class | URIChooser.DocumentAdapter
To listen to the document changes |
protected class | URIChooser.OKButtonAction
The action associated with the 'OK' button of the URI chooser |
Field Summary | |
---|---|
protected static ResourceBundle | bundle
The resource bundle |
protected ButtonFactory | buttonFactory
The button factory |
protected String | chosenPath
The last chosen path. |
protected JButton | clearButton
The Clear button |
protected String | currentPath
The current path. |
static int | CANCEL_OPTION
The return value if 'Cancel' is chosen. |
protected FileFilter | fileFilter
The file filter. |
protected Map | listeners
The map that contains the listeners |
protected JButton | okButton
The OK button |
static int | OK_OPTION
The return value if 'OK' is chosen. |
protected static ResourceManager | resources
The resource manager |
protected int | returnCode
The last return code. |
protected static String | RESOURCES
The resource file name |
protected JTextField | textField
The text field |
Constructor Summary | |
---|---|
URIChooser(JDialog d)
Creates a new URIChooser. | |
URIChooser(JFrame f)
Creates a new URIChooser. |
Method Summary | |
---|---|
protected JPanel | createButtonsPanel()
Creates the buttons panel |
protected JPanel | createURISelectionPanel()
Creates the URI selection panel |
Action | getAction(String key)
Returns the action associated with the given string
or null on error |
String | getText()
Returns the text entered by the user. |
protected void | initialize()
Initializes the dialog |
void | setFileFilter(FileFilter ff)
Sets the file filter to use with the file selector. |
int | showDialog()
Shows the dialog. |
protected void | updateClearButtonAction()
To update the state of the Clear button |
protected void | updateOKButtonAction()
To update the state of the OK button |
Parameters: d the parent dialog
Parameters: f the parent frame
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Returns: OK_OPTION or CANCEL_OPTION.