本文整理了Java中org.apache.wicket.markup.html.border.Border.onConfigure()
方法的一些代码示例,展示了Border.onConfigure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Border.onConfigure()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.border.Border
类名称:Border
方法名:onConfigure
暂无
代码示例来源:origin: de.agilecoders.wicket/bootstrap
@Override
protected void onConfigure() {
super.onConfigure();
if(provider != null) {
add(provider.newCssClassNameModifier());
}
}
}
代码示例来源:origin: de.agilecoders.wicket/bootstrap
@Override
protected void onConfigure() {
super.onConfigure();
Components.hideIfModelIsEmpty(title);
image.setVisible(!Strings.isNullOrEmpty(getDefaultModelObjectAsString()));
}
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
@Override
protected void onConfigure() {
super.onConfigure();
Components.hideIfModelIsEmpty(title);
image.setVisible(!Strings.isEmpty(getDefaultModelObjectAsString()));
}
}
代码示例来源:origin: org.jabylon/rest.ui
@Override
protected void onConfigure() {
super.onConfigure();
feedback = findWorstMessage();
if(feedback!=null)
{
feedbackLabel.setDefaultModel(Model.of(feedback.getMessage()));
}
else
{
feedbackLabel.setDefaultModel(Model.of(""));
}
hideIfEmpty(help);
hideIfEmpty(feedbackLabel);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
@Override
protected void onConfigure() {
super.onConfigure();
// set all components visible
Components.show(help, label, feedback);
// clear feedback message and current state
stateClassName = "";
feedback.setDefaultModelObject("");
final List<FormComponent<?>> formComponents = findFormComponents();
for (final FormComponent<?> fc : formComponents) {
final FeedbackMessages messages = fc.getFeedbackMessages();
if (!messages.isEmpty()) {
final FeedbackMessage worstMessage = getWorstMessage(messages);
worstMessage.markRendered();
stateClassName = toClassName(worstMessage);
feedback.setDefaultModelObject(worstMessage.getMessage());
break; // render worst message of first found child component with feedback message
}
}
Components.hideIfModelIsEmpty(help);
Components.hideIfModelIsEmpty(label);
Components.hideIfModelIsEmpty(feedback);
}
代码示例来源:origin: de.agilecoders.wicket/bootstrap
@Override
protected void onConfigure() {
super.onConfigure();
Components.show(help, label, error);
stateClassName.setObject("");
error.setDefaultModelObject("");
final List<FormComponent<?>> formComponents = findFormComponents();
for (final FormComponent<?> fc : formComponents) {
final FeedbackMessages messages = fc.getFeedbackMessages();
if (!messages.isEmpty()) {
final FeedbackMessage worstMessage = getWorstMessage(messages);
worstMessage.markRendered();
stateClassName.setObject(toClassName(worstMessage));
error.setDefaultModelObject(worstMessage.getMessage());
break; // render worst message of first found child component with feedback message
}
}
Components.hideIfModelIsEmpty(help);
Components.hideIfModelIsEmpty(label);
Components.hideIfModelIsEmpty(error);
}
内容来源于网络,如有侵权,请联系作者删除!