org.tentackle.ui
Class FormFieldComponentCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.tentackle.ui.FormComponentCellEditor
          extended by org.tentackle.ui.FormFieldComponentCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor

public class FormFieldComponentCellEditor
extends FormComponentCellEditor

Cell Editor for FormFieldComponents.
Extends the FormComponentCellEditor for table cell editors based on FormFields.

Notice: Currently, tree cell editors are not enhanced any further.

Author:
harald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tentackle.ui.FormComponentCellEditor
clickCountToStart, column, editor, expanded, leaf, row, selected, table, tree
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
FormFieldComponentCellEditor()
          Creates a cell-editor with a default editing component.
FormFieldComponentCellEditor(FormFieldComponent editorComponent)
          Creates a celleditor from a FormFieldComponent.
 
Method Summary
 FormFieldComponent getEditorComponent()
          Gets the current editor component.
protected  void prepareTableCellEditorComponent(FormTable table, boolean selected, int row, int column)
          Prepares the table cell editor.
 void setEditorComponent(FormFieldComponent editor)
          Sets the editor FormFieldComponent.
 
Methods inherited from class org.tentackle.ui.FormComponentCellEditor
cancelCellEditing, clearInhibitCellTraversal, clearStartOver, getCellEditorValue, getClickCountToStart, getFormTable, getTableCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, getTreeCellEditorComponent, inhibitCellTraversal, isAutoRowHeight, isCellEditable, prepare, prepareTreeCellEditorComponent, requestFocusInWindow, requestFocusLater, setAutoRowHeight, setClickCountToStart, setEditorComponent, shouldSelectCell, startOver, stopCellEditing, wasEditingCanceled
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, 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

FormFieldComponentCellEditor

public FormFieldComponentCellEditor(FormFieldComponent editorComponent)
Creates a celleditor from a FormFieldComponent.

Parameters:
editorComponent - the editor formfield component

FormFieldComponentCellEditor

public FormFieldComponentCellEditor()
Creates a cell-editor with a default editing component.

See Also:
StringFormField
Method Detail

setEditorComponent

public void setEditorComponent(FormFieldComponent editor)
Sets the editor FormFieldComponent.

Parameters:
editor - the editor component

getEditorComponent

public FormFieldComponent getEditorComponent()
Gets the current editor component.

Overrides:
getEditorComponent in class FormComponentCellEditor
Returns:
the editor component

prepareTableCellEditorComponent

protected void prepareTableCellEditorComponent(FormTable table,
                                               boolean selected,
                                               int row,
                                               int column)
Description copied from class: FormComponentCellEditor
Prepares the table cell editor.

Overrides:
prepareTableCellEditorComponent in class FormComponentCellEditor
Parameters:
table - the table
selected - true if cell is selected
row - the table row
column - the table column


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de