All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.FileEditor
java.lang.Object
|
+----java.beans.PropertyEditorSupport
|
+----weka.gui.FileEditor
- public class FileEditor
- extends PropertyEditorSupport
A PropertyEditor for File objects that lets the user select a file.
- Version:
- $Revision: 1.2 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
FileEditor()
-
-
getCustomEditor()
- Gets the custom editor component.
-
getJavaInitializationString()
- Returns a representation of the current property value as java source.
-
isPaintable()
- Returns true since this editor is paintable.
-
paintValue(Graphics, Rectangle)
- Paints a representation of the current Object.
-
supportsCustomEditor()
- Returns true because we do support a custom editor.
FileEditor
public FileEditor()
getJavaInitializationString
public String getJavaInitializationString()
- Returns a representation of the current property value as java source.
- Returns:
- a value of type 'String'
- Overrides:
- getJavaInitializationString in class PropertyEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
- Returns true because we do support a custom editor.
- Returns:
- true
- Overrides:
- supportsCustomEditor in class PropertyEditorSupport
getCustomEditor
public Component getCustomEditor()
- Gets the custom editor component.
- Returns:
- a value of type 'java.awt.Component'
- Overrides:
- getCustomEditor in class PropertyEditorSupport
isPaintable
public boolean isPaintable()
- Returns true since this editor is paintable.
- Returns:
- true.
- Overrides:
- isPaintable in class PropertyEditorSupport
paintValue
public void paintValue(Graphics gfx,
Rectangle box)
- Paints a representation of the current Object.
- Parameters:
- gfx - the graphics context to use
- box - the area we are allowed to paint into
- Overrides:
- paintValue in class PropertyEditorSupport
All Packages Class Hierarchy This Package Previous Next Index WEKA's home