本文整理了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
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!