Package com.volantis.styling.impl.engine.selectionstates

Examples of com.volantis.styling.impl.engine.selectionstates.SelectionState


        while (subject instanceof CompositeMatcher) {
            compositeSize += 1;
            subject = ((CompositeMatcher) subject).getSubject();
        }
        Styler[] stylers = new Styler[compositeSize];
        SelectionState requiredState = null;
        for (int i = 0; i < (stylers.length - 1); i++) {
            Matcher context = matcher.getContext();
            StateIndexKey key = new StateIndexKey(
                    requiredState, context, matcher.getOperator());
            SelectionState selectionState = (SelectionState) stateIndex.get(key);
            if (selectionState == null) {
                selectionState = createCompositeState(matcher.getOperator());
                stateIndex.put(key, selectionState);
                StylesDelta stateDelta = new StateChangeStylesDelta(selectionState);
                stylers[i] = new StylerImpl(source, priority, specificity,
View Full Code Here


                    if (styler.isMatchAny()) {
                        matchAll.set(i);
                    }

                    SelectionState state =
                            styler.getRequiredSelectionState();
                    if (state != null) {
                        BitSet stateMatches =
                                (BitSet) statesIndex.get(state);
                        if (stateMatches == null) {
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.engine.selectionstates.SelectionState

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.