Search in sources :

Example 1 with Component

use of edu.mit.simile.backstage.model.ui.Component in project backstage by zepheira.

the class BackChannel method getComponentStateArray.

public NativeArray getComponentStateArray() {
    ScriptableArrayBuilder states = new ScriptableArrayBuilder();
    for (Component c : _componentsChangingState) {
        Scriptable state = c.getComponentState();
        if (state != null) {
            state.put("id", state, c.getID());
            states.add(state);
        }
    }
    return states.toArray();
}
Also used : ScriptableArrayBuilder(edu.mit.simile.backstage.util.ScriptableArrayBuilder) Component(edu.mit.simile.backstage.model.ui.Component) Scriptable(org.mozilla.javascript.Scriptable)

Aggregations

Component (edu.mit.simile.backstage.model.ui.Component)1 ScriptableArrayBuilder (edu.mit.simile.backstage.util.ScriptableArrayBuilder)1 Scriptable (org.mozilla.javascript.Scriptable)1