com.bbn.openmap.util.propertyEditor
Class FDUPropertyEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.bbn.openmap.util.propertyEditor.FilePropertyEditor
              |
              +--com.bbn.openmap.util.propertyEditor.MultiDirectoryPropertyEditor
                    |
                    +--com.bbn.openmap.util.propertyEditor.FDUPropertyEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.beans.PropertyEditor
Direct Known Subclasses:
FUPropertyEditor

public class FDUPropertyEditor
extends MultiDirectoryPropertyEditor

FDUPropertyEditor - File, Directory and URL PropertyEditor. This is a PropertyEditor that provides a text field where a URL, file path or directory path can be entered. There is also a button that brings up a file chooser, and anything chosen *replaces* the contents in the text field.


Field Summary
 
Fields inherited from class com.bbn.openmap.util.propertyEditor.MultiDirectoryPropertyEditor
pathSeparator, textField
 
Fields inherited from class com.bbn.openmap.util.propertyEditor.FilePropertyEditor
button
 
Constructor Summary
FDUPropertyEditor()
          Create MultiDirectoryPropertyEditor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JFileChooser getFileChooser()
          Returns a JFileChooser that will choose a directory.
 
Methods inherited from class com.bbn.openmap.util.propertyEditor.MultiDirectoryPropertyEditor
append, getAsText, getCustomEditor, getPathSeparator, setPathSeparator, setValue
 
Methods inherited from class com.bbn.openmap.util.propertyEditor.FilePropertyEditor
cleanUpName, getLastLocation, supportsCustomEditor
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FDUPropertyEditor

public FDUPropertyEditor()
Create MultiDirectoryPropertyEditor.

Method Detail

actionPerformed

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

getFileChooser

public javax.swing.JFileChooser getFileChooser()
Returns a JFileChooser that will choose a directory. The MultiSelectionEnabled doesn't work yet, so we have to have a workaround.

Overrides:
getFileChooser in class MultiDirectoryPropertyEditor
Returns:
JFileChooser


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details