Modifier and Type | Field and Description |
---|---|
protected ChangeEvent | |
private FocusListener | |
protected EventListenerList |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | actionPerformed(ActionEvent
the event to be processed e)Overrides sun. Implements java. |
public void | addCellEditorListener(CellEditorListener
the CellEditorListener listener)Implements javax. |
public void | cancelCellEditing()
Implements javax. |
protected void | |
protected void | |
protected void | |
public Object | getCellEditorValue()
Implements javax. |
public Component | getTableCellEditorComponent(JTable
the table, Object JTable that is asking the
editor to edit; can be null the value of the cell to be edited; it is
up to the specific editor to interpret
and draw the value. For example, if value is
the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. value, boolean null
is a valid valuetrue if the cell is to be rendered with
highlighting isSelected, int the row of the cell being edited row, int the column of the cell being edited column)Implements javax. value for the editor.
|
public boolean | isCellEditable(EventObject
the event the editor should use to consider
whether to begin editing or not event)Implements javax. anEvent .
|
public void | removeCellEditorListener(CellEditorListener
the CellEditorListener listener)Implements javax. |
public boolean | shouldSelectCell(EventObject
the event the editor should use to start
editing event)Implements javax. |
public boolean | stopCellEditing()
Implements javax. |
changeEvent | back to summary |
---|---|
protected ChangeEvent changeEvent |
editorFocusListener | back to summary |
---|---|
private FocusListener editorFocusListener |
evtListenerList | back to summary |
---|---|
protected EventListenerList evtListenerList |
XTextFieldEditor | back to summary |
---|---|
public XTextFieldEditor() |
actionPerformed | back to summary |
---|---|
public void actionPerformed(ActionEvent e) Overrides sun. Implements java. Doc from java. Invoked when an action occurs.
|
addCellEditorListener | back to summary |
---|---|
public void addCellEditorListener(CellEditorListener listener) Implements javax. Doc from javax. Adds a listener to the list that's notified when the editor stops, or cancels editing.
|
cancelCellEditing | back to summary |
---|---|
public void cancelCellEditing() Implements javax. Doc from javax. Tells the editor to cancel editing and not accept any partially edited value. |
dropSuccess | back to summary |
---|---|
protected void dropSuccess() |
fireEditingCanceled | back to summary |
---|---|
protected void fireEditingCanceled() |
fireEditingStopped | back to summary |
---|---|
protected void fireEditingStopped() |
getCellEditorValue | back to summary |
---|---|
public Object getCellEditorValue() Implements javax. Doc from javax. Returns the value contained in the editor.
|
getTableCellEditorComponent | back to summary |
---|---|
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Implements javax. Doc from javax. Sets an initial
Returns the component that should be added to the client's
|
isCellEditable | back to summary |
---|---|
public boolean isCellEditable(EventObject event) Implements javax. Doc from javax. Asks the editor if it can start editing using
|
removeCellEditorListener | back to summary |
---|---|
public void removeCellEditorListener(CellEditorListener listener) Implements javax. Doc from javax. Removes a listener from the list that's notified
|
shouldSelectCell | back to summary |
---|---|
public boolean shouldSelectCell(EventObject event) Implements javax. Doc from javax. Returns true if the editing cell should be selected, false otherwise. Typically, the return value is true, because is most cases the editing cell should be selected. However, it is useful to return false to keep the selection from changing for some types of edits. eg. A table that contains a column of check boxes, the user might want to be able to change those checkboxes without altering the selection. (See Netscape Communicator for just such an example) Of course, it is up to the client of the editor to use the return value, but it doesn't need to if it doesn't want to.
|
stopCellEditing | back to summary |
---|---|
public boolean stopCellEditing() Implements javax. Doc from javax. Tells the editor to stop editing and accept any partially edited value as the value of the editor. The editor returns false if editing was not stopped; this is useful for editors that validate and can not accept invalid entries.
|