本文整理了Java中org.apache.wicket.markup.html.border.Border.onBeforeRender()
方法的一些代码示例,展示了Border.onBeforeRender()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Border.onBeforeRender()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.border.Border
类名称:Border
方法名:onBeforeRender
暂无
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Update the 'visible' flag to indicate the existence (or lack thereof) of feedback messages
*/
@Override
protected void onBeforeRender()
{
super.onBeforeRender();
// Get the messages for the current page
visible = new FeedbackCollector(getPage()).collect(getMessagesFilter()).size() > 0;
}
代码示例来源:origin: apache/wicket
/**
* Update the 'visible' flag to indicate the existence (or lack thereof) of feedback messages
*/
@Override
protected void onBeforeRender()
{
super.onBeforeRender();
// Get the messages for the current page
visible = new FeedbackCollector(getPage()).collect(getMessagesFilter()).size() > 0;
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Update the 'visible' flag to indicate the existence (or lack thereof) of feedback messages
*/
@Override
protected void onBeforeRender()
{
super.onBeforeRender();
// Get the messages for the current page
visible = Session.get().getFeedbackMessages().messages(getMessagesFilter()).size() != 0;
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Update the 'visible' flag to indicate the existence (or lack thereof) of feedback messages
*/
protected void onBeforeRender()
{
super.onBeforeRender();
// Get the messages for the current page
visible = Session.get().getFeedbackMessages().messages(getMessagesFilter()).size() != 0;
}
代码示例来源:origin: de.agilecoders.wicket/bootstrap
/**
* Update the 'visible' flag to indicate the existence (or lack thereof) of feedback messages
*/
@Override
protected void onBeforeRender() {
super.onBeforeRender();
// Get the messages for the current page
List<FeedbackMessage> feedbackMessageList = collectFeedbackMessages();
if (feedbackMessageList != null && !feedbackMessageList.isEmpty()) {
FeedbackMessage feedbackMessage = feedbackMessageList.get(0);
feedback.setDefaultModel(new Model<Serializable>(feedbackMessage.getMessage()));
feedback.setVisible(true);
add(new CssClassNameAppender(feedbackMessage.getLevelAsString().toLowerCase()));
} else {
feedback.setVisible(false);
}
label.setVisible(!Strings.isNullOrEmpty(label.getDefaultModelObjectAsString()));
help.setVisible(!Strings.isNullOrEmpty(help.getDefaultModelObjectAsString()));
}
代码示例来源:origin: MarcGiffing/wicket-spring-boot
@Override
protected void onBeforeRender() {
if (!formComponent.isValid()) {
add(new AttributeModifier("class", Model.of("form-group has-error")));
} else {
add(new AttributeModifier("class", "form-group"));
}
super.onBeforeRender();
}
内容来源于网络,如有侵权,请联系作者删除!