com.nonesole.swing.plaf.basic.table.utable.tableeditor
Class BasicCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.nonesole.swing.plaf.basic.table.utable.tableeditor.BasicCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor
Direct Known Subclasses:
DecimalCellEditor, IntegerCellEditor

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

BasicCellEditor is basic cell class of UTable.

Version:
1.0 - build in 2009-11-09
Author:
JACK LEE
See Also:
Serialized Form

Constructor Summary
BasicCellEditor()
           
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 int getClickCountToStart()
          Get count of mouse click
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(java.util.EventObject anEvent)
           
 void setClickCountToStart(int count)
          Set count of mouse click which will start editor
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

BasicCellEditor

public BasicCellEditor()
Method Detail

getTableCellEditorComponent

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

getCellEditorValue

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

setClickCountToStart

public void setClickCountToStart(int count)
Set count of mouse click which will start editor

Parameters:
int - count

getClickCountToStart

public int getClickCountToStart()
Get count of mouse click

Parameters:
int - count

isCellEditable

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