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 interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionFileArrayEditor(FileArrayEditor.EditorParent parent, String label) Constructs the object with default values -
Method Summary
Modifier and TypeMethodDescriptionprotected JFileChoosergetFiles()Retrieves the list of files currently editedprotected final FileArrayEditor.EditorParentgetUI()Retrieves the editor UI.voidSets the list of files to be edited.voidSets 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-ListofFiles to be set
-
getFiles
Retrieves the list of files currently edited- Returns:
- a
Listof currently editedFiles
-
setListener
Sets the listener for this class- Parameters:
listener- the listener to associate with this editor
-
createRemoveFileButton
-
createAddFileButton
-
createFileArrayComponent
-
createFileChooserDialog
-