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)

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.

Constructor Detail

 o FileEditor
public FileEditor()

Method Detail

 o 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
 o supportsCustomEditor
public boolean supportsCustomEditor()
          Returns true because we do support a custom editor.
Returns:
true
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport
 o 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
 o isPaintable
public boolean isPaintable()
          Returns true since this editor is paintable.
Returns:
true.
Overrides:
isPaintable in class java.beans.PropertyEditorSupport
 o 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