本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.setVisible()
方法的一些代码示例,展示了Fragment.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.setVisible()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:setVisible
暂无
代码示例来源:origin: org.onehippo.cms7/hippo-cms-editor-frontend
private Fragment createResourceFragment(String id, IModel<Node> model) {
final JcrResourceStream stream = new JcrResourceStream(model);
Fragment fragment = new Fragment(id, "unknown", this);
try {
if (stream.length().bytes() < 0) {
return fragment;
}
fragment = new Fragment(id, "embed", this);
fragment.add(new Label("filesize", Model.of(formatter.format(stream.length().bytes()))));
fragment.add(new Label("mimetype", Model.of(stream.getContentType())));
fragment.add(createFileLink(stream, stream.getChainedModel().getObject()));
if (stream.getContentType().equals(MIME_TYPE_HIPPO_BLANK)) {
fragment.setVisible(false);
}
} catch (RepositoryException ex) {
log.error(ex.getMessage());
}
return fragment;
}
代码示例来源:origin: apache/syncope
if (!showNotRunning) {
controls.setOutputMarkupPlaceholderTag(true);
controls.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!