本文整理汇总了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));
}
};
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:22,代码来源:ScheduleController.java
示例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));
/* */}
开发者ID:marlonalexis,项目名称:Multicentro_Mascotas,代码行数:12,代码来源:ScheduleView.java
示例3: init
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
@PostConstruct
public void init(){
event = new DefaultScheduleEvent();
eventModel = new DefaultScheduleModel();
}
开发者ID:danjorge,项目名称:Agendamento-Unifor,代码行数:6,代码来源:AgendamentoManager.java
示例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");
}
开发者ID:danjorge,项目名称:Agendamento-Unifor,代码行数:5,代码来源:AgendamentoManager.java
示例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;
}
开发者ID:sudheerj,项目名称:primefaces-blueprints,代码行数:7,代码来源:MovieSchedule.java
示例6: onDateSelect
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void onDateSelect(SelectEvent selectEvent) {
event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(), (Date) selectEvent.getObject());
}
开发者ID:sudheerj,项目名称:primefaces-blueprints,代码行数:4,代码来源:ScheduleController.java
示例7: onDateSelect
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
public void onDateSelect(SelectEvent selectEvent) {
event = new DefaultScheduleEvent("", (Date) selectEvent.getObject(), (Date) selectEvent.getObject());
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:ScheduleController.java
示例8: add
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
private ScheduleEvent add(Evento e) {
return new DefaultScheduleEvent(e.getNome(), e.getInicio(), e.getTermino());
}
开发者ID:petroniocandido,项目名称:GerenciadorEventos,代码行数:4,代码来源:AgendaController.java
示例9: addInscricao
import org.primefaces.model.DefaultScheduleEvent; //导入依赖的package包/类
private ScheduleEvent addInscricao(Evento e) {
return new DefaultScheduleEvent("Inscrição " + e.getNome(), e.getInicioInscricao(), e.getTerminoInscricao());
}
开发者ID:petroniocandido,项目名称:GerenciadorEventos,代码行数:4,代码来源:AgendaController.java
注:本文中的org.primefaces.model.DefaultScheduleEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论