Package com.gwtplatform.dispatch.annotation

Examples of com.gwtplatform.dispatch.annotation.Order


    protected void sortOrderFields(SortedMap<Integer, VariableElement> sortedFields,
            Collection<VariableElement> fields) {
        int maxOrderNum = -1;
        for (VariableElement fieldElement : fields) {
            Order order = fieldElement.getAnnotation(Order.class);
            if (order != null) {
                maxOrderNum = Math.max(maxOrderNum, order.value());
            }
        }

        for (VariableElement fieldDecl : fields) {
            Order order = fieldDecl.getAnnotation(Order.class);
            if (order != null) {
                maxOrderNum = Math.max(maxOrderNum, order.value());
                sortedFields.put(order.value(), fieldDecl);
            } else {
                sortedFields.put(++maxOrderNum, fieldDecl);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.gwtplatform.dispatch.annotation.Order

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.