Adempiere 3.5.2a

org.compiere.grid.ed
Class VRowIDEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.compiere.grid.ed.VRowIDEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class VRowIDEditor
extends AbstractCellEditor
implements TableCellEditor

RowID Cell Editor providing Selection

Version:
$Id: VRowIDEditor.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
VRowIDEditor(boolean select)
          Constructor
 
Method Summary
 Object getCellEditorValue()
          Returns the value contained in the editor
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col)
          Sets an initial value for the editor.
 boolean isCellEditable(EventObject anEvent)
          Ask the editor if it can start editing using anEvent.
 void setEnableSelection(boolean showSelection)
          Enable Selection to be displayed
 boolean shouldSelectCell(EventObject anEvent)
          The editing cell should be selected or not
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, 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, removeCellEditorListener, stopCellEditing
 

Constructor Detail

VRowIDEditor

public VRowIDEditor(boolean select)
Constructor

Method Detail

setEnableSelection

public void setEnableSelection(boolean showSelection)
Enable Selection to be displayed


isCellEditable

public boolean isCellEditable(EventObject anEvent)
Ask the editor if it can start editing using anEvent. This method is intended for the use of client to avoid the cost of setting up and installing the editor component if editing is not possible. If editing can be started this method returns true

Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class AbstractCellEditor

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int col)
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

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
The editing cell should be selected or not

Specified by:
shouldSelectCell in interface CellEditor
Overrides:
shouldSelectCell in class AbstractCellEditor

getCellEditorValue

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

Specified by:
getCellEditorValue in interface CellEditor

Adempiere 3.5.2a

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