Examples of AnchorAttributes


Examples of com.volantis.mcs.protocols.AnchorAttributes

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Initialise our protocol attributes with an id attribute.
        String idValue = "the identifier value";
        AnchorAttributes attributes = new AnchorAttributes();
        attributes.setId(idValue);

        // Create the expected value for the name attribute output.
        String expectedNameValue = null;
        if (protocol.enableNameIdentification) {
            expectedNameValue = idValue;
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

    };

    public AnchorElement(XDIMEContextInternal context) {
        super(XHTML2Elements.A, context);

        protocolAttributes = new AnchorAttributes();

        // Add anchor specific events.
        EVENTS.registerEvents(eventMapper);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

    // Javadoc inherited
    protected XDIMEResult callOpenOnProtocol(
            XDIMEContextInternal context, XDIMEAttributes attributes)
        throws XDIMEException {

      AnchorAttributes anchorAttributes = (AnchorAttributes) protocolAttributes;

      String id = anchorAttributes.getId();
     
      if (id != null) {
        String keyValue = (String) context.getIdToAccessKeyMap().get(id);
       
        if (keyValue != null) {
          anchorAttributes.setShortcut(new LiteralTextAssetReference(keyValue));
        }
      }
     
        VolantisProtocol protocol = getProtocol(context);
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

     */
    private void writeDefaultSegmentLink(MarinerPageContext pageContext,
                                           String defaultSegmentURL)
            throws IOException, RendererException {

        AnchorAttributes a = new AnchorAttributes();

        a.setHref(defaultSegmentURL);

        if (pageContext.getPageTagId() != null) {
            a.setId(pageContext.getPageTagId());
        }

        VolantisProtocol protocol = pageContext.getProtocol();
        try {
            protocol.writeDefaultSegmentLink(a);
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

     * class.
     *
     * NOTE: Close method removed.
     */
    public void testWriteOpenAnchor() throws Exception {
        final AnchorAttributes attributes =
                (AnchorAttributes) ProtocolIntegrationTestHelper.
                provideAttributes(AnchorAttributes.class);

        final VolantisProtocol protocol = getProtocol();

View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

    /**
     * This method tests the method public void writeDefaultSegmentLink ( AnchorAttributes )
     * for the com.volantis.mcs.protocols.VolantisProtocol class.
     */
    public void testWriteDefaultSegmentLink() throws Exception {
        final AnchorAttributes attributes =
                (AnchorAttributes) ProtocolIntegrationTestHelper.
                provideAttributes(AnchorAttributes.class);

        final VolantisProtocol protocol = getProtocol();

View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

        createTableElement(protocol,attributes);
        for (int i = 0; i < MAIN_IMAGES_TABLE_SIZE; i++) {
            createTableRowElement(protocol);
            for (int j = 0; j < MAIN_IMAGES_TABLE_SIZE; j++) {
                createTableCellElement(protocol, idCollector, true);
                AnchorAttributes aAttributes = new AnchorAttributes();
                aAttributes.setHref("javascript:void(0)");
                protocol.writeOpenAnchor(aAttributes);
                ImageAttributes iAttributes = new ImageAttributes();
                iAttributes.setSrc("");
                protocol.writeImage(iAttributes);
                protocol.writeCloseAnchor(aAttributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

                        || (i == 0 && j == (MOVABLE_IMAGES_TABLE_SIZE - 1))
                        || (i == (MOVABLE_IMAGES_TABLE_SIZE - 1) && j == (MOVABLE_IMAGES_TABLE_SIZE - 1))) {
                    createTableCellElement(protocol, idCollector, false);
                } else {
                    createTableCellElement(protocol, idCollector, true);
                    AnchorAttributes aAttributes = new AnchorAttributes();
                    aAttributes.setHref("javascript:void(0)");
                    protocol.writeOpenAnchor(aAttributes);
                    ImageAttributes iAttributes = new ImageAttributes();
                    iAttributes.setSrc("");
                    protocol.writeImage(iAttributes);
                    protocol.writeCloseAnchor(aAttributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

        TableAttributes attributes = createTableAttributes(protocol, false);
        createTableElement(protocol,attributes);
        createTableRowElement(protocol);
        for (int j = 0; j < 4 * MAIN_IMAGES_TABLE_SIZE; j++) {
            createTableCellElement(protocol, idCollector, true);
            AnchorAttributes aAttributes = new AnchorAttributes();
            aAttributes.setHref("javascript:void(0)");
            protocol.writeOpenAnchor(aAttributes);
            ImageAttributes iAttributes = new ImageAttributes();
            iAttributes.setSrc("");
            protocol.writeImage(iAttributes);
            protocol.writeCloseAnchor(aAttributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.AnchorAttributes

                // start the emulation wrapping element
                emulation.start(outputBuffer);
            }

            // Create the anchor attributes
            attributes = new AnchorAttributes();

            // Stylistic properties
            ElementDetails elementDetails = item.getElementDetails();
            if (elementDetails != null && outer) {
                attributes.setElementDetails(elementDetails);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.