|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.toolbox.ui.widget.table.DefaultTableCellEditor
public class DefaultTableCellEditor
This is the default cell editor for TableWidgets. It edits boolean values using CheckBoxes and numeric values using right- justified TextFields.
| Nested Class Summary | |
|---|---|
protected class |
DefaultTableCellEditor.Delegate
|
| Field Summary | |
|---|---|
static java.lang.String |
CLICK_COUNT_TO_START_PROPERTY
|
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
DefaultTableCellEditor()
|
|
| Method Summary | |
|---|---|
void |
addCellEditorListener(javax.swing.event.CellEditorListener listener)
Registers the specified listener to be notified of changes to the editor. |
void |
cancelCellEditing()
Fires a ChangeEvent to all registered CellEditorListeners via the editingCanceled method. |
java.lang.Object |
getCellEditorValue()
|
protected CheckBox |
getCheckBox()
|
int |
getClickCountToStart()
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int rowIndex,
int columnIndex)
|
protected TextFieldWidget |
getTextField()
|
protected void |
initializeComponent(java.awt.Component component,
javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(java.util.EventObject event)
|
void |
removeCellEditorListener(javax.swing.event.CellEditorListener listener)
Unregisters the specified listener. |
void |
setCellEditorValue(java.lang.Object value)
|
void |
setClickCountToStart(int clickCountToStart)
Sets the number of mouse clicks required before the cell begins editing. |
protected void |
setDelegate(DefaultTableCellEditor.Delegate delegate,
java.lang.Object value)
Sets the delegate property to the specified delegate and initializes its value to the specified value. |
boolean |
shouldSelectCell(java.util.EventObject event)
|
boolean |
stopCellEditing()
Fires a ChangeEvent to all registered CellEditorListeners via the editingStopped method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLICK_COUNT_TO_START_PROPERTY
| Constructor Detail |
|---|
public DefaultTableCellEditor()
| Method Detail |
|---|
public void addCellEditorListener(javax.swing.event.CellEditorListener listener)
addCellEditorListener in interface javax.swing.CellEditorlistener - A CellEditorListenerpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorprotected CheckBox getCheckBox()
public int getClickCountToStart()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int rowIndex,
int columnIndex)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorprotected TextFieldWidget getTextField()
protected void initializeComponent(java.awt.Component component,
javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int rowIndex,
int columnIndex)
public boolean isCellEditable(java.util.EventObject event)
isCellEditable in interface javax.swing.CellEditorevent - An event object (usually a MouseEvent)
public void removeCellEditorListener(javax.swing.event.CellEditorListener listener)
removeCellEditorListener in interface javax.swing.CellEditorlistener - A CellEditorListenerpublic void setCellEditorValue(java.lang.Object value)
public void setClickCountToStart(int clickCountToStart)
clickCountToStart - The number of mouse clicks
protected void setDelegate(DefaultTableCellEditor.Delegate delegate,
java.lang.Object value)
public boolean shouldSelectCell(java.util.EventObject event)
shouldSelectCell in interface javax.swing.CellEditorevent - An event object (usually a MouseEvent)
public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||