org.apache.jmeter.testbeans.gui

Class FileEditor

Implemented Interfaces:
ActionListener, PropertyEditor

public class FileEditor
extends Object
implements PropertyEditor, ActionListener

A property editor for File properties.

Note that it never gives out File objects, but always Strings. This is because JMeter is now too dumb to handle File objects (there's no FileProperty).

Constructor Summary

FileEditor()

Method Summary

void
actionPerformed(ActionEvent e)
void
addPropertyChangeListener(PropertyChangeListener listener)
String
getAsText()
Component
getCustomEditor()
String
getJavaInitializationString()
String[]
getTags()
Object
getValue()
boolean
isPaintable()
void
paintValue(Graphics gfx, Rectangle box)
void
removePropertyChangeListener(PropertyChangeListener listener)
void
setAsText(String text)
void
setValue(Object value)
boolean
supportsCustomEditor()

Constructor Details

FileEditor

public FileEditor()

Method Details

actionPerformed

public void actionPerformed(ActionEvent e)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Parameters:
listener -

getAsText

public String getAsText()
Returns:
the text

getCustomEditor

public Component getCustomEditor()
Returns:
custom editor panel

getJavaInitializationString

public String getJavaInitializationString()
Returns:
the Java initialisation string

getTags

public String[] getTags()
Returns:
the editor tags

getValue

public Object getValue()
Returns:
the value

isPaintable

public boolean isPaintable()
Returns:
true if the editor is paintable

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
Parameters:
gfx -
box -

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Parameters:
listener -

setAsText

public void setAsText(String text)
            throws IllegalArgumentException
Parameters:
text -

setValue

public void setValue(Object value)
Parameters:
value -

supportsCustomEditor

public boolean supportsCustomEditor()
Returns:
true if supports a custom editor

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.