Package com.volantis.styling.impl.state

Examples of com.volantis.styling.impl.state.StateIdentifier


        // =====================================================================

        MutableStateRegistry registry = factory.createStateRegistry();

        // register the same factory multiple times.
        StateIdentifier identifier1 = registry.add(instanceFactoryMock);
        StateIdentifier identifier2 = registry.add(instanceFactoryMock);

        assertNotSame("Identifiers must be different",
                      identifier1, identifier2);
    }
View Full Code Here


     */
    public StateIdentifier add(StateInstanceFactory factory) {
        if (factory == null) {
            throw new IllegalArgumentException("factory cannot be null");
        }
        StateIdentifier identifier = new StateIdentifierImpl(factories.size());
        factories.add(factory);
        return identifier;
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.state.StateIdentifier

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.