本文整理汇总了Java中com.google.samples.apps.iosched.model.ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS属性的典型用法代码示例。如果您正苦于以下问题:Java ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS属性的具体用法?Java ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS怎么用?Java ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.google.samples.apps.iosched.model.ScheduleItem
的用法示例。
在下文中一共展示了ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: item
private ScheduleItem item(String start, String end, String id, boolean conflict, int type) {
ScheduleItem i = new ScheduleItem();
i.title = id;
i.startTime = date(start);
i.endTime = date(end);
i.type = type;
if (conflict) i.flags = ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS;
return i;
}
示例2: item
private ScheduleItem item(boolean inSchedule, int inReservationStatus, String start, String end, String id,
boolean conflict, int type) {
ScheduleItem i = new ScheduleItem();
i.title = id;
i.startTime = date(start);
i.endTime = date(end);
i.type = type;
i.inSchedule = inSchedule;
i.reservationStatus = inReservationStatus;
if (conflict) {
i.flags = ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS;
}
return i;
}
示例3: format
private String format(ScheduleItem item) {
return item.title + " " + timeStr(item.startTime) + "-" + timeStr(item.endTime) +
((item.flags&ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS ) > 0 ? " conflict":"");
}
示例4: format
private String format(ScheduleItem item) {
return item.title + " " + timeStr(item.startTime) + "-" + timeStr(item.endTime) +
((item.flags & ScheduleItem.FLAG_CONFLICTS_WITH_PREVIOUS) > 0 ? " conflict" : "");
}