CompMKtl:
Filter:
Modality-toolkit/Classes (extension) | Modality

CompMKtl
ExtensionExtension

create composite MKtls

Description

CompMKtl allows combining MKtls into a single MKtl which contains the elements of all these MKtls. For playing interfaces consisting of technically separate devices, it may semantically make sense to merge them into a single MKtl, so one create groups of elements that belong together. CompMKtl is not fully incomplete, so this file also contains tests and design questions.

First code examples:

Question: How much and what of the MKtl interface should CompMKtl support or pass through?

Class Methods

.all

dict for all CompMKtls

.new

make a new MKtl with a name, and the names of existing MKtls

Instance Methods

.name

This CompMKtl's name and also its key in .all

.mktlNames

The names of the composed MKtls

.mktlDict

A dict with the MKtls

.elementGroup

The elementGroup containing all elements

.elementAt

look up element as in MKtl

.elAt

like elementAt, but returns nil when find fails.

.flattenElementGroup

flattens the elements in the top level group if possible.