Package com.baidu.ueditor.define

Examples of com.baidu.ueditor.define.MultiState


    }
   
    Collection<File> list = FileUtils.listFiles( dir, this.allowFiles, true );
   
    if ( index < 0 || index > list.size() ) {
      state = new MultiState( true );
    } else {
      Object[] fileList = Arrays.copyOfRange( list.toArray(), index, index + this.count );
      state = this.getState( fileList );
    }
   
View Full Code Here


   
  }
 
  private State getState ( Object[] files ) {
   
    MultiState state = new MultiState( true );
    BaseState fileState = null;
   
    File file = null;
   
    for ( Object obj : files ) {
      if ( obj == null ) {
        break;
      }
      file = (File)obj;
      fileState = new BaseState( true );
      fileState.putInfo( "url", PathFormat.format( this.getPath( file ) ) );
      state.addState( fileState );
    }
   
    return state;
   
  }
View Full Code Here

   
  }
 
  public State capture ( String[] list ) {
   
    MultiState state = new MultiState( true );
   
    for ( String source : list ) {
      state.addState( captureRemoteData( source ) );
    }
   
    return state;
   
  }
View Full Code Here

TOP

Related Classes of com.baidu.ueditor.define.MultiState

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.