Java Code Examples for org.apache.jmeter.gui.util.PowerTableModel#getRowCount()

The following examples show how to use org.apache.jmeter.gui.util.PowerTableModel#getRowCount() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JMeterPluginsUtils.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
public static CollectionProperty tableModelRowsToCollectionProperty(PowerTableModel model, String propname) {
    CollectionProperty rows = new CollectionProperty(propname, new ArrayList<>());
    for (int row = 0; row < model.getRowCount(); row++) {
        List<Object> item = getArrayListForArray(model.getRowData(row));
        rows.addItem(item);
    }
    return rows;
}
 
Example 2
Source File: JMeterPluginsUtils.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
public static CollectionProperty tableModelRowsToCollectionPropertyEval(PowerTableModel model, String propname) {
    CollectionProperty rows = new CollectionProperty(propname, new ArrayList<>());
    for (int row = 0; row < model.getRowCount(); row++) {
        List<Object> item = getArrayListForArrayEval(model.getRowData(row));
        rows.addItem(item);
    }
    return rows;
}