@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); VariableThroughputTimer tg = new VariableThroughputTimer(); VariableThroughputTimerGui instance = new VariableThroughputTimerGui(); instance.modifyTestElement(tg); CollectionProperty data = (CollectionProperty) tg.getData(); Assert.assertEquals(instance.grid.getModel().getRowCount(), data.size()); }
@Override public void modifyTestElement(TestElement tg) { super.configureTestElement(tg); if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof VariableThroughputTimer) { VariableThroughputTimer utg = (VariableThroughputTimer) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, VariableThroughputTimer.DATA_PROPERTY); utg.setData(rows); } }
VariableThroughputTimerGui extends AbstractTimerGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { super.configureTestElement(tg); if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof VariableThroughputTimer) { VariableThroughputTimer utg = (VariableThroughputTimer) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, VariableThroughputTimer.DATA_PROPERTY); utg.setData(rows); } } }
VariableThroughputTimerGui extends AbstractTimerGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { super.configureTestElement(tg); if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof VariableThroughputTimer) { VariableThroughputTimer utg = (VariableThroughputTimer) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, VariableThroughputTimer.DATA_PROPERTY); utg.setData(rows); } } VariableThroughputTimerGui(); }
VariableThroughputTimerGui extends AbstractTimerGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { super.configureTestElement(tg); if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof VariableThroughputTimer) { VariableThroughputTimer utg = (VariableThroughputTimer) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, VariableThroughputTimer.DATA_PROPERTY); utg.setData(rows); } } VariableThroughputTimerGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement tg); @Override void configure(TestElement tg); @Override void updateUI(); @Override void editingStopped(ChangeEvent e); @Override void editingCanceled(ChangeEvent e); @Override void clearGui(); @Override void tableChanged(TableModelEvent e); }
VariableThroughputTimerGui extends AbstractTimerGui implements TableModelListener,
        CellEditorListener { @Override public void modifyTestElement(TestElement tg) { super.configureTestElement(tg); if (grid.isEditing()) { grid.getCellEditor().stopCellEditing(); } if (tg instanceof VariableThroughputTimer) { VariableThroughputTimer utg = (VariableThroughputTimer) tg; CollectionProperty rows = JMeterPluginsUtils.tableModelRowsToCollectionProperty(tableModel, VariableThroughputTimer.DATA_PROPERTY); utg.setData(rows); } } VariableThroughputTimerGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement tg); @Override void configure(TestElement tg); @Override void updateUI(); @Override void editingStopped(ChangeEvent e); @Override void editingCanceled(ChangeEvent e); @Override void clearGui(); @Override void tableChanged(TableModelEvent e); static final String WIKIPAGE; }