Package org.compiere.apps.search
Class FindValueEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.compiere.apps.search.FindValueEditor
-
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
public final class FindValueEditor extends AbstractCellEditor implements TableCellEditor
Cell editor for Find Value field. Editor depends on Column setting Has to save entries how they are used in the query, i.e. '' for strings- Version:
- $Id: FindValueEditor.java,v 1.2 2006/07/30 00:51:27 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 FindValueEditor(Find find, boolean valueTo)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getCellEditorValue()
Get Value Need to convert to StringComponent
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col)
Get Editorboolean
isCellEditable(EventObject e)
Cell Editable.boolean
shouldSelectCell(EventObject e)
Cell Selectable.-
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
-
FindValueEditor
public FindValueEditor(Find find, boolean valueTo)
Constructor- Parameters:
find
- findvalueTo
- true if it is the "to" value column
-
-
Method Detail
-
getCellEditorValue
public Object getCellEditorValue()
Get Value Need to convert to String- Specified by:
getCellEditorValue
in interfaceCellEditor
- Returns:
- current value
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col)
Get Editor- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
- Parameters:
table
- Tablevalue
- ValueisSelected
- cell is selectedrow
- rowcol
- column- Returns:
- Editor component
-
isCellEditable
public boolean isCellEditable(EventObject e)
Cell Editable. Called before getTableCellEditorComponent- Specified by:
isCellEditable
in interfaceCellEditor
- Overrides:
isCellEditable
in classAbstractCellEditor
- Parameters:
e
- event- Returns:
- true if editable
-
shouldSelectCell
public boolean shouldSelectCell(EventObject e)
Cell Selectable. Called after getTableCellEditorComponent- Specified by:
shouldSelectCell
in interfaceCellEditor
- Overrides:
shouldSelectCell
in classAbstractCellEditor
- Parameters:
e
- event- Returns:
- true if selectable
-
-