org.apache.poi.hssf.contrib.view
Class SVTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.apache.poi.hssf.contrib.view.SVTableCellEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class SVTableCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, java.awt.event.ActionListener

Sheet Viewer Table Cell Editor -- not commented via javadoc as it nearly completely consists of overridden methods.

Since:
16 July 2002
Author:
Jason Height
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
SVTableCellEditor(HSSFWorkbook wb)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void cancelCellEditing()
           
 java.lang.Object getCellEditorValue()
          Gets the cellEditorValue attribute of the SVTableCellEditor object
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Gets the tableCellEditorComponent attribute of the SVTableCellEditor object
 boolean isCellEditable(java.util.EventObject e)
          Gets the cellEditable attribute of the SVTableCellEditor object
 boolean shouldSelectCell(java.util.EventObject anEvent)
           
 boolean startCellEditing(java.util.EventObject anEvent)
           
 boolean stopCellEditing()
           
 
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

SVTableCellEditor

public SVTableCellEditor(HSSFWorkbook wb)
Method Detail

isCellEditable

public boolean isCellEditable(java.util.EventObject e)
Gets the cellEditable attribute of the SVTableCellEditor object

Specified by:
isCellEditable in interface javax.swing.CellEditor
Overrides:
isCellEditable in class javax.swing.AbstractCellEditor
Returns:
The cellEditable value

shouldSelectCell

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

startCellEditing

public boolean startCellEditing(java.util.EventObject anEvent)

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getCellEditorValue

public java.lang.Object getCellEditorValue()
Gets the cellEditorValue attribute of the SVTableCellEditor object

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Returns:
The cellEditorValue value

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Gets the tableCellEditorComponent attribute of the SVTableCellEditor object

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Returns:
The tableCellEditorComponent value


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.