Examples of LiteralTextAssetReference


Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

     * Set the value of the initial property.
     *
     * @param initial The new value of the initial property.
     */
    public void setInitial(String initial) {
        this.initial = new LiteralTextAssetReference(initial);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        String caption = "This is my caption";
        String value = "This is my value";

        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));
        attributes.setValue(value);

        protocol.doActionInput(buffer, attributes);
        String actualResult = bufferToString(buffer);
        assertEquals("DOM buffer should match",
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        XFActionAttributes attributes = new XFActionAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));
        attributes.setValue(value);

        // Setup test to ensure that link style form submision fallsback to the
        // default form submision
        protocol.doActionInput(buffer, attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        String shortcut = "1";
        String name = "My Name";
        String actionType = "submit";
        String caption = "This is my caption";

        attributes.setShortcut(new LiteralTextAssetReference(shortcut));
        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));

        protocol.doActionInput(buffer, attributes);
        String actualResult = bufferToString(buffer);
        assertEquals("DOM buffer should match",
                "<input " +
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        String caption = "This is my caption";
        String value = "This is my value";

        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));
        attributes.setValue(value);

        protocol.doActionInput(buffer, attributes);
        String actualResult = bufferToString(buffer);
        assertEquals("DOM buffer should match",
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        XFActionAttributes attributes = new XFActionAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));
        attributes.setValue(value);
        // todo XDIME-CP style forms correctly.
//        attributes.setStyleClass(style);

        // Setup test to ensure that link style form submision fallsback to the
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        String name = "My Name";
        String actionType = "submit";
        String caption = "This is my caption";
//        String value = "This is my value";

        attributes.setShortcut(new LiteralTextAssetReference(shortcut));
        attributes.setName(name);
        attributes.setType(actionType);
        attributes.setCaption(new LiteralTextAssetReference(caption));
//        attributes.setValue(value);

        protocol.doActionInput(buffer, attributes);
        String actualResult = bufferToString(buffer);
        assertEquals("DOM buffer should match",
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

        // Create the menu item itself.
        ShardLinkMenuItem item =
                new ShardLinkMenuItem(createElementDetails(styles),
                                      label, shardLinkAttrs);
        item.setHref(MAGIC_URL);
        item.setShortcut(new LiteralTextAssetReference(shortcut));

        // Return the created menu item for the shard link.
        return item;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralTextAssetReference

     
      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.assets.implementation.LiteralTextAssetReference

        final VolantisProtocol protocol = getProtocol();

        // Because alt text is now an object, provideAttributes will not
        // automatically initialize it
        attributes.setAltText(new LiteralTextAssetReference("altText"));

        MethodInvoker invoker = new MethodInvoker() {
            public void invoke() throws Exception {
                protocol.writeAltText(attributes);
            }
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.