public class FileArrayEditor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileArrayEditor.EditorParent |
static interface |
FileArrayEditor.FileArrayEditorListener |
Constructor and Description |
---|
FileArrayEditor(FileArrayEditor.EditorParent parent,
String label)
Constructs the object with default values
|
Modifier and Type | Method and Description |
---|---|
JButton |
createAddFileButton() |
JComponent |
createFileArrayComponent() |
protected JFileChooser |
createFileChooserDialog() |
JButton |
createRemoveFileButton() |
List<File> |
getFiles()
Retrieves the list of files currently edited
|
protected FileArrayEditor.EditorParent |
getParent() |
JComponent |
getUI()
Retrieves the editor UI.
|
void |
setFiles(List<File> files)
Sets the list of files to be edited.
|
void |
setListener(FileArrayEditor.FileArrayEditorListener listener)
Sets the listener for this class
|
public FileArrayEditor(FileArrayEditor.EditorParent parent, String label)
parent
- the parent editorlabel
- the label for this editorprotected final FileArrayEditor.EditorParent getParent()
public JComponent getUI()
public void setFiles(List<File> files)
files
- List
of File
s to be setpublic List<File> getFiles()
List
of currently edited File
spublic void setListener(FileArrayEditor.FileArrayEditorListener listener)
listener
- the listener to associate with this editorpublic JButton createRemoveFileButton()
public JButton createAddFileButton()
public JComponent createFileArrayComponent()
protected JFileChooser createFileChooserDialog()
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.