Package org.apache.jmeter.testbeans.gui
Class TableEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.jmeter.testbeans.gui.TableEditor
- All Implemented Interfaces:
- FocusListener,- PropertyEditor,- EventListener,- TableModelListener,- ClearGui,- 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
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringattribute name for class name of a table row; value must be java.lang.String, or a class which supports set and get/is methods for the property name.static final Stringattribute name for table headers, value must be a String array.static final Stringattribute name for property names within theCLASSNAME, value must be String array
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclearGui()Clear the gui and return it to initial default values.voidvoidgetValue()voidvoidsetDescriptor(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.voidbooleanvoidMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSourceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.beans.PropertyEditoraddPropertyChangeListener, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener
- 
Field Details- 
CLASSNAMEattribute name for class name of a table row; value must be java.lang.String, or a class which supports set and get/is methods for the property name.- See Also:
 
- 
HEADERSattribute name for table headers, value must be a String array. IfCLASSNAMEis java.lang.String, there must be only a single entry.- See Also:
 
- 
OBJECT_PROPERTIESattribute name for property names within theCLASSNAME, value must be String array- See Also:
 
 
- 
- 
Constructor Details- 
TableEditorpublic TableEditor()
 
- 
- 
Method Details- 
getAsText- Specified by:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin class- PropertyEditorSupport
 
- 
getCustomEditor- Specified by:
- getCustomEditorin interface- PropertyEditor
- Overrides:
- getCustomEditorin class- PropertyEditorSupport
 
- 
getValue- Specified by:
- getValuein interface- PropertyEditor
- Overrides:
- getValuein class- PropertyEditorSupport
 
- 
setAsText- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
- Throws:
- IllegalArgumentException
 
- 
setValue- Specified by:
- setValuein interface- PropertyEditor
- Overrides:
- setValuein class- PropertyEditorSupport
 
- 
supportsCustomEditorpublic boolean supportsCustomEditor()- Specified by:
- supportsCustomEditorin interface- PropertyEditor
- Overrides:
- supportsCustomEditorin class- PropertyEditorSupport
 
- 
setDescriptorFor 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.- Specified by:
- setDescriptorin interface- TestBeanPropertyEditor
 
- 
tableChanged- Specified by:
- tableChangedin interface- TableModelListener
 
- 
focusGained- Specified by:
- focusGainedin interface- FocusListener
 
- 
focusLost- Specified by:
- focusLostin interface- FocusListener
 
- 
clearGuipublic void clearGui()Description copied from interface:ClearGuiClear 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.
 
-