Package org.apache.flex.compiler.internal.mxml

Examples of org.apache.flex.compiler.internal.mxml.StateDefinition


        String value = attribute.getRawValue();

        if (attribute.isSpecialAttribute(ATTRIBUTE_NAME))
        {

            stateDefinition = new StateDefinition(this, this.getASScope(),
                    value, attribute.getValueStart(), attribute.getValueEnd());
        }
        else if (attribute.isSpecialAttribute(ATTRIBUTE_STATE_GROUPS))
        {
            stateGroups = attribute.getMXMLDialect().splitAndTrim(value);
View Full Code Here


    private void addStateToStateGroup(String groupName, String stateName)
    {
        if (groupMap == null)
            groupMap = new HashMap<String, StateGroupDefinition>();

        StateDefinition state = stateMap.get(stateName);
        StateGroupDefinition group = groupMap.get(groupName);

        if (group == null)
        {
            group = new StateGroupDefinition(groupName, getDefinition());
            groupMap.put(groupName, group);
        }

        state.addGroup(group);
        group.addState(state);
    }
View Full Code Here

            // The first state we find is the initial state.
            // TODO Should it be the first one in the 'states' property?
            initialState = node.getStateName();
        }

        StateDefinition oldState = stateMap.put(node.getStateName(),
                (StateDefinition)node.getDefinition());

        return oldState != null ? oldState.getNode() : null;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.mxml.StateDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.