Examples of PseudoStyleEntity


Examples of com.volantis.styling.PseudoStyleEntity

    // Javadoc inherited.
    public void debug(DebugStylingWriter writer) {
        if (entities != null) {
            for (int i = 0; i < entities.length; i++) {
                PseudoStyleEntity entity = entities[i];
                writer.print(entity.getCSSRepresentation());
            }
            writer.print(" ");
        }

        writer.print("{");
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        output(styles.getPropertyValues());
        Iterator iterator = styles.iterator();
        while (iterator.hasNext()) {
            debug.append("\n");
            NestedStyles nestedStyles = (NestedStyles) iterator.next();
            PseudoStyleEntity entity = nestedStyles.getPseudoStyleEntity();
            debug.append(indent);
            output(indent + DebugHelper.getIndent(entityRepresentation.length() + 1),
                   entityRepresentation + entity.getCSSRepresentation(),
                   nestedStyles, parent);
        }
    }
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        IterationAction action = IterationAction.CONTINUE;

        for (int i = 0; action == IterationAction.CONTINUE
                && i < pseudoElements.length; i++) {
            PseudoStyleEntity pse = pseudoElements[i];
            action = pseudoStyleEntityIteratee.next(pse);
        }

        if (action == IterationAction.CONTINUE && pseudoClassSet != null) {
            pseudoStyleEntityIteratee.next(pseudoClassSet);
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

     * @param pseudoStyleEntityVisitor
     */
    public void accept(PseudoStyleEntityVisitor pseudoStyleEntityVisitor) {

        for (int i = 0; i < pseudoElements.length; i++) {
            PseudoStyleEntity pse = pseudoElements[i];
            pse.accept(pseudoStyleEntityVisitor);
        }
        if (pseudoClassSet != null) {
            pseudoClassSet.accept(pseudoStyleEntityVisitor);
        }
    }
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

    public String toString() {

        StringBuffer buffer = new StringBuffer();
        buffer.append("[");
        for (int i = 0; i < pseudoElements.length; i++) {
            PseudoStyleEntity pseudoStyleEntity = pseudoElements[i];
            buffer.append(pseudoStyleEntity);
        }
        if (pseudoClassSet != null) {
            buffer.append(pseudoClassSet);
        }
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        // Iterate through the entities (if any) getting the styles associated
        // with them.
        if (entities != null) {
            for (int i = 0; i < entities.length; i++) {
                PseudoStyleEntity entity = entities[i];
                styles = styles.getNestedStyles(entity);
            }
        }

        MutablePropertyValues target = styles.getPropertyValues();
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        // Iterate through the entities (if any) getting the styles associated
        // with them.
        if (entities != null) {
            for (int i = 0; i < entities.length; i++) {
                PseudoStyleEntity entity = entities[i];
                styles = styles.getNestedBuilder(entity);
            }
        }

        DeviceValuesBuilder target = styles.getValuesBuilder();
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        if (nestedStyles != null) {
            PropertyValueArray array = null;
            for (int i = 0; i < nestedStyles.length; i++) {
                DeviceStylesImpl deviceStyles =  nestedStyles[i];
                PseudoStyleEntity entity = deviceStyles.pseudoStyleEntity;
                if (entity instanceof StatefulPseudoClassSet) {
                    StatefulPseudoClassSet other =
                            (StatefulPseudoClassSet) entity;
                    if (other.isSubSetOf(pseudoClasses)) {
                        if (array == null) {
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

        // resetting afterwards.
        PseudoStylePath oldPath = pseudoStylePath;
        StyleValues oldParentValues = parentValues;
        DeviceStyles oldDeviceStyles = deviceStyles;

        PseudoStyleEntity entity = nestedStyles.getPseudoStyleEntity();
        boolean valid = false;
        if (entity instanceof PseudoElement) {
            PseudoElement pseudoElement = (PseudoElement) entity;

            if (VALID_PSEUDO_ELEMENTS.contains(pseudoElement)) {
View Full Code Here

Examples of com.volantis.styling.PseudoStyleEntity

            // PseudoClassSet then remove it, and merge with the current
            // class set.
            final int length = pseudoStyleEntities.size();
            StatefulPseudoClassSet classSet = pseudoClass.getSet();
            if (length > 0) {
                PseudoStyleEntity previous = (PseudoStyleEntity)
                        pseudoStyleEntities.get(length - 1);
                if (previous instanceof StatefulPseudoClassSet) {
                    StatefulPseudoClassSet previousPseudoClassSet =
                            (StatefulPseudoClassSet) previous;
                    pseudoStyleEntities.remove(length - 1);
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.