Class: ActionList

Kekule. ActionList

new ActionList()

Source:

Methods

add(action)

Add a new action to list.
Parameters:
Name Type Description
action Kekule.Action
Source:

clear()

Clear all actions in list.
Source:

getActionAt(index) → {Kekule.Action}

Returns action object at index.
Parameters:
Name Type Description
index Int
Source:
Returns:
Type
Kekule.Action

getActionCount() → {Int}

Returns count of actions inside. Same as Kekule.ActionList.getActionLength.
Source:
Returns:
Type
Int

getActionLength() → {Int}

Returns count of actions inside. Same as Kekule.ActionList.getActionCount.
Source:
Returns:
Type
Int

getCheckedAction(group) → {Kekule.Action}

Returns checked action of group.
Parameters:
Name Type Description
group String
Source:
Returns:
Type
Kekule.Action

hasAction(action) → {Bool}

Check whether an action is in this list.
Parameters:
Name Type Description
action Kekule.Action
Source:
Returns:
Type
Bool

hasActionChecked(group) → {Bool}

Returns if one action of group is already checked.
Parameters:
Name Type Description
group String
Source:
Returns:
Type
Bool

indexOfAction(action) → {Int}

Returns index of an action in list.
Parameters:
Name Type Description
action Kekule.Action
Source:
Returns:
Type
Int

remove(action)

Remove an action from list.
Parameters:
Name Type Description
action Kekule.Action
Source:

removeAt(index)

Remove action at index.
Parameters:
Name Type Description
index Int
Source:

setActionIndex(action, index)

Change the position of action in list.
Parameters:
Name Type Description
action Kekule.Action
index Int
Source:

updateAll()

Update state of all actions in list.
Source:

Events

execute

Invoked when a child action is executed. Event param of it has field: {action}
Source: