Package com.cubusmail.common.model

Examples of com.cubusmail.common.model.GWTMessageRecord


    }
    dateFormat.setTimeZone( timezone );
    Date today = Calendar.getInstance( timezone ).getTime();

    for (int i = 0; i < pageSize; i++) {
      result[i] = new GWTMessageRecord();
      if ( preferences.isShortTimeFormat() && DateUtils.isSameDay( today, msgs[i].getSentDate() ) ) {
        // show only time
        convertToStringArray( currentFolder, msgs[i], result[i], timeFormat, sizeFormat );
      }
      else {
View Full Code Here


    if ( data != null && data.getMessages().length > 0 ) {
      int recordCount = data.getMessages().length;
      MessageGridRecord[] records = new MessageGridRecord[recordCount];
      for (int i = 0; i < recordCount; i++) {
        GWTMessageRecord source = data.getMessages()[i];
        records[i] = new MessageGridRecord( source );
      }
      response.setData( records );
      response.setTotalRows( data.getTotalRecords() );
    }
View Full Code Here

    RecordList list = this.grid.getRecordList();
    if ( list != null && list.getLength() > 0 ) {
      MessageGridRecord record = (MessageGridRecord) list.find( MessageListFields.ID.name(), String
          .valueOf( message.getId() ) );
      if ( record != null ) {
        GWTMessageRecord source = message.getMessageRecord();
        int index = this.grid.getRecordIndex( record );
        if ( index > -1 ) {
          record.setGWTMessageRecord( source );
          this.grid.refreshRow( index );
        }
View Full Code Here

TOP

Related Classes of com.cubusmail.common.model.GWTMessageRecord

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.