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 java.beans.PropertyEditorSupport
A PropertyEditor for File objects that lets the user select a file.
- Version:
- $Revision: 1.6 $
- 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 java.lang.String getJavaInitializationString()
Returns a representation of the current property value as java source.
- Returns:
- a value of type 'String'
- Overrides:
- getJavaInitializationString in class java.beans.PropertyEditorSupport
supportsCustomEditor
public boolean supportsCustomEditor()
Returns true because we do support a custom editor.
- Returns:
- true
- Overrides:
- supportsCustomEditor in class java.beans.PropertyEditorSupport
getCustomEditor
public java.awt.Component getCustomEditor()
Gets the custom editor component.
- Returns:
- a value of type 'java.awt.Component'
- Overrides:
- getCustomEditor in class java.beans.PropertyEditorSupport
isPaintable
public boolean isPaintable()
Returns true since this editor is paintable.
- Returns:
- true.
- Overrides:
- isPaintable in class java.beans.PropertyEditorSupport
paintValue
public void paintValue(java.awt.Graphics gfx,
java.awt.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 java.beans.PropertyEditorSupport
All Packages Class Hierarchy This Package Previous Next Index WEKA's home