public class FileEditor extends PropertyEditorSupport
| Modifier and Type | Field and Description |
|---|---|
protected JFileChooser |
m_FileChooser
The file chooser used for selecting files
|
| Constructor and Description |
|---|
FileEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeDialog()
Closes the dialog.
|
Component |
getCustomEditor()
Gets the custom editor component.
|
String |
getJavaInitializationString()
Returns a representation of the current property value as java source.
|
boolean |
isPaintable()
Returns true since this editor is paintable.
|
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current Object.
|
boolean |
supportsCustomEditor()
Returns true because we do support a custom editor.
|
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource, setValueprotected JFileChooser m_FileChooser
public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorsupportsCustomEditor in class PropertyEditorSupportpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorgetCustomEditor in class PropertyEditorSupportpublic boolean isPaintable()
isPaintable in interface PropertyEditorisPaintable in class PropertyEditorSupportpublic void paintValue(Graphics gfx, Rectangle box)
paintValue in interface PropertyEditorpaintValue in class PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint intoprotected void closeDialog()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.