use of cbit.vcell.modelopt.ParameterEstimationTask in project vcell by virtualcell.
the class ParameterEstimationTaskPropertiesPanel method setParameterEstimationTask.
private void setParameterEstimationTask(ParameterEstimationTask newValue) {
ParameterEstimationTask oldValue = fieldParameterEstimationTask;
fieldParameterEstimationTask = newValue;
/* Stop listening for events from the current object */
if (oldValue != null) {
oldValue.removePropertyChangeListener(eventHandler);
}
/* Listen for events from the new object */
if (newValue != null) {
newValue.addPropertyChangeListener(eventHandler);
taskNameTextField.setText(fieldParameterEstimationTask.getName());
annotationTextArea.setText(fieldParameterEstimationTask.getAnnotation());
} else {
taskNameTextField.setText(null);
annotationTextArea.setText(null);
}
}
Aggregations