|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.gui.jface.viewers.TreeCellModifier
Handles inplace modificatons, i.e. user edits within cell elements in a
editable JFace TreeViewer instance displaying
INameable domain objects.
| Field Summary | |
private boolean |
modificationEnabled
true if modification is enabled; false if
disabled
|
| Constructor Summary | |
TreeCellModifier()
|
|
| 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. |
void |
setModificationEnabled(boolean enabled)
Sets the modification mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean modificationEnabled
true if modification is enabled; false if
disabled
| Constructor Detail |
public TreeCellModifier()
| Method Detail |
public boolean canModify(Object element,
String property)
Checks whether the given property of the given element can be modified.
canModify in interface ICellModifierelement - the elementproperty - the property
true if the property can be modified, and
false if it is not modifiablepublic void setModificationEnabled(boolean enabled)
Sets the modification mode.
enabled - true to enable; false to
disable modification mode
public Object getValue(Object element,
String property)
Returns the value for the given property of the given element. Returns
null if the element does not have the given property.
getValue in interface ICellModifierelement - the element to get the value forproperty - the property
public void modify(Object element,
String property,
Object value)
Modifies the value for the given property of the given element. Has no effect if the element does not have the given property, or if the property cannot be modified.
modify in interface ICellModifierelement - the model element or SWT Item (see above)property - the propertyvalue - the new property valueItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||