Package org.esa.snap.ui.io
Class FileArrayEditor
java.lang.Object
org.esa.snap.ui.io.FileArrayEditor
An UI-Component which represents a product file list with the ability to add and remove files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
ConstructorsConstructorDescriptionFileArrayEditor
(FileArrayEditor.EditorParent parent, String label) Constructs the object with default values -
Method Summary
Modifier and TypeMethodDescriptionprotected JFileChooser
getFiles()
Retrieves the list of files currently editedprotected final FileArrayEditor.EditorParent
getUI()
Retrieves the editor UI.void
Sets the list of files to be edited.void
Sets the listener for this class
-
Constructor Details
-
FileArrayEditor
Constructs the object with default values- Parameters:
parent
- the parent editorlabel
- the label for this editor
-
-
Method Details
-
getParent
-
getUI
Retrieves the editor UI.- Returns:
- the editor UI
-
setFiles
Sets the list of files to be edited. The list currently held is overwritten.- Parameters:
files
-List
ofFile
s to be set
-
getFiles
Retrieves the list of files currently edited- Returns:
- a
List
of currently editedFile
s
-
setListener
Sets the listener for this class- Parameters:
listener
- the listener to associate with this editor
-
createRemoveFileButton
-
createAddFileButton
-
createFileArrayComponent
-
createFileChooserDialog
-