Class: ActionOnComposerAdv

Kekule.Editor. ActionOnComposerAdv

new ActionOnComposerAdv()

Actions that has a series of child attached actions on composer (such as bond action may has single, double, triple bond variations).
Properties:
Name Type Description
attachedActions Kekule.ActionList
defaultAttachedAction Kekule.Action If this property is set, when check on the parent action, if no attached action is checked, default one will be checked on automatically.
Source:

Extends

Methods

addAttachedAction()

Add an attached actions.
Source:

clearAttachedActions()

Clear all attached actions.
Source:

execute(target, htmlEvent)

Execute the action.
Parameters:
Name Type Description
target Object Object that invokes this action.
htmlEvent Object HTML event that causes the executing process, can be null.
Inherited From:
Source:

getActionList() → {Kekule.ActionList}

Returns belonged action list.
Inherited From:
Source:
Returns:
Type
Kekule.ActionList

getEditor() → {Kekule.Editor.BaseEditor}

Returns chem editor object inside composer.
Inherited From:
Source:
Returns:
Type
Kekule.Editor.BaseEditor

hasAttachedActions() → {Bool}

Check if there are attached actions to this one.
Source:
Returns:
Type
Bool

removeAttachedAction()

Remove attached actions.
Source:

setAttachedActionIndex(action, index)

Set a new position of attached child action.
Parameters:
Name Type Description
action Kekule.Action
index Int
Source:

Events

execute

Invoked when an action is executed. Has one field: {htmlEvent: html event to raise the action}.
Inherited From:
Source:

Kekule.Editor. ActionOnComposerAdv

new ActionOnComposerAdv()

Source:

Methods

addAttachedAction()

Add an attached actions.
Source:

clearAttachedActions()

Clear all attached actions.
Source:

execute(target, htmlEvent)

Execute the action.
Parameters:
Name Type Description
target Object Object that invokes this action.
htmlEvent Object HTML event that causes the executing process, can be null.
Inherited From:
Source:

getActionList() → {Kekule.ActionList}

Returns belonged action list.
Inherited From:
Source:
Returns:
Type
Kekule.ActionList

getEditor() → {Kekule.Editor.BaseEditor}

Returns chem editor object inside composer.
Inherited From:
Source:
Returns:
Type
Kekule.Editor.BaseEditor

hasAttachedActions() → {Bool}

Check if there are attached actions to this one.
Source:
Returns:
Type
Bool

removeAttachedAction()

Remove attached actions.
Source:

setAttachedActionIndex(action, index)

Set a new position of attached child action.
Parameters:
Name Type Description
action Kekule.Action
index Int
Source:

Events

execute

Invoked when an action is executed. Has one field: {htmlEvent: html event to raise the action}.
Inherited From:
Source: