Package com.vaadin.client

Examples of com.vaadin.client.FastStringSet


    // TODO separate click listeners for simple selection and doubleclick
    private List<SelectConnectorListener> listeners = new ArrayList<SelectConnectorListener>();

    public void update() {
        // Try to keep track of currently open nodes and reopen them
        FastStringSet openNodes = FastStringSet.create();
        Iterator<Widget> it = iterator();
        while (it.hasNext()) {
            collectOpenNodes(it.next(), openNodes);
        }
View Full Code Here


    }

    // this is a very inefficient implementation for getting all the identifiers
    // for a class
    public FastStringSet findIdentifiersFor(Class<?> type) {
        FastStringSet result = FastStringSet.create();

        JsArrayString keys = identifiers.getKeys();
        for (int i = 0; i < keys.length(); i++) {
            String key = keys.get(i);
            if (identifiers.get(key) == type) {
                result.add(key);
            }
        }

        return result;
    }
View Full Code Here

        }
        return targets;
    }

    public JsArrayString getMeasureTargetsJsArray() {
        FastStringSet horizontalQueue = getMeasureQueue(HORIZONTAL);
        JsArrayString measureTargets = horizontalQueue.dump();

        JsArrayString verticalDump = getMeasureQueue(VERTICAL).dump();
        int length = verticalDump.length();
        for (int i = 0; i < length; i++) {
            String connectorId = verticalDump.get(i);
            if (!horizontalQueue.contains(connectorId)) {
                measureTargets.push(connectorId);
            }
        }

        return measureTargets;
View Full Code Here

TOP

Related Classes of com.vaadin.client.FastStringSet

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.