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

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

本文整理了Java中org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable.getRowCount()方法的一些代码示例,展示了DataTable.getRowCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataTable.getRowCount()方法的具体详情如下:
包路径:org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable
类名称:DataTable
方法名:getRowCount

DataTable.getRowCount介绍

暂无

代码示例

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

public int getRowCount()
{
  return table.getRowCount();
}

代码示例来源:origin: stackoverflow.com

public void setPageDataTable() {
  final DataTable d = (DataTable) FacesContext.getCurrentInstance().getViewRoot()
    .findComponent("form:templateTable");
  int first = 1;
  if (d.getRowCount() % ROWS_DATATABLE == 0) {
    first = (d.getRowCount() - ROWS_DATATABLE);
  }
  else 
  {
    first = (d.getRowCount()/ROWS_DATATABLE)*ROWS_DATATABLE;
  }
  d.setFirst(first);
}

代码示例来源:origin: org.opensingular/singular-form-wicket

@Override
public boolean isVisible() {
  return getTable().getRowCount() == 0;
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Only shows this toolbar when there are no rows
 * 
 * @see org.apache.wicket.Component#isVisible()
 */
@Override
public boolean isVisible()
{
  return getTable().getRowCount() == 0;
}

代码示例来源:origin: org.opensingular/form-wicket

@Override
public boolean isVisible() {
  return getTable().getRowCount() == 0;
}

代码示例来源:origin: stackoverflow.com

String basePath = "C:\\excel file path";
  DataTable table = new DataTable();
  table.setHeaderless();
  table.ImportSheet(basePath+"myTestingFile.xlsx");
  System.out.println(Arrays.toString(table.getHeaderValues().toArray()));
  for(int i = 1 ; i < table.getRowCount();i++){
   table.setRowIndex(i);
   System.out.println(table.getValueAt(0));
 }

代码示例来源:origin: apache/wicket

/**
   * Only shows this toolbar when there are no rows
   */
  @Override
  protected void onConfigure()
  {
    super.onConfigure();
    setVisible(getTable().getRowCount() == 0);
  }
}

代码示例来源:origin: apache/wicket

/**
 * This toolbar is only visible if there are rows in the data set and if there are exportable columns in the
 * data table and if there are data exporters added to the toolbar.
 */
protected void calculateVisibility()
{
  final boolean isVisible;
  if (dataExporters.isEmpty())
  {
    isVisible = false;
  }
  else if (getTable().getRowCount() == 0)
  {
    isVisible = false;
  }
  else
  {
    boolean foundExportableColumn = false;
    for (IColumn<?, ?> col : getTable().getColumns())
    {
      if (col instanceof IExportableColumn)
      {
        foundExportableColumn = true;
        break;
      }
    }
    isVisible = foundExportableColumn;
  }
  setVisible(isVisible);
}

相关文章