qflib 0.98.1

de.qfs.lib.option
Class TableOptionEdit.Editor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--javax.swing.DefaultCellEditor
              |
              +--de.qfs.lib.option.TableOptionEdit.Editor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
Direct Known Subclasses:
TableOptionEdit.BooleanEditor, TableOptionEdit.NumberEditor, TableOptionEdit.StringEditor
Enclosing class:
TableOptionEdit

protected class TableOptionEdit.Editor
extends javax.swing.DefaultCellEditor

Baseclass for the cell editors.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
TableOptionEdit.Editor(javax.swing.JCheckBox com)
          Create a new Editor.
TableOptionEdit.Editor(javax.swing.JTextField com)
          Create a new Editor.
 
Method Summary
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Get the editor component for a cell.
 boolean isCellEditable(java.util.EventObject anEvent)
          Query whether a cell is editable.
 boolean shouldSelectCell(java.util.EventObject anEvent)
          Query whether the cell should be selected.
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, 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
 

Constructor Detail

TableOptionEdit.Editor

public TableOptionEdit.Editor(javax.swing.JTextField com)
Create a new Editor.
Parameters:
com - The actual editor component.

TableOptionEdit.Editor

public TableOptionEdit.Editor(javax.swing.JCheckBox com)
Create a new Editor.
Parameters:
com - The actual editor component.
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Get the editor component for a cell.
Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor
Parameters:
table - The table being edited.
value - The cell value.
isSelected - Whether the cell is selected.
row - The cell's row index.
column - The cell's column index.
Returns:
The editor component.

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Query whether a cell is editable.
Overrides:
isCellEditable in class javax.swing.DefaultCellEditor
Parameters:
anEvent - The event initiating the edit.
Returns:
False if anEvent is null, otherwise the result of the superclass' method.

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)
Query whether the cell should be selected.
Overrides:
shouldSelectCell in class javax.swing.DefaultCellEditor
Parameters:
anEvent - The event that started the editing.
Returns:
Depends on the superclass.

qflib 0.98.1