Package org.apache.jmeter.gui.util
Class TextAreaTableCellEditor
-
- All Implemented Interfaces:
-
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.tree.TreeCellEditor
public class TextAreaTableCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor
-
-
Constructor Summary
Constructors Constructor Description TextAreaTableCellEditor()
Constructs a TableCellEditor
that uses a text field.
-
Method Summary
Modifier and Type Method Description Component
getComponent()
Returns a reference to the editor component. void
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. int
getClickCountToStart()
Returns the number of clicks needed to start editing. Object
getCellEditorValue()
Forwards the message from the CellEditor
to thedelegate
.boolean
isCellEditable(EventObject anEvent)
Forwards the message from the CellEditor
to thedelegate
.boolean
shouldSelectCell(EventObject anEvent)
Forwards the message from the CellEditor
to thedelegate
.boolean
stopCellEditing()
Forwards the message from the CellEditor
to thedelegate
.void
cancelCellEditing()
Forwards the message from the CellEditor
to thedelegate
.Component
getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
Implements the TreeCellEditor
interface.Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
Implements the TableCellEditor
interface.-
-
Method Detail
-
getComponent
Component getComponent()
Returns a reference to the editor component.
- Returns:
the editor
Component
-
setClickCountToStart
void setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.
- Parameters:
count
- an int specifying the number of clicks needed to start editing
-
getClickCountToStart
int getClickCountToStart()
Returns the number of clicks needed to start editing.
- Returns:
the number of clicks needed to start editing
-
getCellEditorValue
Object getCellEditorValue()
Forwards the message from the
CellEditor
to thedelegate
.
-
isCellEditable
boolean isCellEditable(EventObject anEvent)
Forwards the message from the
CellEditor
to thedelegate
.
-
shouldSelectCell
boolean shouldSelectCell(EventObject anEvent)
Forwards the message from the
CellEditor
to thedelegate
.
-
stopCellEditing
boolean stopCellEditing()
Forwards the message from the
CellEditor
to thedelegate
.
-
cancelCellEditing
void cancelCellEditing()
Forwards the message from the
CellEditor
to thedelegate
.
-
getTreeCellEditorComponent
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
Implements the
TreeCellEditor
interface.
-
getTableCellEditorComponent
Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
Implements the
TableCellEditor
interface.
-
-
-
-