new Base(editor)
A special object to create widget to modify an chem object in a user friendly way in chem editor.
Parameters:
Name | Type | Description |
---|---|---|
editor |
Kekule.Editor.BaseEditor |
Properties:
Name | Type | Description |
---|---|---|
editor |
Kekule.Editor.BaseEditor | |
targetObjs |
Array | Objects that selected in editor and can be modified by this modifier. |
widget |
Kekule.Widget.BaseWidget | The concrete modifier widget. |
Extends
- ObjectEx
Methods
-
applyToTargets()
-
Change properties of target objects based on this widget.
-
getModifierName()
-
Returns a name that represent this modifier. Descendants may override this method.
-
initialize()
-
loadFromTargets()
-
Load corresponding value from targets, update the outlook of modifier widget.
-
modifierWidgetValueChanged()
-
Called whether modifier widget is changed and the changes should be applied to target objects in editor.