net.aerith.misao.gui.table
Class ButtonCellEditor
java.lang.Object
|
+--javax.swing.DefaultCellEditor
|
+--net.aerith.misao.gui.table.ButtonCellEditor
- Direct Known Subclasses:
- ImageConversionTable.ImageProcessingFilterEditor, ImageConversionTable.InputImageEditor, ImageConversionTable.TransformationEditor, MagnitudeRecordTable.AttributesEditor, PlotPropertyTable.MarkEditor
- public class ButtonCellEditor
- extends javax.swing.DefaultCellEditor
The ButtonCellEditor
represents a cell editor. It
provides a framework to access the editing object from the cell
editor listener.
It has two methods to be overrided, getListener and
getEditingObject.
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.DefaultCellEditor |
javax.swing.DefaultCellEditor.EditorDelegate |
Fields inherited from class javax.swing.DefaultCellEditor |
changeEvent,
clickCountToStart,
delegate,
editorComponent,
listenerList |
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,
registerNatives,
toString,
wait,
wait,
wait |
ButtonCellEditor
public ButtonCellEditor()
- Constructs a
ButtonCellEditor
.
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Invoked when the cell is to be edited.
- Overrides:
- getTableCellEditorComponent in class javax.swing.DefaultCellEditor
- Parameters:
table
- the table of the cell to draw.value
- the value of the cell.isSelected
- true if the cell is selected.row
- the row of the cell.column
- the column of the cell.
getListener
protected ButtonCellEditorListener getListener()
- Gets the cell editor listener. It must be overrided in the
subclasses.
- Parameters:
object
- the object to edit.editor
- the cell editor.- Returns:
- the cell editor listener.
getEditingObject
protected java.lang.Object getEditingObject(int row,
int column)
- Gets the object to edit.
- Parameters:
row
- the row to edit.column
- the column to edit.- Returns:
- the object to edit.