org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.onComponentTag()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(171)

本文整理了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

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());
}

相关文章