|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.DefaultCellEditor | +--com.ibm.dse.gui.SpTableCellEditor
The SpTableCellEditor class is a Bean that provides a editor for SpTable.
Inner classes inherited from class javax.swing.DefaultCellEditor |
javax.swing.DefaultCellEditor.EditorDelegate |
Fields inherited from class javax.swing.DefaultCellEditor |
changeEvent,
clickCountToStart,
delegate,
editorComponent,
listenerList |
Constructor Summary | |
SpTableCellEditor(javax.swing.JTextField x,
ColumnFormatter aConverter)
This constructor creates a SpTableCellEditor object. |
Method Summary | |
protected void |
evaluateValue(SpTable table)
Gets selected value in SpTable and evaluates its color and format. |
void |
focusGained(java.awt.event.FocusEvent e)
Handles events for the FocusListener interface. |
void |
focusLost(java.awt.event.FocusEvent e)
Handles events for the FocusListener interface. |
Converter |
getConverter()
Gets the converter associated to the SpTableCellEditor. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor. |
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed. |
void |
keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released. |
void |
keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed. |
void |
setRequired(boolean required)
Sets the required property (boolean) value. |
Methods inherited from class javax.swing.DefaultCellEditor |
addCellEditorListener,
cancelCellEditing,
fireEditingCanceled,
fireEditingStopped,
getCellEditorValue,
getClickCountToStart,
getComponent,
getTreeCellEditorComponent,
isCellEditable,
removeCellEditorListener,
setClickCountToStart,
shouldSelectCell,
stopCellEditing |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SpTableCellEditor(javax.swing.JTextField x, ColumnFormatter aConverter)
x
- JTextField, the text field associated to the table cellsaConverter
- com.ibm.dse.gui.ColumnFormatter, the converter associated to the cellMethod Detail |
protected void evaluateValue(SpTable table)
public void focusGained(java.awt.event.FocusEvent e)
e
- java.awt.event.FocusEventpublic void focusLost(java.awt.event.FocusEvent e)
e
- java.awt.event.FocusEventpublic Converter getConverter()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.
table
- JTable, the JTable that is asking the editor to edit
This parameter can be null.value
- Object, the value of the cell to be edited. It is
up to the specific editor to interpret
and draw the value. eg. 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. null is a valid value.isSelected
- boolean, true is the cell is to be renderer with
selection highlightingrow
- int, the row of the cell being editedcolumn
- int, the column of the cell being editedpublic void keyPressed(java.awt.event.KeyEvent e)
e
- java.awt.event.KeyEventpublic void keyReleased(java.awt.event.KeyEvent e)
e
- java.awt.event.KeyEventpublic void keyTyped(java.awt.event.KeyEvent e)
e
- java.awt.event.KeyEventpublic void setRequired(boolean required)
required
- boolean, the new value for the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |