Package org.pentaho.gwt.widgets.client.filechooser

Examples of org.pentaho.gwt.widgets.client.filechooser.TreeItemComparator


        // sort the root elements
        ArrayList<TreeItem> roots = new ArrayList<TreeItem>();
        for ( int i = 0; i < getItemCount(); i++ ) {
          roots.add( getItem( i ) );
        }
        Collections.sort( roots, new TreeItemComparator() ); // BISERVER-9599 - Custom Sort
        clear();
        for ( TreeItem myRootItem : roots ) {
          addItem( myRootItem );
        }
      }
View Full Code Here


    // BISERVER-9599 - Custom Sort
    Collections.sort( children, new Comparator<RepositoryFileTree>() {
      @Override
      public int compare( RepositoryFileTree repositoryFileTree, RepositoryFileTree repositoryFileTree2 ) {
        return ( new TreeItemComparator() ).compare( repositoryFileTree.getFile().getTitle(), repositoryFileTree2
            .getFile().getTitle() );
      }
    } );

    for ( RepositoryFileTree treeItem : children ) {
View Full Code Here

TOP

Related Classes of org.pentaho.gwt.widgets.client.filechooser.TreeItemComparator

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.