|
static String | encode (final String str) |
|
static void | main (final String[] args) |
|
|
JTable | makeEntriesTable () |
|
JButton | makeBrowseButton (final JTextField field, @SuppressWarnings("SameParameterValue") final boolean directory, final String exts, @SuppressWarnings("SameParameterValue") final String type) |
|
JFileChooser | makeFileChooser (final String filter, final String exts, final String type) |
|
Object[][] | getData (final Enumeration< JarEntry > entries) |
|
String | makeUrl (final boolean jarEntry) |
|
void | update () |
|
void | updateUrl () |
|
Resource URL dialog
- Author
- Bernard Bou
◆ ResourceDialog()
grammarscope.common.dialog.ResourceDialog.ResourceDialog |
( |
final String |
dirBase, |
|
|
final String |
filter, |
|
|
final String |
exts, |
|
|
final String |
jarEntryFilter |
|
) |
| |
Constructor
- Parameters
-
dirBase | directory base |
filter | acceptable filter to match name against |
exts | extensions |
jarEntryFilter | jar entry filter |
◆ changedUpdate()
void grammarscope.common.dialog.ResourceDialog.changedUpdate |
( |
final DocumentEvent |
e | ) |
|
◆ encode()
static String grammarscope.common.dialog.ResourceDialog.encode |
( |
final String |
str | ) |
|
|
static |
Encode URL
- Parameters
-
- Returns
- encoded URL string
◆ getData()
Object [][] grammarscope.common.dialog.ResourceDialog.getData |
( |
final Enumeration< JarEntry > |
entries | ) |
|
|
private |
Make table model
- Parameters
-
- Returns
- table model
◆ getUrl()
String grammarscope.common.dialog.ResourceDialog.getUrl |
( |
| ) |
|
◆ insertUpdate()
void grammarscope.common.dialog.ResourceDialog.insertUpdate |
( |
final DocumentEvent |
e | ) |
|
◆ main()
static void grammarscope.common.dialog.ResourceDialog.main |
( |
final String[] |
args | ) |
|
|
static |
◆ makeBrowseButton()
JButton grammarscope.common.dialog.ResourceDialog.makeBrowseButton |
( |
final JTextField |
field, |
|
|
@SuppressWarnings("SameParameterValue") final boolean |
directory, |
|
|
final String |
exts, |
|
|
@SuppressWarnings("SameParameterValue") final String |
type |
|
) |
| |
|
private |
Make browse button
- Parameters
-
field | peer text field |
directory | directory |
exts | acceptable extensions |
type | type |
- Returns
- browse button
◆ makeEntriesTable()
JTable grammarscope.common.dialog.ResourceDialog.makeEntriesTable |
( |
| ) |
|
|
private |
Entries table
- Returns
- table
◆ makeFileChooser()
JFileChooser grammarscope.common.dialog.ResourceDialog.makeFileChooser |
( |
final String |
filter, |
|
|
final String |
exts, |
|
|
final String |
type |
|
) |
| |
|
private |
Make file chooser
- Parameters
-
filter | filter |
exts | extension |
type | type |
- Returns
- file chooser
◆ makeFolderChooser()
static JFileChooser grammarscope.common.dialog.ResourceDialog.makeFolderChooser |
( |
| ) |
|
|
staticprivate |
Make folder chooser
- Returns
- folder chooser
◆ makeUrl()
String grammarscope.common.dialog.ResourceDialog.makeUrl |
( |
final boolean |
jarEntry | ) |
|
|
private |
Make url
- Parameters
-
jarEntry | whether to specify jar entry |
- Returns
- url
◆ removeUpdate()
void grammarscope.common.dialog.ResourceDialog.removeUpdate |
( |
final DocumentEvent |
e | ) |
|
◆ setCurrentDirectory()
static void grammarscope.common.dialog.ResourceDialog.setCurrentDirectory |
( |
final JFileChooser |
chooser, |
|
|
final String |
currentDirectory |
|
) |
| |
|
staticprivate |
Set current directory for file chooser
- Parameters
-
chooser | file chooser |
currentDirectory | directory to set as current |
◆ setVisible()
void grammarscope.common.dialog.ResourceDialog.setVisible |
( |
final boolean |
flag | ) |
|
◆ stateChanged()
void grammarscope.common.dialog.ResourceDialog.stateChanged |
( |
final ChangeEvent |
event | ) |
|
◆ update()
void grammarscope.common.dialog.ResourceDialog.update |
( |
| ) |
|
|
private |
◆ updateUrl()
void grammarscope.common.dialog.ResourceDialog.updateUrl |
( |
| ) |
|
|
private |
◆ valueChanged()
void grammarscope.common.dialog.ResourceDialog.valueChanged |
( |
final ListSelectionEvent |
event | ) |
|
◆ columnNames
final String [] grammarscope.common.dialog.ResourceDialog.columnNames = { "jar entry" } |
|
staticprivate |
◆ dirBase
final String grammarscope.common.dialog.ResourceDialog.dirBase |
|
protected |
◆ fileTextField
final JTextField grammarscope.common.dialog.ResourceDialog.fileTextField |
|
private |
◆ filter
final String grammarscope.common.dialog.ResourceDialog.filter |
|
protected |
Filter on files or jar entries
◆ jarEntriesCheckBox
final JCheckBox grammarscope.common.dialog.ResourceDialog.jarEntriesCheckBox |
|
private |
◆ jarEntriesContainer
final Container grammarscope.common.dialog.ResourceDialog.jarEntriesContainer |
|
private |
◆ jarEntriesLabel
final JLabel grammarscope.common.dialog.ResourceDialog.jarEntriesLabel |
|
private |
◆ jarEntriesTable
final JTable grammarscope.common.dialog.ResourceDialog.jarEntriesTable |
|
private |
◆ jarEntryFilter
final String grammarscope.common.dialog.ResourceDialog.jarEntryFilter |
|
protected |
◆ ok
boolean grammarscope.common.dialog.ResourceDialog.ok |
◆ serialVersionUID
final long grammarscope.common.dialog.ResourceDialog.serialVersionUID = 1L |
|
staticprivate |
◆ urlTextField
final JTextField grammarscope.common.dialog.ResourceDialog.urlTextField |
|
private |
The documentation for this class was generated from the following file: