|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A cell modifier is used to access the data model from a cell editor in an abstract way. It offers methods to:
This interface should be implemented by classes that wish to act as cell modifiers.
Method Summary | |
boolean | canModify(Object element,
String property)
Checks whether the given property of the given element can be modified. |
Object | getValue(Object element,
String property)
Returns the value for the given property of the given element. |
void | modify(Object element,
String property,
Object value)
Modifies the value for the given property of the given element. |
Method Detail |
public boolean canModify(Object element, String property)
public Object getValue(Object element, String property)
public void modify(Object element, String property, Object value)
Note that it is possible for an SWT Item to be passed instead of the model element. To handle this case in a safe way, use:
if (element instanceof Item) { element = ((Item) element).getData(); } // modify the element's property here
|
Eclipse Platform Release 3.0 | ||||||||||
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, 2004. All rights reserved.