leon.view.win.swing.table
Class LyCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
leon.view.win.swing.table.LyCellEditor
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class LyCellEditor
- extends javax.swing.DefaultCellEditor
The default editor for table and tree cells.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
__VERSION
|
Constructor Summary |
LyCellEditor()
Default cell editor constructor. |
Method Summary |
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. |
Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, getCellEditorListeners, removeCellEditorListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyCellEditor
public LyCellEditor()
- Default cell editor constructor.
getTableCellEditorComponent
public 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. This will cause the editor to stop editing and lose any
partially edited value if the editor is editing when this method is called.
- Specified by:
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
- Overrides:
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
- Parameters:
table
- the JTable
that is asking the editor to edit; can be
null
value
- 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. null
is a valid valueisSelected
- true if the cell is to be rendered with highlightingrow
- the row of the cell being editedcolumn
- the column of the cell being edited
- 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.
Website: W4 S.A., contact us: support@w4global.com