|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.PropertyEditorSupport | +--com.bbn.openmap.util.propertyEditor.FilePropertyEditor | +--com.bbn.openmap.util.propertyEditor.MultiDirectoryPropertyEditor
A PropertyEditor that brings up a JFileChooser panel to several files and directories. You can enter information in the text field, and pressing the add button will bring up a file chooser. Anything chosen in the file chooser will be appended to what is currently in the text field.
Field Summary | |
protected char |
pathSeparator
|
protected javax.swing.JTextField |
textField
The GUI component of this editor. |
Fields inherited from class com.bbn.openmap.util.propertyEditor.FilePropertyEditor |
button |
Constructor Summary | |
MultiDirectoryPropertyEditor()
Create MultiDirectoryPropertyEditor. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
append(java.lang.String addPath)
Add a path to the end of the current path. |
java.lang.String |
getAsText()
Returns String from JTextfield. |
java.awt.Component |
getCustomEditor()
Returns a JButton that will bring up a JFileChooser dialog. |
javax.swing.JFileChooser |
getFileChooser()
Returns a JFileChooser that will choose a directory. |
char |
getPathSeparator()
|
void |
setPathSeparator(char c)
Set the character to use when appending paths. |
void |
setValue(java.lang.Object string)
Sets String in JTextField. |
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 |
Field Detail |
protected javax.swing.JTextField textField
protected char pathSeparator
Constructor Detail |
public MultiDirectoryPropertyEditor()
Method Detail |
public void setPathSeparator(char c)
public char getPathSeparator()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class FilePropertyEditor
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class FilePropertyEditor
public javax.swing.JFileChooser getFileChooser()
getFileChooser
in class FilePropertyEditor
public void append(java.lang.String addPath)
public void setValue(java.lang.Object string)
setValue
in interface java.beans.PropertyEditor
setValue
in class FilePropertyEditor
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class FilePropertyEditor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |