Examples of Styles


Examples of com.volantis.styling.Styles

     * @return Element  the flattened table
     * @throws Exception if there was a problem running the test
     */
    private Element doFlattenTable(Element input, String expected)
            throws Exception {
        Styles originalStyles = input.getStyles();
        MyXHTMLBasicTransformer transformer = new MyXHTMLBasicTransformer();
        DOMProtocol protocol = createProtocol();
        transformer.initialize(protocol);

        Element flattenedTable = transformer.proxyFlattenTable(input, 2, 1);
View Full Code Here

Examples of com.volantis.styling.Styles


        DoSelectInputTestHelper helper = new DoSelectInputTestHelper();

        XFSelectAttributes atts = helper.buildSelectAttributes();
        Styles styles = atts.getStyles();
        MutablePropertyValues propertyValues = styles.getPropertyValues();

        if(!multiSelect) {
            for(int i=0; i<selectedOtions.length; i++) {
                if(selectedOtions[i]) {
                    atts.setInitial("Value" + (i+1));
View Full Code Here

Examples of com.volantis.styling.Styles

    public void testXFOptionStyles() throws Exception {
        privateSetUp();
        final DoSelectInputTestHelper helper = new DoSelectInputTestHelper();

        final XFSelectAttributes attributes = helper.buildSelectAttributes();
        Styles styles = attributes.getStyles();
        MutablePropertyValues propertyValues = styles.getPropertyValues();
        attributes.setMultiple(false);

        // add some optionsDOMP
        helper.addOption(attributes, "Caption1", "Prompt1", "Value1", true);
        helper.addOption(attributes, "Caption2", "Prompt2", "Value2", false);
        final Styles captionStyles =
                StylesBuilder.getCompleteStyles("font-weight: bold");
        ((SelectOption) attributes.getOptions().get(0)).setCaptionStyles(captionStyles);

        // create style
        propertyValues.setComputedValue(
View Full Code Here

Examples of com.volantis.styling.Styles

     * mcs-form-action-image is null, the mcs-image url is returned from
     * XHTMLBasic#getActionURL.
     */
    public void testGetActionURLWithMCSImageAndNullFormImage() {

        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_IMAGE,
                styleValueFactory.getURI(null, MCS_IMAGE_URL));

        String url = protocol.getActionImageURL(styles);
        if (protocol.supportsImageButtons) {
View Full Code Here

Examples of com.volantis.styling.Styles

     * mcs-form-action-image is MarinerImageEnumeration#NONE, the mcs-image url
     * is returned from XHTMLBasic#getActionURL.
     */
    public void testGetActionURLWithMCSImageAndFormImageOfNone() {

        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_IMAGE,
                styleValueFactory.getURI(null, MCS_IMAGE_URL));
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_FORM_ACTION_IMAGE,
                MCSImageKeywords.NONE);

        String url = protocol.getActionImageURL(styles);
        if (protocol.supportsImageButtons) {
View Full Code Here

Examples of com.volantis.styling.Styles

     * Verify that if both the mcs-image property and mcs-form-action-image
     * have valid URLs, the mcs-image url is returned from
     * XHTMLBasic#getActionURL
     */
    public void testGetActionURLWithMCSImageAndFormImage() {
        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_IMAGE,
                styleValueFactory.getURI(null, MCS_IMAGE_URL));
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_FORM_ACTION_IMAGE,
                styleValueFactory.getURI(null, FORM_IMAGE_URL));

        String url = protocol.getActionImageURL(styles);
        if (protocol.supportsImageButtons) {
View Full Code Here

Examples of com.volantis.styling.Styles

     * Verify that if the mcs-form-action-image property has a valid URL and
     * mcs-image is null, the mcs-form-action-image url is returned from
     * XHTMLBasic#getActionURL.
     */
    public void testGetActionURLWithNullMCSImageAndFormImage() {
        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_FORM_ACTION_IMAGE,
                styleValueFactory.getURI(null, FORM_IMAGE_URL));

        String url = protocol.getActionImageURL(styles);
        if (protocol.supportsImageButtons) {
View Full Code Here

Examples of com.volantis.styling.Styles

     * Verify that if the mcs-form-action-image property has a valid URL and
     * mcs-image is set to MarinerImageEnumeration#NONE, the
     * mcs-form-action-image url is returned from XHTMLBasic#getActionURL.
     */
    public void testGetActionURLWithMCSImageOfNoneAndMCSFormImage() {
        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_IMAGE,
                MCSImageKeywords.NONE);
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_FORM_ACTION_IMAGE,
                styleValueFactory.getURI(null, FORM_IMAGE_URL));

        String url = protocol.getActionImageURL(styles);
        if (protocol.supportsImageButtons) {
View Full Code Here

Examples of com.volantis.styling.Styles

    /**
     * Verify that if both the mcs-image and mcs-form-action-image properties
     * have null values, XHTMLBasic#getActionURL returns null.
     */
    public void testGetActionURLWithNoImages() {
        final Styles styles = StylesBuilder.getEmptyStyles();
        String url = protocol.getActionImageURL(styles);
        assertNull(url);
    }
View Full Code Here

Examples of com.volantis.styling.Styles

     * Verify that if both the mcs-image and mcs-form-action-image properties
     * are set to MarinerImageEnumeration#NONE, XHTMLBasic#getActionURL returns
     * null.
     */
    public void testGetActionURLWithImagesSetToNone() {
        final Styles styles = StylesBuilder.getEmptyStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_IMAGE,
                MCSImageKeywords.NONE);
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.MCS_FORM_ACTION_IMAGE,
                MCSImageKeywords.NONE);
        String url = protocol.getActionImageURL(styles);
        assertNull(url);
    }
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.