本文整理了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.onComponentTag()
方法的一些代码示例,展示了DataTable.onComponentTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataTable.onComponentTag()
方法的具体详情如下:
包路径:org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable
类名称:DataTable
方法名:onComponentTag
暂无
代码示例来源:origin: org.wicketstuff/datatable-autocomplete
@Override
protected void onComponentTag(ComponentTag tag) {
// force the name of the tag to be table.
// this allows us to use this component on a span or div tag.
tag.setName("table");
super.onComponentTag(tag);
}
代码示例来源:origin: org.wicketstuff/wicketstuff-datatable-autocomplete
@Override
protected void onComponentTag(ComponentTag tag)
{
// force the name of the tag to be table.
// this allows us to use this component on a span or div tag.
tag.setName("table");
super.onComponentTag(tag);
}
代码示例来源:origin: org.artifactory/artifactory-web-common
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("cellpadding", "0");
tag.put("cellspacing", "0");
}
代码示例来源:origin: org.opensingular/singular-wicket-utils
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
StringBuilder sbClass = new StringBuilder(StringUtils.defaultString(tag.getAttribute("class")));
sbClass.append(" table");
if (isStripedRows())
sbClass.append(" table-striped");
if (isHoverRows())
sbClass.append(" table-hover");
if (isAdvanceTable())
sbClass.append(" table-advance");
else
sbClass.append(" dataTable");
if (isBorderedTable())
sbClass.append(" table-bordered");
if (isCondensedTable())
sbClass.append(" table-condensed");
tag.put("class", sbClass.toString().trim());
}
代码示例来源:origin: org.opensingular/wicket-utils
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
StringBuilder sbClass = new StringBuilder(StringUtils.defaultString(tag.getAttribute("class")));
sbClass.append(" table");
if (isStripedRows())
sbClass.append(" table-striped");
if (isHoverRows())
sbClass.append(" table-hover");
if (isAdvanceTable())
sbClass.append(" table-advance");
else
sbClass.append(" dataTable");
if (isBorderedTable())
sbClass.append(" table-bordered");
if (isCondensedTable())
sbClass.append(" table-condensed");
tag.put("class", sbClass.toString().trim());
}
内容来源于网络,如有侵权,请联系作者删除!