Examples of FixedMenuOrderComparator


Examples of com.foreach.across.modules.web.menu.FixedMenuOrderComparator

    other.addItem( "eee", "eee" );
    other.addItem( "fff", "ddd" );
    menu.addItem( other );

    menu.setComparator(
        new FixedMenuOrderComparator( MenuMatchers.pathEquals( "/bbb" ), MenuMatchers.pathMatches( "^/c" ),
                                      MenuMatchers.pathMatches( ".*a.*" ), MenuMatchers.pathEquals( "333" ),
                                      MenuMatchers.pathMatches( "2" ),
                                      MenuMatchers.pathMatches( Pattern.compile( "111" ) ) ), true
    );

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.