Examples of LiteralTextAssetReference


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

                this.inline = inline;
                this.supportsAccessKeys = supportsAccessKeys;
                this.expected = expected;
                attributes = new XFActionAttributes();
                attributes.setStyles(StylesBuilder.getInitialValueStyles());
                attributes.setShortcut(new LiteralTextAssetReference(shortcut));
                attributes.setCaption(new LiteralTextAssetReference(caption));
                attributes.setTitle(title);
            }
        }

        List tests = new ArrayList();
View Full Code Here

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

     * @param label the label
     * @return the new SelectOptionGroup instance
     */
    private SelectOptionGroup createOptionGroup(String label) {
        SelectOptionGroup optionGroup = new SelectOptionGroup();
        optionGroup.setCaption(new LiteralTextAssetReference(label));
        return optionGroup;
    }
View Full Code Here

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

        // Test getting a null help
        TextAssetReference testHelp = item.getHelp();
        assertNull("Should be no help", testHelp);

        // Test setting help
        TextAssetReference help = new LiteralTextAssetReference("Help Object");
        item.setHelp(help);

        // Test getting a non-null help
        testHelp = item.getHelp();
        assertNotNull("Should be a help", testHelp);
View Full Code Here

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

        // Test getting a null error
        TextAssetReference testError = item.getErrorMessage();
        assertNull("Should be no error message", testError);

        // Test setting error
        TextAssetReference error = new LiteralTextAssetReference(
                "Error Message Object");
        item.setErrorMessage(error);

        // Test getting a non-null error
        testError = item.getErrorMessage();
View Full Code Here

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

        // Test getting a null prompt
        TextAssetReference testPrompt = item.getPrompt();
        assertNull("Should be no prompt", testPrompt);

        // Test setting a prompt
        TextAssetReference prompt = new LiteralTextAssetReference(
                "Prompt Object");
        item.setPrompt(prompt);

        // Test getting a non-null prompt
        testPrompt = item.getPrompt();
View Full Code Here

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

        final ConcreteElementDetails elementDetails =
                createTestElementDetails();
        final ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));

        // Create the renderer we are to test.
        final TestDeprecatedExternalLinkOutput externalLinkOutput =
                new TestDeprecatedExternalLinkOutput();
        final VDXMLExternalLinkMenuItemRenderer renderer =
View Full Code Here

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

        // Create the menu item to test.
        ConcreteMenuItem item = new ConcreteMenuItem(
                new ElementDetailsStub(), new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference(null));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));

        // Check that the renderer did not open any output.
        checkUnopened(item);
    }
View Full Code Here

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

        final ConcreteMenuLabel label = new ConcreteMenuLabel(
                new ElementDetailsStub(), text);
        final ConcreteMenuItem item = new ConcreteMenuItem(
                new ElementDetailsStub(), label);
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));

        String expectedContent = createExpectedContent(item);
        String expected = null;
        if (withStyle) {
            expected =
View Full Code Here

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

        TextAssetReference testShortcut = item.getShortcut();
        assertNull("Should be no prompt", testShortcut);

        // Test setting a prompt
        String shortcut = "Shortcut Object";
        item.setShortcut(new LiteralTextAssetReference(shortcut));

        // Test getting a non-null prompt
        testShortcut = item.getShortcut();
        assertNotNull("Should be a prompt", testShortcut);
        assertEquals("Prompts should be the same", shortcut,
View Full Code Here

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

        TextAssetReference testPrompt = item.getPrompt();
        assertNull("Should be no prompt", testPrompt);

        // Test setting a prompt
        String prompt = "Prompt Object";
        item.setPrompt(new LiteralTextAssetReference(prompt));

        // Test getting a non-null prompt
        testPrompt = item.getPrompt();
        assertNotNull("Should be a prompt", testPrompt);
        assertEquals("Prompts should be the same", prompt,
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.