new ObjectExEditor()
A property editor that to edit ObjectEx instance.
Extends
Methods
-
createEditWidget(parentWidget) → {Kekule.Widget.BaseWidget}
-
Create a custom edit widget and put old property value in it.
Parameters:
Name Type Description parentWidget
Kekule.Widget.BaseWidget - Inherited From:
- Source:
Returns:
-
doCreateEditWidget(parentWidget) → {Kekule.Widget.BaseWidget}
-
Do actual work of createEditWidget. Descendants should override this method.
Parameters:
Name Type Description parentWidget
Kekule.Widget.BaseWidget //@param {Variant} propValue - Inherited From:
- Source:
Returns:
-
getDescription() → {String}
-
Returns property description. Usually propInfo.description. Descendants seldom need to override this method.
- Inherited From:
- Source:
Returns:
- Type
- String
-
getEditWidget() → {Kekule.Widget.BaseWidget}
-
Returns currently created edit widget.
- Inherited From:
- Source:
Returns:
-
getHint() → {String}
-
Returns property hint to display in object inspector. Usually this value is same with getTitle(). Descendants seldom need to override this method.
- Inherited From:
- Source:
Returns:
- Type
- String
-
getTitle() → {String}
-
Returns property title to display in object inspector. Usually propInfo.title or propInfo.name. Descendants seldom need to override this method.
- Inherited From:
- Source:
Returns:
- Type
- String
-
getValue() → {Variant}
-
Returns property value of all objects. Descendants may override this method.
- Inherited From:
- Source:
Returns:
- Type
- Variant
-
isReadOnly() → {Bool}
-
Whether the editor is a read only one.
- Inherited From:
- Source:
Returns:
- Type
- Bool
-
notifyChildEditorValueChange(fieldName, fieldValue)
-
This method is called by child property editor (such as enum item editor) to notify the child property has been changed.
Parameters:
Name Type Description fieldName
fieldValue
-
saveEditValue() → {Variant}
-
Save edit value in edit widget back to property. If the original value is not changed, false should be returned. Else true should be returned.
- Inherited From:
- Source:
Returns:
- Type
- Variant
-
setValue(value)
-
Save property value back to objects.
Parameters:
Name Type Description value
Variant