KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > DefaultCellEditor

javax.swing
Class DefaultCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor
See Also:
Top Examples, Source Code, XMLEncoder

public void cancelCellEditing()
See Also:
AbstractCellEditor, CellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int clickCountToStart
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DefaultCellEditor(JCheckBox checkBox)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DefaultCellEditor(JComboBox comboBox)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DefaultCellEditor(JTextField textField)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected DefaultCellEditor.EditorDelegate delegate
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JComponent editorComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getCellEditorValue()
See Also:
CellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[151]Override DefaultCellEditor getCellEditorValue method to return an Integer, not a String
By Anonymous on 2003/01/22 13:27:29  Rate
integerCellEditor = new DefaultCellEditor ( wholeNumberField )   {  
         //Override DefaultCellEditor's getCellEditorValue method 
         //to return an Integer, not a String: 
         public Object getCellEditorValue (  )   {  
           return new Integer ( wholeNumberField.getIntValue (  )  ) ; 
          }  
      } ; 
 


[1816]Where to find WholeNumberField
By Bruce Ingalls, a Sourceforge { dot } net user on 2006/09/01 17:13:12  Rate
/** The original poster provided no link for WholeNumberField: 
 * @author jdk 1.2 tutorial examples at  { @link http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/  }  
 * @version August 2, 1999 
 * Unfortunately, that link is gone. Your search engine may reveal an update: 
 *  { @link http://www.iam.ubc.ca/guides/javatut99/uiswing/components/example-swing/WholeNumberField.java  }  
 */


public int getClickCountToStart()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getComponent()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
See Also:
TableCellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getTreeCellEditorComponent(JTree tree,
                                            Object value,
                                            boolean isSelected,
                                            boolean expanded,
                                            boolean leaf,
                                            int row)
See Also:
TreeCellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isCellEditable(EventObject anEvent)
See Also:
AbstractCellEditor, CellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setClickCountToStart(int count)
See Also:
getClickCountToStart()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean shouldSelectCell(EventObject anEvent)
See Also:
AbstractCellEditor, CellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean stopCellEditing()
See Also:
AbstractCellEditor, CellEditor
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags