org.esa.beam.framework.ui.io
Class FileArrayEditor

java.lang.Object
  extended by org.esa.beam.framework.ui.io.FileArrayEditor

public class FileArrayEditor
extends Object

An UI-Component which represents a product file list with the ability to add and remove files.


Nested Class Summary
static interface FileArrayEditor.EditorParent
           
static interface FileArrayEditor.FileArrayEditorListener
           
 
Constructor Summary
FileArrayEditor(FileArrayEditor.EditorParent parent, String label)
          Constructs the object with default values
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileArrayEditor

public FileArrayEditor(FileArrayEditor.EditorParent parent,
                       String label)
Constructs the object with default values

Parameters:
parent - the parent editor
label - the label for this editor
Method Detail

getParent

protected final FileArrayEditor.EditorParent getParent()

getUI

public JComponent getUI()
Retrieves the editor UI.

Returns:
the editor UI

setFiles

public void setFiles(List<File> files)
Sets the list of files to be edited. The list currently held is overwritten.

Parameters:
files - List of Files to be set

getFiles

public List<File> getFiles()
Retrieves the list of files currently edited

Returns:
a List of currently edited Files

setListener

public void setListener(FileArrayEditor.FileArrayEditorListener listener)
Sets the listener for this class

Parameters:
listener - the listener to associate with this editor

createRemoveFileButton

public JButton createRemoveFileButton()

createAddFileButton

public JButton createAddFileButton()

createFileArrayComponent

public JComponent createFileArrayComponent()

createFileChooserDialog

protected JFileChooser createFileChooserDialog()


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.