|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
com.ibm.dse.gui.SpTableCellEditor
The SpTableCellEditor class is a Bean that provides a editor for SpTable.
Nested Class Summary |
---|
Nested classes inherited from class javax.swing.DefaultCellEditor |
---|
javax.swing.DefaultCellEditor.EditorDelegate |
Field Summary | |
---|---|
(package private) ColumnFormatter |
myConverter
|
(package private) java.lang.String |
strValue
|
Fields inherited from class javax.swing.DefaultCellEditor |
---|
clickCountToStart, delegate, editorComponent |
Fields inherited from class javax.swing.AbstractCellEditor |
---|
changeEvent, 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 |
---|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
Methods inherited from class javax.swing.AbstractCellEditor |
---|
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, removeCellEditorListener |
Field Detail |
ColumnFormatter myConverter
java.lang.String strValue
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)
focusGained
in interface java.awt.event.FocusListener
e
- java.awt.event.FocusEventpublic void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
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.
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
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 edited
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- java.awt.event.KeyEventpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- java.awt.event.KeyEventpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- java.awt.event.KeyEventpublic void setRequired(boolean required)
required
- boolean, the new value for the property
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |