Package com.volantis.styling

Examples of com.volantis.styling.StylingFactory


            "", /* qName */
            "", /* type */
            getWidgetId() /* value */
        );

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        elementStyles = stylingFactory.createStyles(null);

        // Setup XDIME processing environment
        pageCtxMock = new MarinerPageContextMock(
                "pageCtxMock", expectations);
       
View Full Code Here


        paneInstance.expects.getAttributes().returns(protocolPaneAttributes).any();
        return paneInstance;
    }

    private StylingEngine getStylingEngine() {
        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        return stylingFactory.createStylingEngine();
    }
View Full Code Here

                    new InputStreamReader(stream), null);
        } catch (IOException e) {
            throw new ExtendedRuntimeException(e);
        }

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        StylingEngine stylingEngine =
                stylingFactory.createStylingEngine(
                        new InlineStyleSheetCompilerFactory(
                                StylingFunctions.getResolver()));
        stylingEngine.pushStyleSheet(defaultCompiledStyleSheet);

        DocumentStyler styler = new DocumentStyler(stylingEngine,
View Full Code Here

        // Open the div
        Element div = domOutputBuffer.addElement("div");

        // Apply margin styling
        Styles styles;
        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        Styles parentStyles = domOutputBuffer.getCurrentElement().getStyles();
        if (parentStyles != null) {
            styles = stylingFactory.createInheritedStyles(parentStyles,
                    DisplayKeywords.BLOCK);
        } else {
            styles = stylingFactory.createStyles(null);
        }
        div.setStyles(styles);

//            //remove the border styling for the outer divs
//            if (BORDER_BOTTOM_PROPERTY.equals(borderProperty)) {
View Full Code Here

    /**
     * Initialise.
     */
    public ExtractorConfigurator() {
        // Create a CSS parser for processing the device repository values.
        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();

        cssParser = stylingFactory.createDeviceCSSParser();

        factory = StyledDOMThemeExtractorFactory.getDefaultInstance();
    }
View Full Code Here

            String defaultCSS, String sourceDescription) {

        // The default display values used by the device.
        defaultCSS = DevicePolicyConstants.DEFAULT_DISPLAY_CSS + defaultCSS;

        StylingFactory factory = StylingFactory.getDefaultInstance();
        CSSCompiler compiler = factory.createDeviceCSSCompiler(
                DeviceOutlook.REALISTIC);

        return compiler.compile(new StringReader(defaultCSS), sourceDescription);
    }
View Full Code Here

     * @param markerStyles the marker styles.
     */
    private void separateMarkerAndContent(Element element,
                                          Styles markerStyles) {

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        StylesMerger stylesMerger = stylingFactory.getStylesMerger();

        Styles listItemStyles = element.getStyles();

        // Styles for the content are the same as the original styles for the
        // list item.
View Full Code Here

        StyleSheet styleSheet = builder.build(layout);

//        String css = StyleSheetTester.renderStyleSheet(styleSheet);
//        System.out.println("CSS\n" + css);

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();

        CompilerConfiguration configuration =
                stylingFactory.createCompilerConfiguration();
        configuration.setSource(StyleSheetSource.LAYOUT);

        StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
                configuration);
        CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(
                styleSheet);

        StylingEngine stylingEngine = stylingFactory.createStylingEngine();

        stylingEngine.pushStyleSheet(compiledStyleSheet);

        FormatStylingEngine formatStylingEngine =
                new FormatStylingEngineImpl(stylingEngine);
View Full Code Here

       
        StyleSheetCompilerFactory compilerFactory =
                ThemeStyleSheetCompilerFactory.getDefaultInstance();
        compiler = compilerFactory.createStyleSheetCompiler();

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        engine = stylingFactory.createStylingEngine();

        EvaluationContext evaluationContext = engine.getEvaluationContext();
        evaluationContext.setProperty(FormatReferenceFinder.class,
                formatReferenceFinderMock);
View Full Code Here

        // allow subclasses to add additional attributes
        addXFFormAttributes (element, attributes);

        // Form elements must be inside a div tag.
        StylingFactory factory = StylingFactory.getDefaultInstance();
        Styles divStyles = factory.createInheritedStyles(formStyles,
                DisplayKeywords.BLOCK);
        dom.openStyledElement ("div", divStyles);

        // Add the top fragment links.
        doTopFragmentLinks (dom, attributes);
View Full Code Here

TOP

Related Classes of com.volantis.styling.StylingFactory

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.