protected class UIDefaultTableCellEditor.EditorDelegate
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.io.Serializable
EditorDelegate
class.限定符和类型 | 字段和说明 |
---|---|
protected java.lang.Object |
value
The value of this cell.
|
限定符 | 构造器和说明 |
---|---|
protected |
UIDefaultTableCellEditor.EditorDelegate() |
限定符和类型 | 方法和说明 |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
When an action is performed, editing is ended.
|
void |
cancelCellEditing()
Cancels editing.
|
java.lang.Object |
getCellEditorValue()
Returns the value of this cell.
|
boolean |
isCellEditable(java.util.EventObject anEvent)
Returns true if
anEvent is not a
MouseEvent . |
void |
itemStateChanged(java.awt.event.ItemEvent e)
When an item's state changes, editing is ended.
|
void |
setValue(java.lang.Object value)
Sets the value of this cell.
|
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Returns true to indicate that the editing cell may
be selected.
|
boolean |
startCellEditing(java.util.EventObject anEvent)
Returns true to indicate that editing has begun.
|
boolean |
stopCellEditing()
Stops editing and
returns true to indicate that editing has stopped.
|
public java.lang.Object getCellEditorValue()
public void setValue(java.lang.Object value)
value
- the new value of this cellpublic boolean isCellEditable(java.util.EventObject anEvent)
anEvent
is not a
MouseEvent
. Otherwise, it returns true
if the necessary number of clicks have occurred, and
returns false otherwise.anEvent
- the eventUIDefaultTableCellEditor.setClickCountToStart(int)
,
shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(java.util.EventObject anEvent)
anEvent
- the eventisCellEditable(java.util.EventObject)
public boolean startCellEditing(java.util.EventObject anEvent)
anEvent
- the eventpublic boolean stopCellEditing()
fireEditingStopped
.public void cancelCellEditing()
fireEditingCanceled
.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
在接口中 java.awt.event.ActionListener
e
- the action eventstopCellEditing()
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
在接口中 java.awt.event.ItemListener
e
- the action eventstopCellEditing()