Package com.volantis.styling

Examples of com.volantis.styling.Styles


                    // Open a paragraph for the select to go in.
                    // According to openwave style guide this should be nowrap.
                    // todo: only set whitespace if it was not specified by user
                    // currently we cannot tell, fix when VBM:2005092701 is fixed
                    Styles styles = menu.getElementDetails().getStyles();
                    styles.getPropertyValues().setComputedValue(
                            StylePropertyDetails.WHITE_SPACE,
                            WhiteSpaceKeywords.NOWRAP);
                    Element element = buffer.openStyledElement(
                            WMLConstants.BLOCH_ELEMENT, styles);
View Full Code Here


    }

    public void visit(Element element) {
        int column = element.getName().length() + 1;
        debug.append(indent).append(element.getName()).append(" ");
        Styles styles = element.getStyles();
        debug.append(debugStyles.output(styles, DebugHelper.getIndent(column)));
        debug.append("\n");
    }
View Full Code Here

            DOMOutputBuffer buffer,
            MenuAttributes attributes) {

        // todo: only set whitespace if it was not specified by user
        // currently we cannot tell, fix when VBM:2005092701 is fixed
        Styles styles = attributes.getStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.WHITE_SPACE,
                WhiteSpaceKeywords.NOWRAP);
        Element p = buffer.openStyledElement(WMLConstants.BLOCH_ELEMENT, styles);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
View Full Code Here


        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


        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

    protected final void outputAttributes(
            Element element,
            CharacterEncoder encoder) throws IOException {
        super.outputAttributes(element, encoder);

        Styles styles = element.getStyles();
        String stylesString = stylesDebugger.output(styles, "");
        if (stylesString != null && stylesString.length() > 0) {
            writer.write(" " +
                    styleAttributeName +
                    "='");
View Full Code Here

            }
        };

        stylingEngine.startElement(namespace,
                element.getName(), attributes);
        Styles styles = stylingEngine.getStyles();
        element.setStyles(styles);

        // Clear the class and style attributes.
        element.removeAttribute("class");
        element.removeAttribute("style");
View Full Code Here

            // Set the pane attribute
            MenuInternals.setPane(builder, attributes.getPane(), pageContext);

            // Get the styling property values for the current element
            Styles styles = pageContext.getStylingEngine().getStyles();

            // Emulate deprecated menu styles if necessary
            useDeprecatedMenuTypes(styles, attributes.getType());

            // Store the propertyvalues for any child use
            menuProperties = styles.getPropertyValues();

            // Set the stylistic information in the model for this element.
            MenuInternals.setElementDetails(builder, attributes, styles);

            // Set the event handling
View Full Code Here

            MarinerPageContext pageContext,
            MenuModelBuilder builder,
            Styles styles)
            throws BuilderException {

        Styles shortcutStyles =
                styles.findNestedStyles(PseudoElements.MCS_SHORTCUT);

        if (shortcutStyles != null) {

            Styles afterStyles =
                    shortcutStyles.findNestedStyles(PseudoElements.AFTER);

            if (afterStyles != null) {

                MutablePropertyValues propertyValues =
                        afterStyles.getPropertyValues();
                StyleList content = (StyleList) propertyValues.
                        getComputedValue(StylePropertyDetails.CONTENT);

                // if we have a specified seperator then create a ShortcutProperties
                // object and configure it.
View Full Code Here

     * @return the created extended menu.
     */
    public ShardLinkMenu buildShardLinkMenuModel(DissectingPaneAttributes attributes) {
       
        DissectingPane pane = attributes.getDissectingPane();
        Styles styles = attributes.getStyles();

        // Create the next shard link.
        // todo style these properly somehow.
        ShardLinkMenuItem nextLink = createShardLinkMenuItem(true,
                attributes.getLinkText(),
View Full Code Here

TOP

Related Classes of com.volantis.styling.Styles

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.