|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
org.compiere.grid.ed.VCellEditor
public final class VCellEditor
Cell Editor.
Sequence of events:
isCellEditable
getTableCellEditor
shouldSelectCell
getCellEditorValue
A new Editor is created for editable columns.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
VCellEditor(GridField mField)
Constructor for Grid |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Editor - Stop Editor |
void |
cancelCellEditing()
|
void |
dispose()
Dispose |
Object |
getCellEditorValue()
Returns the value contained in the editor |
VEditor |
getEditor()
Get Actual 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 |
setActionListener(ActionListener listener)
|
boolean |
shouldSelectCell(EventObject e)
The editing cell should be selected or not |
boolean |
stopCellEditing()
|
void |
vetoableChange(PropertyChangeEvent e)
VEditor Change Listener (property name is columnName) |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| 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, removeCellEditorListener |
| Constructor Detail |
|---|
public VCellEditor(GridField mField)
mField - | Method Detail |
|---|
public boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditoranEvent - event
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int col)
getTableCellEditorComponent in interface TableCellEditortable - value - isSelected - row - col -
public boolean shouldSelectCell(EventObject e)
shouldSelectCell in interface CellEditorshouldSelectCell in class AbstractCellEditore - event
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic void vetoableChange(PropertyChangeEvent e)
vetoableChange in interface VetoableChangeListenere - eventpublic VEditor getEditor()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - eventpublic void dispose()
public boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorcancelCellEditing in class AbstractCellEditorpublic void setActionListener(ActionListener listener)
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||