net.sourceforge.fixagora.basis.client.view.editor
Class SpreadSheetCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by net.sourceforge.fixagora.basis.client.view.editor.SpreadSheetCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class SpreadSheetCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor

The Class SpreadSheetCellEditor.

See Also:
Serialized Form

Constructor Summary
SpreadSheetCellEditor(SpreadSheetTableModel spreadSheetTableModel, SpreadSheetEditorSheet spreadSheetEditorSheet, BasisClientConnector basisClientConnector)
          Instantiates a new spread sheet cell editor.
 
Method Summary
 void cancelCellEditing()
           
 java.lang.Object getCellEditorValue()
           
 SpreadSheetCellFormat getSpreadSheetCellFormat()
          Gets the spread sheet cell format.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int rowIndex, int vColIndex)
           
 boolean isCellEditable(java.util.EventObject eventObject)
           
 void setText(java.lang.String text)
          Sets the text.
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

SpreadSheetCellEditor

public SpreadSheetCellEditor(SpreadSheetTableModel spreadSheetTableModel,
                             SpreadSheetEditorSheet spreadSheetEditorSheet,
                             BasisClientConnector basisClientConnector)
Instantiates a new spread sheet cell editor.

Parameters:
spreadSheetTableModel - the spread sheet table model
spreadSheetEditorSheet - the spread sheet editor sheet
basisClientConnector - the basis client connector
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int rowIndex,
                                                      int vColIndex)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

isCellEditable

public boolean isCellEditable(java.util.EventObject eventObject)
Specified by:
isCellEditable in interface javax.swing.CellEditor
Overrides:
isCellEditable in class javax.swing.AbstractCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor
Overrides:
stopCellEditing in class javax.swing.AbstractCellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface javax.swing.CellEditor
Overrides:
cancelCellEditing in class javax.swing.AbstractCellEditor

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the new text

getSpreadSheetCellFormat

public SpreadSheetCellFormat getSpreadSheetCellFormat()
Gets the spread sheet cell format.

Returns:
the spread sheet cell format