jfract V1.0a

org.jfract.beanEditor
Class JBeanCellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--org.jfract.beanEditor.JBeanCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor

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

The editor for jfract Jtable cells.

Version:
1.38 02/02/00
Author:
Alan Chung, Philip Milne extended by guillaume rousseau for jfract project
See Also:
Serialized Form

Field Summary
protected  int clickCountToStart
           
protected  AbstractJBeanEditorDelegate delegate
           
protected  org.w3c.dom.Document descriptionDoc
           
protected  javax.swing.JComponent editorComponent
           
private static org.apache.log4j.Category log4j_category
           
protected  PanelEditor parent
          the PanelEditor that use the cell Editor
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
JBeanCellEditor(PanelEditor parent, org.w3c.dom.Document doc)
          Constructs a DefaultCellEditor that uses a text field.
 
Method Summary
 void cancelCellEditing()
           
 java.lang.Object getCellEditorValue()
           
 int getClickCountToStart()
          ClickCountToStart controls the number of clicks required to start editing.
 javax.swing.JComponent getComponent()
          Returns the a reference to the editor component.
 PanelEditor getParent()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           Here we get the JComponant from a cell we use the xmlDesription File jfract.xml to register the different Editor from org.jfract.beanEditor.JBeanCellEditor package
 boolean isCellEditable(java.util.EventObject anEvent)
           
 void publicFireEditingStopped()
          a public method to fire the stopp
 boolean shouldSelectCell(java.util.EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, removeCellEditorListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

log4j_category

private static final org.apache.log4j.Category log4j_category

editorComponent

protected javax.swing.JComponent editorComponent

delegate

protected AbstractJBeanEditorDelegate delegate

clickCountToStart

protected int clickCountToStart

parent

protected PanelEditor parent
the PanelEditor that use the cell Editor

descriptionDoc

protected org.w3c.dom.Document descriptionDoc
Constructor Detail

JBeanCellEditor

public JBeanCellEditor(PanelEditor parent,
                       org.w3c.dom.Document doc)
Constructs a DefaultCellEditor that uses a text field.
Parameters:
x - a JTextField object ...
Method Detail

getParent

public PanelEditor getParent()

publicFireEditingStopped

public void publicFireEditingStopped()
a public method to fire the stopp

getComponent

public javax.swing.JComponent getComponent()
Returns the a reference to the editor component.
Returns:
the editor Component

getClickCountToStart

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

getCellEditorValue

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

isCellEditable

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

shouldSelectCell

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

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

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)

Here we get the JComponant from a cell we use the xmlDesription File jfract.xml to register the different Editor from org.jfract.beanEditor.JBeanCellEditor package

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

jfract V1.0a

Generee le 27.09.2002 08:21:59 PM