|
||||||||||
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
public class FilePropertyEditor
A PropertyEditor that brings up a JFileChooser panel to select a file. A single file choice can be made, and only choices that reside on the local file system.
Field Summary | |
---|---|
protected javax.swing.JButton |
button
The Component returned by getCustomEditor(). |
protected javax.swing.JTextField |
textField
|
Constructor Summary | |
---|---|
FilePropertyEditor()
Create FilePropertyEditor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected java.lang.String |
cleanUpName(java.lang.String name)
Change double backslashes to forward slash, OK for java world. |
java.lang.String |
getAsText()
Implement PropertyEditor interface. |
java.lang.String |
getButtonTitle()
Internal callback method that can be overridden by subclasses. |
java.awt.Component |
getCustomEditor()
Returns an uneditable text area with a JButton that will bring up a JFileChooser dialog. |
javax.swing.JFileChooser |
getFileChooser()
|
int |
getFileSelectionMode()
Internal callback method that can be overridden by subclasses. |
java.lang.String |
getLastLocation()
|
boolean |
isMultiSelectEnabled()
Internal callback method that can be overridden by subclasses. |
boolean |
isTextFieldEditable()
Internal callback method that can be overridden by subclasses. |
void |
setValue(java.lang.Object someObj)
Implement PropertyEditor interface. |
boolean |
supportsCustomEditor()
PropertyEditor interface. |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JButton button
protected javax.swing.JTextField textField
Constructor Detail |
---|
public FilePropertyEditor()
Method Detail |
---|
public java.lang.String getButtonTitle()
public boolean isTextFieldEditable()
public int getFileSelectionMode()
public boolean isMultiSelectEnabled()
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
protected java.lang.String cleanUpName(java.lang.String name)
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public javax.swing.JFileChooser getFileChooser()
public void setValue(java.lang.Object someObj)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public java.lang.String getLastLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |