public class AttributeTableEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor
Modifier and Type | Class and Description |
---|---|
static interface |
AttributeTableEditor.AttribEditor
A generic table cell editor interface.
|
static class |
AttributeTableEditor.BooleanAttribEditor
A combo box editor component for boolean attributes
|
static class |
AttributeTableEditor.FilenameAttribEditor
An editor component for filename attributes of type desmoj.util.Filename
|
static class |
AttributeTableEditor.FloatingPointNumberEditor
Editor for all floating point types (Float, Double)
|
static class |
AttributeTableEditor.IntegerNumberEditor
Editor for all integer based types (Byte, Short, Integer, Long)
|
static class |
AttributeTableEditor.StringEditor
Editor for a string component
|
static class |
AttributeTableEditor.TextBasedEditor
A default text editor consisting of a single TextField.
|
static class |
AttributeTableEditor.TimeUnitAttribEditor
A combo box editor component for TimeUnits
|
Constructor and Description |
---|
AttributeTableEditor()
Creates a new AttributeTableEditor and registers the known cell editors.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCellEditorValue()
Returns the value of the current cell editor
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
int row,
int col)
Implemented for interface TableCellEditor.
|
addCellEditorListener, cancelCellEditing, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
public AttributeTableEditor()
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.TableCellEditor
table
- the current JTablevalue
- the object to editselected
- flag indicating if the cell containing the object is selectedrow
- row of table cellcol
- column of table cellpublic java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor