jigcell.compare.transformui
Class FileInterface

java.lang.Object
  extended by jigcell.compare.ui.CustomizableInterface
      extended by jigcell.compare.transformui.TransformInterface
          extended by jigcell.compare.transformui.FileInterface
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, ICustomizableInterface

public class FileInterface
extends TransformInterface

Interface for a FileTransform.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
protected static java.lang.String BUTTON_BROWSE
          Button label for browse
protected  javax.swing.text.Document filenameDocument
          Name selection document
protected static SuffixFileFilter FILTER_GENERATOR
          File filter for data generator files
protected  FileTransform generator
          Generator
protected static java.lang.String LABEL_FILENAME
          Label for file name
protected static java.lang.String MESSAGE_ERROR
          General error message for unexpected exception
 
Fields inherited from class jigcell.compare.transformui.TransformInterface
constraints, layout, MENUITEM_DELETE, MENUITEM_INSERTAFTER, MENUITEM_INSERTBEFORE, oldPrevious
 
Fields inherited from class jigcell.compare.ui.CustomizableInterface
customizers, DESCRIPTION_INPUT, DESCRIPTION_OUTPUT, LOCK_CUSTOMIZERS, manager, menuManager, multipleViewSupport, PATH_DESCRIPTION_INPUT, PATH_DESCRIPTION_OUTPUT, PATH_HELP, popup, POPUP_DEFAULT, PROPERTY_CUSTOMIZERNAME
 
Fields inherited from interface jigcell.compare.ICustomizableInterface
DIMENSION_HELP, OPTION_INPUTDESCRIPTION, OPTION_OUTPUTDESCRIPTION
 
Constructor Summary
FileInterface(IProgrammableDataGenerator generator)
          Creates a new interface for a FileTransform.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  javax.swing.JComponent createCustomizer()
          Generates a new customizer for the generator.
protected  javax.swing.JFileChooser createFileChooser()
          A file chooser specialized for the view.
 void updateInterface(java.lang.String propertyName)
          Updates customizers based on the generator state.
 
Methods inherited from class jigcell.compare.transformui.TransformInterface
createCustomizer, createPopup, destroyCustomizer, hasMultipleViewSupport
 
Methods inherited from class jigcell.compare.ui.CustomizableInterface
decorateCustomizer, getCompare, getInputDescription, getOutputDescription, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setInputDescription, setMultipleViewSupport, setOutputDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_BROWSE

protected static final java.lang.String BUTTON_BROWSE
Button label for browse

See Also:
Constant Field Values

LABEL_FILENAME

protected static final java.lang.String LABEL_FILENAME
Label for file name

See Also:
Constant Field Values

MESSAGE_ERROR

protected static final java.lang.String MESSAGE_ERROR
General error message for unexpected exception

See Also:
Constant Field Values

FILTER_GENERATOR

protected static final SuffixFileFilter FILTER_GENERATOR
File filter for data generator files


filenameDocument

protected javax.swing.text.Document filenameDocument
Name selection document


generator

protected FileTransform generator
Generator

Constructor Detail

FileInterface

public FileInterface(IProgrammableDataGenerator generator)
Creates a new interface for a FileTransform.

Parameters:
generator - Generator
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class TransformInterface

updateInterface

public void updateInterface(java.lang.String propertyName)
Updates customizers based on the generator state.

Specified by:
updateInterface in interface ICustomizableInterface
Overrides:
updateInterface in class TransformInterface
Parameters:
propertyName - Name of the property that changed or null to indicate that all properties may have changed

createCustomizer

protected javax.swing.JComponent createCustomizer()
Generates a new customizer for the generator.

Specified by:
createCustomizer in class CustomizableInterface

createFileChooser

protected javax.swing.JFileChooser createFileChooser()
A file chooser specialized for the view.