Package com.volantis.mcs.papi

Examples of com.volantis.mcs.papi.AnchorAttributes


     */
    public void testInitialiseFocusEventAttributes() throws Exception {
        final String ON_BLUR = "OnBlur";
        final String ON_FOCUS = "OnFocus";

        AnchorAttributes papiAttributes = new AnchorAttributes();
        doTestInitialiseFocusEventAttribute(papiAttributes,
                                             EventConstants.ON_BLUR,
                                             null);

        // Valid on change
        papiAttributes.setOnBlur(ON_BLUR);
        doTestInitialiseFocusEventAttribute(papiAttributes,
                                             EventConstants.ON_BLUR,
                                             ON_BLUR);

        // Valid on select
        papiAttributes.setOnFocus(ON_FOCUS);
        doTestInitialiseFocusEventAttribute(papiAttributes,
                                             EventConstants.ON_FOCUS,
                                             ON_FOCUS);

        // Other events should not have been set (choose one, say ON_CLICK).
View Full Code Here


     */
    private static String mark = "(c) Volantis Systems Ltd 2004.";

    // Inherit javadoc.
    protected BlockAttributes createTestableBlockAttributes() {
        return new AnchorAttributes();
    }
View Full Code Here

     * Ensure that a PAPI id attribute generates a Protocol id attribute.
     *
     * @throws com.volantis.mcs.papi.PAPIException
     */
    public void testIdGeneratesId() throws PAPIException {
        AnchorAttributes papiAttrs = createTestableAnchorAttributes();
        String value = "value";
        papiAttrs.setId(value);
        checkIdIsGenerated(papiAttrs, value);
    }
View Full Code Here

     * Ensure that a PAPI name attribute generates a Protocol id attribute.
     *
     * @throws PAPIException
     */
    public void testNameGeneratesId() throws PAPIException {
        AnchorAttributes papiAttrs = createTestableAnchorAttributes();
        String value = "value";
        papiAttrs.setName(value);
        checkIdIsGenerated(papiAttrs, value);
    }
View Full Code Here

     * id attribute.
     *
     * @throws PAPIException
     */
    public void testIdAndNameSameGeneratesId() throws PAPIException {
        AnchorAttributes papiAttrs = createTestableAnchorAttributes();
        String value = "value";
        papiAttrs.setId(value);
        papiAttrs.setName(value);
        checkIdIsGenerated(papiAttrs, value);
    }
View Full Code Here

     * name.
     *
     * @throws PAPIException
     */
    public void testIdAndNameDifferentGeneratesId() throws PAPIException {
        AnchorAttributes papiAttrs = createTestableAnchorAttributes();
        String value = "value";
        papiAttrs.setId(value);
        papiAttrs.setName("ignored");
        // NOTE: this should generate a warning as well, but a bit hard to
        // test for without some infrastructure...
        checkIdIsGenerated(papiAttrs, value);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.papi.AnchorAttributes

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.