public void fillFieldValues(final ArrayList<Randomizer> randomizers){
  Randomizer rand=(Randomizer)randomizers.get(0);
  ParameterGetter<Randomizer,Double> p1Getter=null;
  if (NetworkUtils.isConsistent(randomizers,p1Getter)) {
    tfParam1.setText(Double.toString(rand.getParam1()));
  }
 else {
    tfParam1.setText(SimbrainConstants.NULL_STRING);
  }
  ParameterGetter<Randomizer,Double> p2Getter=null;
  if (NetworkUtils.isConsistent(randomizers,p2Getter)) {
    tfParam2.setText(Double.toString(rand.getParam2()));
  }
 else {
    tfParam2.setText(SimbrainConstants.NULL_STRING);
  }
  if (!pdf.equals(ProbDistribution.UNIFORM)) {
    ParameterGetter<Randomizer,Double> lbGetter=null;
    if (NetworkUtils.isConsistent(randomizers,lbGetter)) {
      tfLowBound.setText(Double.toString(rand.getLowerBound()));
    }
 else {
      tfLowBound.setText(SimbrainConstants.NULL_STRING);
    }
    ParameterGetter<Randomizer,Double> ubGetter=null;
    if (NetworkUtils.isConsistent(randomizers,ubGetter)) {
      tfUpBound.setText(Double.toString(rand.getUpperBound()));
    }
 else {
      tfUpBound.setText(SimbrainConstants.NULL_STRING);
    }
    ParameterGetter<Randomizer,Boolean> clippingGetter=null;
    if (NetworkUtils.isConsistent(randomizers,clippingGetter)) {
      tsClipping.setSelected(rand.getClipping());
    }
 else {
      tsClipping.setNull();
    }
  }
}

public void fillFieldValues ( final ArrayList < Randomizer > randomizers ) { Randomizer rand = ( Randomizer ) randomizers . get ( 0 ) ; ParameterGetter < Randomizer , Double > p1Getter = null ; if ( NetworkUtils . isConsistent ( randomizers , p1Getter ) ) { tfParam1 . setText ( Double . toString ( rand . getParam1 ( ) ) ) ; } else { tfParam1 . setText ( SimbrainConstants . NULL_STRING ) ; } ParameterGetter < Randomizer , Double > p2Getter = null ; if ( NetworkUtils . isConsistent ( randomizers , p2Getter ) ) { tfParam2 . setText ( Double . toString ( rand . getParam2 ( ) ) ) ; } else { tfParam2 . setText ( SimbrainConstants . NULL_STRING ) ; } if ( ! pdf . equals ( ProbDistribution . UNIFORM ) ) { ParameterGetter < Randomizer , Double > lbGetter = null ; if ( NetworkUtils . isConsistent ( randomizers , lbGetter ) ) { tfLowBound . setText ( Double . toString ( rand . getLowerBound ( ) ) ) ; } else { tfLowBound . setText ( SimbrainConstants . NULL_STRING ) ; } ParameterGetter < Randomizer , Double > ubGetter = null ; if ( NetworkUtils . isConsistent ( randomizers , ubGetter ) ) { tfUpBound . setText ( Double . toString ( rand . getUpperBound ( ) ) ) ; } else { tfUpBound . setText ( SimbrainConstants . NULL_STRING ) ; } ParameterGetter < Randomizer , Boolean > clippingGetter = null ; if ( NetworkUtils . isConsistent ( randomizers , clippingGetter ) ) { tsClipping . setSelected ( rand . getClipping ( ) ) ; } else { tsClipping . setNull ( ) ; } } }
populates the fields with current values .
