public void fillFieldValues(List<SynapseUpdateRule> ruleList){
  ShortTermPlasticityRule synapseRef=(ShortTermPlasticityRule)ruleList.get(0);
  if (!NetworkUtils.isConsistent(ruleList,ShortTermPlasticityRule.class,"getPlasticityType")) {
    cbPlasticityType.setNull();
  }
 else {
    cbPlasticityType.setSelectedIndex(synapseRef.getPlasticityType());
  }
  if (!NetworkUtils.isConsistent(ruleList,ShortTermPlasticityRule.class,"getBaseLineStrength")) {
    tfBaseLineStrength.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfBaseLineStrength.setText(Double.toString(synapseRef.getBaseLineStrength()));
  }
  if (!NetworkUtils.isConsistent(ruleList,ShortTermPlasticityRule.class,"getFiringThreshold")) {
    tfFiringThreshold.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfFiringThreshold.setText(Double.toString(synapseRef.getFiringThreshold()));
  }
  if (!NetworkUtils.isConsistent(ruleList,ShortTermPlasticityRule.class,"getBumpRate")) {
    tfBumpRate.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfBumpRate.setText(Double.toString(synapseRef.getBumpRate()));
  }
  if (!NetworkUtils.isConsistent(ruleList,ShortTermPlasticityRule.class,"getDecayRate")) {
    tfDecayRate.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfDecayRate.setText(Double.toString(synapseRef.getDecayRate()));
  }
}

public void fillFieldValues ( List < SynapseUpdateRule > ruleList ) { ShortTermPlasticityRule synapseRef = ( ShortTermPlasticityRule ) ruleList . get ( 0 ) ; if ( ! NetworkUtils . isConsistent ( ruleList , ShortTermPlasticityRule . class , "getPlasticityType" ) ) { cbPlasticityType . setNull ( ) ; } else { cbPlasticityType . setSelectedIndex ( synapseRef . getPlasticityType ( ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , ShortTermPlasticityRule . class , "getBaseLineStrength" ) ) { tfBaseLineStrength . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfBaseLineStrength . setText ( Double . toString ( synapseRef . getBaseLineStrength ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , ShortTermPlasticityRule . class , "getFiringThreshold" ) ) { tfFiringThreshold . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfFiringThreshold . setText ( Double . toString ( synapseRef . getFiringThreshold ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , ShortTermPlasticityRule . class , "getBumpRate" ) ) { tfBumpRate . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfBumpRate . setText ( Double . toString ( synapseRef . getBumpRate ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , ShortTermPlasticityRule . class , "getDecayRate" ) ) { tfDecayRate . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfDecayRate . setText ( Double . toString ( synapseRef . getDecayRate ( ) ) ) ; } }
populate fields with current data .
