public class UIDefaultTableCellEditor extends UITableEditor
java.beans
package.
Please see XMLEncoder
.限定符和类型 | 类和说明 |
---|---|
protected class |
UIDefaultTableCellEditor.EditorDelegate
The protected
EditorDelegate class. |
限定符和类型 | 字段和说明 |
---|---|
protected int |
clickCountToStart
An integer specifying the number of clicks needed to start editing.
|
protected UIDefaultTableCellEditor.EditorDelegate |
delegate
The delegate class which handles all methods sent from the
CellEditor . |
protected javax.swing.JComponent |
editorComponent
The Swing component being edited.
|
构造器和说明 |
---|
UIDefaultTableCellEditor(javax.swing.JCheckBox checkBox)
Constructs a
DefaultCellEditor object that uses a check box. |
UIDefaultTableCellEditor(javax.swing.JComboBox comboBox)
Constructs a
DefaultCellEditor object that uses a
combo box. |
UIDefaultTableCellEditor(UITextField textField)
Constructs a
DefaultCellEditor that uses a text field. |
限定符和类型 | 方法和说明 |
---|---|
void |
cancelCellEditing()
Forwards the message from the
CellEditor to
the delegate . |
java.lang.Object |
getCellEditorValue()
Forwards the message from the
CellEditor to
the delegate . |
int |
getClickCountToStart()
Returns the number of clicks needed to start editing.
|
java.awt.Component |
getComponent()
Returns a reference to the editor component.
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Implements the
TableCellEditor interface. |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
Implements the
TreeCellEditor interface. |
boolean |
isCellEditable(java.util.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(java.util.EventObject anEvent)
Forwards the message from the
CellEditor to
the delegate . |
boolean |
stopCellEditing()
Forwards the message from the
CellEditor to
the delegate . |
setValue
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
protected javax.swing.JComponent editorComponent
protected UIDefaultTableCellEditor.EditorDelegate delegate
CellEditor
.protected int clickCountToStart
clickCountToStart
is defined as zero, it
will not initiate until a click occurs.public UIDefaultTableCellEditor(UITextField textField)
DefaultCellEditor
that uses a text field.textField
- a JTextField
objectpublic UIDefaultTableCellEditor(javax.swing.JCheckBox checkBox)
DefaultCellEditor
object that uses a check box.checkBox
- a JCheckBox
objectpublic UIDefaultTableCellEditor(javax.swing.JComboBox comboBox)
DefaultCellEditor
object that uses a
combo box.comboBox
- a JComboBox
objectpublic java.awt.Component getComponent()
Component
public void setClickCountToStart(int count)
count
- an int specifying the number of clicks needed to start editinggetClickCountToStart()
public int getClickCountToStart()
public java.lang.Object getCellEditorValue()
CellEditor
to
the delegate
.getCellEditorValue
在接口中 javax.swing.CellEditor
getCellEditorValue
在类中 UITableEditor
UIDefaultTableCellEditor.EditorDelegate.getCellEditorValue()
public boolean isCellEditable(java.util.EventObject anEvent)
CellEditor
to
the delegate
.isCellEditable
在接口中 javax.swing.CellEditor
isCellEditable
在类中 javax.swing.AbstractCellEditor
UIDefaultTableCellEditor.EditorDelegate.isCellEditable(EventObject)
public boolean shouldSelectCell(java.util.EventObject anEvent)
CellEditor
to
the delegate
.shouldSelectCell
在接口中 javax.swing.CellEditor
shouldSelectCell
在类中 javax.swing.AbstractCellEditor
UIDefaultTableCellEditor.EditorDelegate.shouldSelectCell(EventObject)
public boolean stopCellEditing()
CellEditor
to
the delegate
.stopCellEditing
在接口中 javax.swing.CellEditor
stopCellEditing
在类中 javax.swing.AbstractCellEditor
UIDefaultTableCellEditor.EditorDelegate.stopCellEditing()
public void cancelCellEditing()
CellEditor
to
the delegate
.cancelCellEditing
在接口中 javax.swing.CellEditor
cancelCellEditing
在类中 javax.swing.AbstractCellEditor
UIDefaultTableCellEditor.EditorDelegate.cancelCellEditing()
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
TreeCellEditor
interface.public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
TableCellEditor
interface.