本文整理汇总了Java中org.apache.tapestry5.annotations.SetupRender类的典型用法代码示例。如果您正苦于以下问题:Java SetupRender类的具体用法?Java SetupRender怎么用?Java SetupRender使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SetupRender类属于org.apache.tapestry5.annotations包,在下文中一共展示了SetupRender类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: checkClientId
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
public void checkClientId(){
//Be sure that clientId is set
if (this.clientId==null){
clientId = javascript.allocateClientId(resources);
}
//Organize options to send
this.opts= new JSONObject();
opts.put("id", this.getClientId());
opts.put("dataSet", this.dataSet);
JSONObject specificOptions = this.getSpecificOptions();
opts.put("extra", specificOptions==null? new JSONObject():specificOptions);
}
开发者ID:got5,项目名称:tapestry5-d3,代码行数:16,代码来源:AbstractD3Component.java
示例2: setupRender
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
void setupRender() {
Integer year = new GregorianCalendar().get(Calendar.YEAR);
Integer maxYear = max == null ? year + 10 : max;
years = "";
for ( ; year <= maxYear; year++ ) {
years += String.format("%d,", year);
}
}
开发者ID:trsvax,项目名称:tapestry-shop,代码行数:10,代码来源:Year.java
示例3: init
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
void init(final MarkupWriter writer)
{
writer.getDocument().raw("<!DOCTYPE html>");
this.pageName = resources.getPageName();
}
开发者ID:ffacon,项目名称:tapestry5-angular2-demo,代码行数:7,代码来源:Layout.java
示例4: init
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
void init()
{
this.title = resources.getPageName();
}
开发者ID:ffacon,项目名称:tapestry5-angular2-demo,代码行数:6,代码来源:LayoutA2Custom.java
示例5: init
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
void init()
{
this.title = resources.getPageName();
}
开发者ID:ffacon,项目名称:tapestry5-angular2-demo,代码行数:6,代码来源:LayoutA2Dependencies.java
示例6: setupRender
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
public void setupRender() {
String channelId = request.getParameter("channelId");
String searchTime = request.getParameter("searchTime");
Optional<Channel> channel;
if (channelId != null) {
channel = dataService.getChannel(getChannelUuid(), channelId);
} else {
channel = Optional.empty();
}
if (epgCriteria.isReset() || channel.isPresent()) {
epgCriteria.setReset(false);
groups = dataService.getGroups(getChannelUuid()).orElse(Collections.emptyList()) //
.stream() //
.filter(s -> securityService.hasPermission("channel:group:" + s)) //
.collect(Collectors.toList());
if (channel.isPresent()) {
epgCriteria.setChannelGroup(channel.get().getGroup());
epgCriteria.setChannel(channel.get());
channels = dataService.getChannelsInGroup(getChannelUuid(), channel.get().getGroup(), true).get();
} else {
if (groups.size() > 0) {
channels = dataService.getChannelsInGroup(getChannelUuid(), groups.get(0), true)
.orElse(Collections.emptyList());
epgCriteria.setChannelGroup(groups.get(0));
} else {
channels = dataService.getChannels(getChannelUuid(), true).orElse(Collections.emptyList());
epgCriteria.setChannelGroup(null);
}
if (channels.size() > 0) {
epgCriteria.setChannel(channels.get(0));
}
}
}
if (searchTime != null) {
epgCriteria.setTime(Long.parseLong(searchTime));
}
updateData();
}
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:49,代码来源:EpgLayout.java
示例7: setupRender
import org.apache.tapestry5.annotations.SetupRender; //导入依赖的package包/类
@SetupRender
void setupRender() {
setup();
}
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:5,代码来源:TabGroup.java
注:本文中的org.apache.tapestry5.annotations.SetupRender类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论