Search in sources :

Example 1 with Data

use of org.apache.jorphan.collections.Data in project jmeter by apache.

the class PowerTableModel method clearData.

public void clearData() {
    String[] headers = model.getHeaders();
    model = new Data();
    model.setHeaders(headers);
    this.fireTableDataChanged();
}
Also used : Data(org.apache.jorphan.collections.Data)

Example 2 with Data

use of org.apache.jorphan.collections.Data in project jmeter by apache.

the class SimpleConfigGui method modifyTestElement.

/**
     * Get all of the values from the GUI component and set them in the
     * TestElement.
     *
     * @param el
     *            the TestElement to modify
     */
@Override
public void modifyTestElement(TestElement el) {
    GuiUtils.stopTableEditing(table);
    Data model = tableModel.getData();
    model.reset();
    while (model.next()) {
        el.setProperty(new StringProperty((String) model.getColumnValue(COLUMN_NAMES_0), (String) model.getColumnValue(COLUMN_NAMES_1)));
    }
    super.configureTestElement(el);
}
Also used : StringProperty(org.apache.jmeter.testelement.property.StringProperty) Data(org.apache.jorphan.collections.Data)

Aggregations

Data (org.apache.jorphan.collections.Data)2 StringProperty (org.apache.jmeter.testelement.property.StringProperty)1