Package org.apache.jmeter.testbeans.gui
Class TableEditor
-
- All Implemented Interfaces:
-
java.awt.event.FocusListener
,java.beans.PropertyEditor
,java.util.EventListener
,javax.swing.event.TableModelListener
,org.apache.jmeter.gui.ClearGui
,org.apache.jmeter.testbeans.gui.TestBeanPropertyEditor
public class TableEditor extends PropertyEditorSupport implements FocusListener, TestBeanPropertyEditor, TableModelListener, ClearGui
Table editor for TestBean GUI properties. Currently only works for:
- property type Collection of Strings, where there is a single header entry
-
-
Constructor Summary
Constructors Constructor Description TableEditor()
-
Method Summary
Modifier and Type Method Description String
getAsText()
Component
getCustomEditor()
Object
getValue()
void
setAsText(String text)
void
setValue(Object value)
boolean
supportsCustomEditor()
void
tableChanged(TableModelEvent e)
void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
void
clearGui()
Clear the gui and return it to initial default values. void
setDescriptor(PropertyDescriptor descriptor)
For the table editor, the CLASSNAME attribute must simply be the name of the class of object it will hold where each row holds one object. -
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCustomEditor
Component getCustomEditor()
-
supportsCustomEditor
boolean supportsCustomEditor()
-
tableChanged
void tableChanged(TableModelEvent e)
-
focusGained
void focusGained(FocusEvent e)
-
focusLost
void focusLost(FocusEvent e)
-
clearGui
void clearGui()
Clear the gui and return it to initial default values. This is necessary because most gui classes are instantiated just once and re-used for multiple test element objects and thus they need to be cleared between uses.
-
setDescriptor
void setDescriptor(PropertyDescriptor descriptor)
For the table editor, the CLASSNAME attribute must simply be the name of the class of object it will hold where each row holds one object.
-
-
-
-