Package com.volantis.mcs.policies

Examples of com.volantis.mcs.policies.RolloverImagePolicyBuilder


        CanvasLayout layout = new CanvasLayout();

        // Don't actual resolve anything as it requires repository connections,
        // branding information, etc.
        PolicyFactory factory = PolicyFactory.getDefaultInstance();
        RolloverImagePolicyBuilder rolloverBuilder =
                factory.createRolloverImagePolicyBuilder();
        rolloverBuilder.setName("Test rollover response");
        rolloverBuilder.setNormalPolicy(factory.createPolicyReference("Normal",
                PolicyType.IMAGE));
        rolloverBuilder.setOverPolicy(factory.createPolicyReference("Over",
                PolicyType.IMAGE));
        //pageContext.setRollover(rollover);

        // Intitialise the context
        pageContext.pushRequestContext(requestContext);
View Full Code Here


    // Javadoc inherited.
    protected ActivatedPolicy activateImpl(
            RuntimeProject actualProject, PolicyBuilder policyBuilder,
            RuntimeProject logicalProject) {

        RolloverImagePolicyBuilder rolloverBuilder =
                (RolloverImagePolicyBuilder) policyBuilder;

        MarinerURL baseURL = getBaseURL(actualProject, policyBuilder,
                logicalProject);

        PolicyReference reference;

        reference = rolloverBuilder.getNormalPolicy();
        reference = activateReference(logicalProject, baseURL, reference);
        rolloverBuilder.setNormalPolicy(reference);

        reference = rolloverBuilder.getOverPolicy();
        reference = activateReference(logicalProject, baseURL, reference);
        rolloverBuilder.setOverPolicy(reference);

        return new ActivatedRolloverImagePolicyImpl(
                rolloverBuilder.getRolloverImagePolicy(),
                actualProject, logicalProject);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.RolloverImagePolicyBuilder

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.