|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.PropertyEditorSupport | +--weka.gui.FileEditor
A PropertyEditor for File objects that lets the user select a file.
Field Summary | |
protected JFileChooser |
m_FileChooser
The file chooser used for selecting files |
Constructor Summary | |
FileEditor()
|
Method Summary | |
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. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getTags, getValue, removePropertyChangeListener, setAsText, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JFileChooser m_FileChooser
Constructor Detail |
public FileEditor()
Method Detail |
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public boolean isPaintable()
isPaintable
in interface PropertyEditor
isPaintable
in class PropertyEditorSupport
public void paintValue(Graphics gfx, Rectangle box)
paintValue
in interface PropertyEditor
paintValue
in class PropertyEditorSupport
gfx
- the graphics context to usebox
- the area we are allowed to paint into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |