jdbreport.grid
Class ReportCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by jdbreport.grid.ReportCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor
Direct Known Subclasses:
JReportGrid.HTMLEditor, JReportGrid.StyledEditor

public class ReportCellEditor
extends AbstractCellEditor
implements TableCellEditor

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Nested Class Summary
protected  class ReportCellEditor.EditorDelegate
           
 
Field Summary
protected  JTextPane editorComponent
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ReportCellEditor(String contentType)
           
 
Method Summary
 Object getCellEditorValue()
           
 Component getComponent()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
protected  void initKeyMap()
           
protected  void insertLineBreak()
           
 boolean isCellEditable(EventObject anEvent)
           
 void setWordWrap(boolean wrap)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

editorComponent

protected JTextPane editorComponent
Constructor Detail

ReportCellEditor

public ReportCellEditor(String contentType)
Method Detail

getComponent

public Component getComponent()

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor

setWordWrap

public void setWordWrap(boolean wrap)

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class AbstractCellEditor

insertLineBreak

protected void insertLineBreak()

initKeyMap

protected void initKeyMap()