|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.EditingSupport
EditingSupport is the abstract superclass of the support for cell editing.
Constructor Summary | |
---|---|
EditingSupport(ColumnViewer viewer)
|
Method Summary | |
---|---|
protected abstract boolean |
canEdit(Object element)
Is the cell editable |
protected abstract CellEditor |
getCellEditor(Object element)
The editor to be shown |
protected abstract Object |
getValue(Object element)
Get the value to set to the editor |
ColumnViewer |
getViewer()
|
protected void |
initializeCellEditorValue(CellEditor cellEditor,
ViewerCell cell)
Initialize the editor. |
protected void |
saveCellEditorValue(CellEditor cellEditor,
ViewerCell cell)
Save the value of the cell editor back to the model. |
protected abstract void |
setValue(Object element,
Object value)
Restore the value from the CellEditor Subclasses should overwrite! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditingSupport(ColumnViewer viewer)
viewer
- a new viewerMethod Detail |
protected abstract CellEditor getCellEditor(Object element)
element
- the model element
protected abstract boolean canEdit(Object element)
element
- the model element
protected abstract Object getValue(Object element)
element
- the model element
protected abstract void setValue(Object element, Object value)
Subclasses should overwrite!
element
- the model elementvalue
- the new valuepublic ColumnViewer getViewer()
protected void initializeCellEditorValue(CellEditor cellEditor, ViewerCell cell)
Standard customers should not overwrite this method but getValue(Object)
cellEditor
- the cell editorcell
- the cell the editor is working forprotected void saveCellEditorValue(CellEditor cellEditor, ViewerCell cell)
Standard customers should not overwrite this method but setValue(Object, Object)
cellEditor
- the cell-editorcell
- the cell the editor is working for
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.