Adempiere 3.5.2a

org.compiere.minigrid
Class MiniCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.compiere.minigrid.MiniCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class MiniCellEditor
extends AbstractCellEditor
implements TableCellEditor

MiniTable Cell Editor based on class - Timestamp, BigDecimal

Version:
$Id: MiniCellEditor.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
MiniCellEditor(Class c)
          Default Constructor
 
Method Summary
 Object getCellEditorValue()
          Returns the value contained in the editor
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          Sets an initial value for the editor.
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

MiniCellEditor

public MiniCellEditor(Class c)
Default Constructor

Parameters:
c - Class
Method Detail

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Sets an initial value for the editor. This will cause the editor to stopEditing and lose any partially edited value if the editor is editing when this method is called. Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.

Specified by:
getTableCellEditorComponent in interface TableCellEditor
Parameters:
table -
value -
isSelected -
row -
column -
Returns:
Component

getCellEditorValue

public Object getCellEditorValue()
Returns the value contained in the editor

Specified by:
getCellEditorValue in interface CellEditor
Returns:
value

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.