public class TextAreaTableCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor
Modifier and Type | Class and Description |
---|---|
protected class |
TextAreaTableCellEditor.EditorDelegate
The protected
EditorDelegate class. |
Modifier and Type | Field and Description |
---|---|
protected int |
clickCountToStart
An integer specifying the number of clicks needed to start editing.
|
protected TextAreaTableCellEditor.EditorDelegate |
delegate
The delegate class which handles all methods sent from the
CellEditor . |
protected JTextArea |
editorComponent
The Swing component being edited.
|
changeEvent, listenerList
Constructor and Description |
---|
TextAreaTableCellEditor()
Constructs a
TableCellEditor that uses a text field. |
Modifier and Type | Method and Description |
---|---|
void |
cancelCellEditing()
Forwards the message from the
CellEditor to the
delegate . |
Object |
getCellEditorValue()
Forwards the message from the
CellEditor to the
delegate . |
int |
getClickCountToStart()
Returns the number of clicks needed to start editing.
|
Component |
getComponent()
Returns a reference to the editor component.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Implements the
TableCellEditor interface. |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Implements the
TreeCellEditor interface. |
boolean |
isCellEditable(EventObject anEvent)
Forwards the message from the
CellEditor to the
delegate . |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.
|
boolean |
shouldSelectCell(EventObject anEvent)
Forwards the message from the
CellEditor to the
delegate . |
boolean |
stopCellEditing()
Forwards the message from the
CellEditor to the
delegate . |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, removeCellEditorListener
protected JTextArea editorComponent
protected TextAreaTableCellEditor.EditorDelegate delegate
CellEditor
.protected int clickCountToStart
clickCountToStart
is defined as zero, it will not
initiate until a click occurs.public TextAreaTableCellEditor()
TableCellEditor
that uses a text field.public Component getComponent()
Component
public void setClickCountToStart(int count)
count
- an int specifying the number of clicks needed to start editinggetClickCountToStart()
public int getClickCountToStart()
public Object getCellEditorValue()
CellEditor
to the
delegate
.getCellEditorValue
in interface CellEditor
TextAreaTableCellEditor.EditorDelegate.getCellEditorValue()
public boolean isCellEditable(EventObject anEvent)
CellEditor
to the
delegate
.isCellEditable
in interface CellEditor
isCellEditable
in class AbstractCellEditor
TextAreaTableCellEditor.EditorDelegate.isCellEditable(EventObject)
public boolean shouldSelectCell(EventObject anEvent)
CellEditor
to the
delegate
.shouldSelectCell
in interface CellEditor
shouldSelectCell
in class AbstractCellEditor
TextAreaTableCellEditor.EditorDelegate.shouldSelectCell(EventObject)
public boolean stopCellEditing()
CellEditor
to the
delegate
.stopCellEditing
in interface CellEditor
stopCellEditing
in class AbstractCellEditor
TextAreaTableCellEditor.EditorDelegate.stopCellEditing()
public void cancelCellEditing()
CellEditor
to the
delegate
.cancelCellEditing
in interface CellEditor
cancelCellEditing
in class AbstractCellEditor
TextAreaTableCellEditor.EditorDelegate.cancelCellEditing()
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
TreeCellEditor
interface.getTreeCellEditorComponent
in interface TreeCellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
TableCellEditor
interface.getTableCellEditorComponent
in interface TableCellEditor
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.