|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
net.sf.jguiraffe.gui.platform.swing.builder.components.table.SwingTableCellEditor
class SwingTableCellEditor
A specialized cell editor class for Swing tables.
This class is used as editor class for table columns that define a custom
editor. The component that is used as editor is obtained from the
TableTag defining the table. Together with the special table
model and the Form instance constructed for the table the
current values are transfered into the editor component and input validation
can be performed.
An instance of this class is responsible for a complete table. The editor component to be used is obtained from the table definition based on the given column index. Setting and retrieving the editor's values is of less importance because this is handled by the table's editor form object.
SwingTableModel| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
SwingTableCellEditor(SwingTableModel tabModel)
Creates a new instance of SwingTableCellEditor and sets
the associated table model. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getCellEditorValue()
Returns the current value of this editor. |
SwingTableModel |
getModel()
Returns a reference to the associated table model. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
int row,
int col)
Returns the editor component for the specified cell. |
boolean |
stopCellEditing()
Tests whether editing can be stopped. |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell |
| 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, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell |
| Constructor Detail |
|---|
public SwingTableCellEditor(SwingTableModel tabModel)
SwingTableCellEditor and sets
the associated table model.
tabModel - the table model| Method Detail |
|---|
public SwingTableModel getModel()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
int row,
int col)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditortable - the affected tablevalue - the current value of this cellselected - a flag if the cell is highlightedrow - the row indexcol - the column index
public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.AbstractCellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||