本文整理汇总了Java中org.primefaces.model.DefaultScheduleEvent类的典型用法代码示例。如果您正苦于以下问题:Java DefaultScheduleEvent类的具体用法?Java DefaultScheduleEvent怎么用?Java DefaultScheduleEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DefaultScheduleEvent类属于org.primefaces.model包,在下文中一共展示了DefaultScheduleEvent类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ScheduleController
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public ScheduleController() {
eventModel = new DefaultScheduleModel();
eventModel.addEvent(new DefaultScheduleEvent("Champions League Match", previousDay8Pm(), previousDay11Pm()));
eventModel.addEvent(new DefaultScheduleEvent("Birthday Party", today1Pm(), today6Pm()));
eventModel.addEvent(new DefaultScheduleEvent("Breakfast at Tiffanys", nextDay9Am(), nextDay11Am()));
eventModel.addEvent(new DefaultScheduleEvent("Plant the new garden stuff", theDayAfter3Pm(), fourDaysLater3pm()));
lazyEventModel = new LazyScheduleModel() {
@Override
public void loadEvents(Date start, Date end) {
clear();
Date random = getRandomDate(start);
addEvent(new DefaultScheduleEvent("Lazy Event 1", random, random));
random = getRandomDate(start);
addEvent(new DefaultScheduleEvent("Lazy Event 2", random, random));
}
};
}
示例2: loadEvents
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void loadEvents(Date start, Date end)
/* */{
/* 45 */Date random = getRandomDate(start);
/* 46 */addEvent(new DefaultScheduleEvent("Lazy Event 1", random,
random));
/* */
/* 48 */random = this.getRandomDate(start);
/* 49 */addEvent(new DefaultScheduleEvent("Lazy Event 2", random,
random));
/* */}
示例3: init
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
@PostConstruct
public void init(){
event = new DefaultScheduleEvent();
eventModel = new DefaultScheduleModel();
}
示例4: onDateSelect
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void onDateSelect(SelectEvent selectEvent){
event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(), (Date) selectEvent.getObject());
sol = (Solicitacao) sessao.recuperaObjetoSessao("solicitacao");
}
示例5: toScheduleEvent
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public ScheduleEvent toScheduleEvent() {
DefaultScheduleEvent se = new DefaultScheduleEvent(title, startDate, endDate, allDay);
System.out.println("______________ ID : "+id);
se.setData(id);
return se;
}
示例6: onDateSelect
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void onDateSelect(SelectEvent selectEvent) {
event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(), (Date) selectEvent.getObject());
}
示例7: onDateSelect
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void onDateSelect(SelectEvent selectEvent) {
event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(), (Date) selectEvent.getObject());
}
示例8: add
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
private ScheduleEvent add(Evento e) {
return new DefaultScheduleEvent(e.getNome(), e.getInicio(), e.getTermino());
}
示例9: addInscricao
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
private ScheduleEvent addInscricao(Evento e) {
return new DefaultScheduleEvent("Inscrição " + e.getNome(), e.getInicioInscricao(), e.getTerminoInscricao());
}