Java 类com.google.zxing.client.result.CalendarParsedResult 实例源码

项目:keepass2android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:weex-3d-map    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:tvConnect_android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:tvConnect_android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:KeePass2Android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in
                                    // description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(), calendarResult.getStart(), calendarResult.isStartAllDay(),
                calendarResult.getEnd(), calendarResult.getLocation(), description, calendarResult.getAttendees());
    }
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in
                                    // description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(), calendarResult.getStart(), calendarResult.isStartAllDay(),
                calendarResult.getEnd(), calendarResult.getLocation(), description, calendarResult.getAttendees());
    }
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in
                                    // description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(), calendarResult.getStart(), calendarResult.isStartAllDay(),
                calendarResult.getEnd(), calendarResult.getLocation(), description, calendarResult.getAttendees());
    }
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in
                                    // description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(), calendarResult.getStart(), calendarResult.isStartAllDay(),
                calendarResult.getEnd(), calendarResult.getLocation(), description, calendarResult.getAttendees());
    }
}
项目:QRCodeUtility    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(),
                calendarResult.getStart(),
                calendarResult.isStartAllDay(),
                calendarResult.getEnd(),
                calendarResult.getLocation(),
                description,
                calendarResult.getAttendees());
    }
}
项目:weex-analyzer-android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:weex-3d-map    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:Weex-TestDemo    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:weex    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:sres-app    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:faims-android    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:Discounty    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
    if (index == 0) {
        CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

        String description = calendarResult.getDescription();
        String organizer = calendarResult.getOrganizer();
        if (organizer != null) { // No separate Intent key, put in description
            if (description == null) {
                description = organizer;
            } else {
                description = description + '\n' + organizer;
            }
        }

        addCalendarEvent(calendarResult.getSummary(),
                calendarResult.getStart(),
                calendarResult.isStartAllDay(),
                calendarResult.getEnd(),
                calendarResult.getLocation(),
                description,
                calendarResult.getAttendees());
    }
}
项目:reacteu-app    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:CordovaDemo    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:ng-cordova-demo    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:zxing-bsplus    文件:CalendarResultHandler.java   
@Override
public void handleClick(int buttonID) {
  if (buttonID == R.id.button_add_calendar) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:ngCordova-demo    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:CordovaW8BarcodeDemo    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:zxing-android-portrait    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:cordova-template    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:barterli_android    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {
    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);
    ParsedResult.maybeAppend(calResult.getSummary(), result);
    Date start = calResult.getStart();
    String startString = start.toGMTString();
    appendTime(startString, result, false, false);

    Date end = calResult.getEnd();
    String endString = end.toGMTString();
    if (endString != null) {
        boolean sameStartEnd = startString.equals(endString);
        appendTime(endString, result, true, sameStartEnd);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:oxPush    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:hive-ios    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:AndroidMultiChannelMiddleware    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:android-quick-response-code    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {
    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);
    ParsedResult.maybeAppend(calResult.getSummary(), result);
    Date start = calResult.getStart();
    String startString = start.toGMTString();
    appendTime(startString, result, false, false);

    Date end = calResult.getEnd();
    String endString = end.toGMTString();
    if (endString != null) {
        boolean sameStartEnd = startString.equals(endString);
        appendTime(endString, result, true, sameStartEnd);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:BibSearch    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {
  CalendarParsedResult calResult = (CalendarParsedResult) getResult();
  StringBuffer result = new StringBuffer(100);
  ParsedResult.maybeAppend(calResult.getSummary(), result);
  appendTime(calResult.getStart(), result);

  // The end can be null if the event has no duration, so use the start time.
  String endString = calResult.getEnd();
  if (endString == null) {
    endString = calResult.getStart();
  }
  appendTime(endString, result);

  ParsedResult.maybeAppend(calResult.getLocation(), result);
  ParsedResult.maybeAppend(calResult.getAttendee(), result);
  ParsedResult.maybeAppend(calResult.getDescription(), result);
  return result.toString();
}
项目:zxingfragmentlib    文件:CalendarResultHandler.java   
@Override
public void handleButtonPress(int index) {
  if (index == 0) {
    CalendarParsedResult calendarResult = (CalendarParsedResult) getResult();

    String description = calendarResult.getDescription();
    String organizer = calendarResult.getOrganizer();
    if (organizer != null) { // No separate Intent key, put in description
      if (description == null) {
        description = organizer;
      } else {
        description = description + '\n' + organizer;
      }
    }

    addCalendarEvent(calendarResult.getSummary(),
                     calendarResult.getStart(),
                     calendarResult.isStartAllDay(),
                     calendarResult.getEnd(),
                     calendarResult.getLocation(),
                     description,
                     calendarResult.getAttendees());
  }
}
项目:KeePass2Android    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

  CalendarParsedResult calResult = (CalendarParsedResult) getResult();
  StringBuilder result = new StringBuilder(100);

  ParsedResult.maybeAppend(calResult.getSummary(), result);

  Date start = calResult.getStart();
  ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

  Date end = calResult.getEnd();
  if (end != null) {
    if (calResult.isEndAllDay() && !start.equals(end)) {
      // Show only year/month/day
      // if it's all-day and this is the end date, it's exclusive, so show the user
      // that it ends on the day before to make more intuitive sense.
      // But don't do it if the event already (incorrectly?) specifies the same start/end
      end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
    }
    ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
  }

  ParsedResult.maybeAppend(calResult.getLocation(), result);
  ParsedResult.maybeAppend(calResult.getOrganizer(), result);
  ParsedResult.maybeAppend(calResult.getAttendees(), result);
  ParsedResult.maybeAppend(calResult.getDescription(), result);
  return result.toString();
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);

    ParsedResult.maybeAppend(calResult.getSummary(), result);

    Date start = calResult.getStart();
    ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

    Date end = calResult.getEnd();
    if (end != null) {
        if (calResult.isEndAllDay() && !start.equals(end)) {
            // Show only year/month/day
            // if it's all-day and this is the end date, it's exclusive, so
            // show the user
            // that it ends on the day before to make more intuitive sense.
            // But don't do it if the event already (incorrectly?) specifies
            // the same start/end
            end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
        }
        ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getOrganizer(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);

    ParsedResult.maybeAppend(calResult.getSummary(), result);

    Date start = calResult.getStart();
    ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

    Date end = calResult.getEnd();
    if (end != null) {
        if (calResult.isEndAllDay() && !start.equals(end)) {
            // Show only year/month/day
            // if it's all-day and this is the end date, it's exclusive, so
            // show the user
            // that it ends on the day before to make more intuitive sense.
            // But don't do it if the event already (incorrectly?) specifies
            // the same start/end
            end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
        }
        ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getOrganizer(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);

    ParsedResult.maybeAppend(calResult.getSummary(), result);

    Date start = calResult.getStart();
    ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

    Date end = calResult.getEnd();
    if (end != null) {
        if (calResult.isEndAllDay() && !start.equals(end)) {
            // Show only year/month/day
            // if it's all-day and this is the end date, it's exclusive, so
            // show the user
            // that it ends on the day before to make more intuitive sense.
            // But don't do it if the event already (incorrectly?) specifies
            // the same start/end
            end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
        }
        ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getOrganizer(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:PortraitZXing    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);

    ParsedResult.maybeAppend(calResult.getSummary(), result);

    Date start = calResult.getStart();
    ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

    Date end = calResult.getEnd();
    if (end != null) {
        if (calResult.isEndAllDay() && !start.equals(end)) {
            // Show only year/month/day
            // if it's all-day and this is the end date, it's exclusive, so
            // show the user
            // that it ends on the day before to make more intuitive sense.
            // But don't do it if the event already (incorrectly?) specifies
            // the same start/end
            end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
        }
        ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getOrganizer(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:QRCodeUtility    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

    CalendarParsedResult calResult = (CalendarParsedResult) getResult();
    StringBuilder result = new StringBuilder(100);

    ParsedResult.maybeAppend(calResult.getSummary(), result);

    Date start = calResult.getStart();
    ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

    Date end = calResult.getEnd();
    if (end != null) {
        if (calResult.isEndAllDay() && !start.equals(end)) {
            // Show only year/month/day
            // if it's all-day and this is the end date, it's exclusive, so show the user
            // that it ends on the day before to make more intuitive sense.
            // But don't do it if the event already (incorrectly?) specifies the same start/end
            end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
        }
        ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
    }

    ParsedResult.maybeAppend(calResult.getLocation(), result);
    ParsedResult.maybeAppend(calResult.getOrganizer(), result);
    ParsedResult.maybeAppend(calResult.getAttendees(), result);
    ParsedResult.maybeAppend(calResult.getDescription(), result);
    return result.toString();
}
项目:weex-analyzer-android    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

  CalendarParsedResult calResult = (CalendarParsedResult) getResult();
  StringBuilder result = new StringBuilder(100);

  ParsedResult.maybeAppend(calResult.getSummary(), result);

  Date start = calResult.getStart();
  ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

  Date end = calResult.getEnd();
  if (end != null) {
    if (calResult.isEndAllDay() && !start.equals(end)) {
      // Show only year/month/day
      // if it's all-day and this is the end date, it's exclusive, so show the user
      // that it ends on the day before to make more intuitive sense.
      // But don't do it if the event already (incorrectly?) specifies the same start/end
      end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
    }
    ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
  }

  ParsedResult.maybeAppend(calResult.getLocation(), result);
  ParsedResult.maybeAppend(calResult.getOrganizer(), result);
  ParsedResult.maybeAppend(calResult.getAttendees(), result);
  ParsedResult.maybeAppend(calResult.getDescription(), result);
  return result.toString();
}
项目:weex-3d-map    文件:CalendarResultHandler.java   
@Override
public CharSequence getDisplayContents() {

  CalendarParsedResult calResult = (CalendarParsedResult) getResult();
  StringBuilder result = new StringBuilder(100);

  ParsedResult.maybeAppend(calResult.getSummary(), result);

  Date start = calResult.getStart();
  ParsedResult.maybeAppend(format(calResult.isStartAllDay(), start), result);

  Date end = calResult.getEnd();
  if (end != null) {
    if (calResult.isEndAllDay() && !start.equals(end)) {
      // Show only year/month/day
      // if it's all-day and this is the end date, it's exclusive, so show the user
      // that it ends on the day before to make more intuitive sense.
      // But don't do it if the event already (incorrectly?) specifies the same start/end
      end = new Date(end.getTime() - 24 * 60 * 60 * 1000);
    }
    ParsedResult.maybeAppend(format(calResult.isEndAllDay(), end), result);
  }

  ParsedResult.maybeAppend(calResult.getLocation(), result);
  ParsedResult.maybeAppend(calResult.getOrganizer(), result);
  ParsedResult.maybeAppend(calResult.getAttendees(), result);
  ParsedResult.maybeAppend(calResult.getDescription(), result);
  return result.toString();
}