org.zaval.lw.tree
Class LwDefEditors
java.lang.Object
|
+--org.zaval.lw.tree.LwDefEditors
- All Implemented Interfaces:
- LwEditorProvider
- public class LwDefEditors
- extends java.lang.Object
- implements LwEditorProvider
This class is simple implementation of org.zaval.lw.LwEditorProvider interface.
The class allows you to use text field components to edit tree component items.
|
Method Summary |
java.lang.Object |
fetchEditedValue(java.lang.Object src,
LwComponent editor)
Fetches the value from the editor component of the specified edited object. |
LwComponent |
getEditor(LwComponent src,
java.lang.Object item)
Gets the editor component for the specified component and the given data model value.
|
boolean |
shouldStartEdit(java.lang.Object src,
LwVCLEvent e)
Tests if the specified event should perform editing process for the specified model value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LwDefEditors
public LwDefEditors()
getEditor
public LwComponent getEditor(LwComponent src,
java.lang.Object item)
- Description copied from interface:
LwEditorProvider
- Gets the editor component for the specified component and the given data model value.
The method returns
null if there is no any editor for the given
object and its model value. In this case the editing process will not be started.
- Specified by:
getEditor in interface LwEditorProvider
- Following copied from interface:
org.zaval.lw.LwEditorProvider
- Parameters:
src - the specified component.data - the specified data model value.- Returns:
- an editor component.
fetchEditedValue
public java.lang.Object fetchEditedValue(java.lang.Object src,
LwComponent editor)
- Description copied from interface:
LwEditorProvider
- Fetches the value from the editor component of the specified edited object. The returned
value will be used to update appropriate data model value.
- Specified by:
fetchEditedValue in interface LwEditorProvider
- Following copied from interface:
org.zaval.lw.LwEditorProvider
- Parameters:
data - the specified model value.c - the specified editor component that has been used to edit the
object data model value.- Returns:
- a value to update the data model.
shouldStartEdit
public boolean shouldStartEdit(java.lang.Object src,
LwVCLEvent e)
- Description copied from interface:
LwEditorProvider
- Tests if the specified event should perform editing process for the specified model value.
- Specified by:
shouldStartEdit in interface LwEditorProvider
- Following copied from interface:
org.zaval.lw.LwEditorProvider
- Parameters:
src - the specified model value.e - the specified event.- Returns:
true if the editing process should be performed; otherwise
false.
|