Package org.compiere.apps.search
Class FindCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.compiere.apps.search.FindCellEditor
-
- All Implemented Interfaces:
ActionListener,Serializable,EventListener,CellEditor,TableCellEditor
public final class FindCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener
Cell Editor.Sequence of events: isCellEditable getTableCellEditor shouldSelectCell getCellEditorValueA new Editor is created for editable columns.- Version:
- $Id: VCellEditor.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
Constructors Constructor Description FindCellEditor(CEditor component)Constructor for Grid
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)Action Editor - Stop Editorvoiddispose()DisposeObjectgetCellEditorValue()Returns the value contained in the editorComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col)Sets an initial value for the editor.booleanisCellEditable(EventObject anEvent)booleanshouldSelectCell(EventObject e)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
-
FindCellEditor
public FindCellEditor(CEditor component)
Constructor for Grid- Parameters:
mField-
-
-
Method Detail
-
isCellEditable
public boolean isCellEditable(EventObject anEvent)
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor- Parameters:
anEvent- event- Returns:
- true if editable
-
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:
getTableCellEditorComponentin interfaceTableCellEditor- Parameters:
table-value-isSelected-row-col-- Returns:
- component
-
shouldSelectCell
public boolean shouldSelectCell(EventObject e)
The editing cell should be selected or not- Specified by:
shouldSelectCellin interfaceCellEditor- Overrides:
shouldSelectCellin classAbstractCellEditor- Parameters:
e- event- Returns:
- true (constant)
-
getCellEditorValue
public Object getCellEditorValue()
Returns the value contained in the editor- Specified by:
getCellEditorValuein interfaceCellEditor- Returns:
- value
-
actionPerformed
public void actionPerformed(ActionEvent e)
Action Editor - Stop Editor- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- event
-
dispose
public void dispose()
Dispose
-
-