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)

Constructor Index

 o FileEditor()

Method Index

 o getCustomEditor()
Gets the custom editor component.
 o getJavaInitializationString()
Returns a representation of the current property value as java source.
 o isPaintable()
Returns true since this editor is paintable.
 o paintValue(Graphics, Rectangle)
Paints a representation of the current Object.
 o supportsCustomEditor()
Returns true because we do support a custom editor.

Constructors

 o FileEditor
 public FileEditor()

Methods

 o 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
 o supportsCustomEditor
 public boolean supportsCustomEditor()
Returns true because we do support a custom editor.

Returns:
true
Overrides:
supportsCustomEditor in class PropertyEditorSupport
 o getCustomEditor
 public Component getCustomEditor()
Gets the custom editor component.

Returns:
a value of type 'java.awt.Component'
Overrides:
getCustomEditor in class PropertyEditorSupport
 o isPaintable
 public boolean isPaintable()
Returns true since this editor is paintable.

Returns:
true.
Overrides:
isPaintable in class PropertyEditorSupport
 o 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