wt.clients.widgets
Class JCSMTableCellEditor

java.lang.Object
  extended bywt.clients.widgets.JCSMTableCellEditor
All Implemented Interfaces:
CellEditor, Serializable, TableCellEditor
Direct Known Subclasses:
FuncEquivCriteriaCellEditor

public class JCSMTableCellEditor
extends Object
implements TableCellEditor, Serializable

See Also:
Serialized Form

Field Summary
protected  ChangeEvent changeEvent
           
protected  int clickCountToStart
           
protected  JComponent editorComponent
           
protected  EventListenerList listenerList
          Event listeners
 
Constructor Summary
JCSMTableCellEditor(JComponent jcsmcomponent)
           
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
           
 void cancelCellEditing()
           
protected  void fireEditingCanceled()
           
protected  void fireEditingStopped()
           
 Object getCellEditorValue()
           
 int getClickCountToStart()
          ClickCountToStart controls the number of clicks required to start editing.
 Component getComponent()
          Returns the a reference to the editor component.
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(EventObject anEvent)
           
 void removeCellEditorListener(CellEditorListener l)
           
 void setClickCountToStart(int count)
          Specifies the number of clicks needed to start editing.
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected EventListenerList listenerList
Event listeners


changeEvent

protected transient ChangeEvent changeEvent

editorComponent

protected JComponent editorComponent

clickCountToStart

protected int clickCountToStart
Constructor Detail

JCSMTableCellEditor

public JCSMTableCellEditor(JComponent jcsmcomponent)
Method Detail

getComponent

public Component getComponent()
Returns the a reference to the editor component.

Returns:
the editor Component

setClickCountToStart

public void setClickCountToStart(int count)
Specifies the number of clicks needed to start editing.

Parameters:
count - an int specifying the number of clicks needed to start editing
See Also:
getClickCountToStart()

getClickCountToStart

public int getClickCountToStart()
ClickCountToStart controls the number of clicks required to start editing.


getCellEditorValue

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

isCellEditable

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

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Specified by:
shouldSelectCell in interface CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor

addCellEditorListener

public void addCellEditorListener(CellEditorListener l)
Specified by:
addCellEditorListener in interface CellEditor

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)
Specified by:
removeCellEditorListener in interface CellEditor

fireEditingStopped

protected void fireEditingStopped()

fireEditingCanceled

protected void fireEditingCanceled()

getTableCellEditorComponent

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