本文整理了Java中org.apache.wicket.markup.html.WebMarkupContainer.setRenderBodyOnly()
方法的一些代码示例,展示了WebMarkupContainer.setRenderBodyOnly()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMarkupContainer.setRenderBodyOnly()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebMarkupContainer
类名称:WebMarkupContainer
方法名:setRenderBodyOnly
暂无
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
public BootstrapCheckbox setInline(boolean inline) {
this.inline = inline;
wrapper.setRenderBodyOnly(inline);
return this;
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
result.setRenderBodyOnly(true);
return result;
代码示例来源:origin: org.wicketstuff/wicket15-tree
result.setRenderBodyOnly(true);
return result;
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
private BaseSvgIcon(final String id, final IModel<T> model, final IconSize size) {
super(id, model);
this.size = size;
final WebMarkupContainer container = new WebMarkupContainer("iconContainer") {
@Override
protected void onComponentTag(final ComponentTag tag) {
final Response response = RequestCycle.get().getResponse();
final String svgMarkup = getSvgMarkup(size, getExtraCssClasses());
response.write(svgMarkup);
super.onComponentTag(tag);
}
};
container.setRenderBodyOnly(true);
add(container);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible and useSplitter is true.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId).setRenderBodyOnly(true).setEscapeModelStrings(false).setVisible(false);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
private WebMarkupContainer createContentPanel(String id, T tab, final int tabIndex, final IModel<Integer> activeTabIndexModel) {
WebMarkupContainer panel = tab.getPanel(id);
panel.setRenderBodyOnly(false);
panel.add(new AttributeModifier("class", () -> {
int activeTab = activeTabIndexModel!=null? activeTabIndexModel.getObject():0;
boolean isActive = (tabIndex == activeTab);
return "tab" + tabIndex + (isActive?" tab-pane fade in active":" tab-pane fade");
}));
panel.setOutputMarkupId(true);
return panel;
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible and useSplitter is true.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false)
.setVisible(false);
}
代码示例来源:origin: org.wicketstuff/yui
YuiMenuGroupMenu(final boolean firstMenu, boolean addInit) {
super(null, firstMenu, addInit);
WebMarkupContainer label = new WebMarkupContainer(LABEL_ID);
label.setRenderBodyOnly(true);
label.setVisible(false);
add(label);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* Creates a new splitter component. The splitter is visible only
* if icon is visible and useSplitter is true.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false)
.setVisible(false);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible and useSplitter is true.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false)
.setVisible(false);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* creates a new splitter component. The splitter is visible only
* if icon is visible or if useSplitter is true.
*
* @param markupId the component id of the splitter
* @return new splitter component
*/
protected Component newSplitter(final String markupId) {
return new WebMarkupContainer(markupId)
.setRenderBodyOnly(true)
.setEscapeModelStrings(false)
.setVisible(false);
}
代码示例来源:origin: theonedev/onedev
} else {
link = new WebMarkupContainer("link");
link.setRenderBodyOnly(true);
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
row.setRenderBodyOnly(true);
add(row);
代码示例来源:origin: org.wicketstuff/jwicket-ui-sort
sortable.setRenderBodyOnly(false);
sortable.add(repeater);
sortable.add(sortableBehavior);
代码示例来源:origin: apache/wicket
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
protected final void onPopulate()
{
if ((size() == 0) || recreateChoices)
{
// populate this repeating view with SelectOption components
removeAll();
Collection<? extends T> modelObject = (Collection<? extends T>)getDefaultModelObject();
if (modelObject != null)
{
for (T value : modelObject)
{
// we need a container to represent a row in repeater
WebMarkupContainer row = new WebMarkupContainer(newChildId());
row.setRenderBodyOnly(true);
add(row);
// we add our actual SelectOption component to the row
String text = renderer.getDisplayValue(value);
IModel<T> model = renderer.getModel(value);
row.add(newOption(text, model));
}
}
}
}
代码示例来源:origin: micromata/projectforge
public JiraIssuesPanel(final String id, final IModel<String> model)
{
super(id);
setRenderBodyOnly(true);
if (WicketUtils.isJIRAConfigured() == false) {
final WebMarkupContainer dummy = new WebMarkupContainer("issues");
setVisible(false);
dummy.add(new ExternalLink("jiraLink", "dummy"));
add(dummy);
return;
}
final RepeatingView jiraIssuesRepeater = new RepeatingView("issues");
add(jiraIssuesRepeater);
final String[] jiraIssues = JiraUtils.checkForJiraIssues(model.getObject());
if (jiraIssues == null) {
jiraIssuesRepeater.setVisible(false);
} else {
for (final String issue : jiraIssues) {
final WebMarkupContainer item = new WebMarkupContainer(jiraIssuesRepeater.newChildId());
item.setRenderBodyOnly(true);
jiraIssuesRepeater.add(item);
item.add(new ExternalLink("jiraLink", JiraUtils.buildJiraIssueBrowseLinkUrl(issue), issue));
}
}
}
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
item.setRenderBodyOnly(true);
header.add(column.getHeader("label"));
代码示例来源:origin: org.artifactory/artifactory-web-common
for (final IColumn column : columns) {
WebMarkupContainer item = new WebMarkupContainer(headers.newChildId());
item.setRenderBodyOnly(true);
headers.add(item);
内容来源于网络,如有侵权,请联系作者删除!