public void fillFieldValues(final ArrayList<Randomizer> randomizers){
  ParameterGetter<Randomizer,ProbDistribution> pdfGetter=null;
  if (!NetworkUtils.isConsistent(randomizers,pdfGetter)) {
    if (!(cbDistribution.getItemCount() == ProbDistribution.values().length)) {
      cbDistribution.addItem(ProbDistribution.NULL);
      cbDistribution.setSelectedIndex(cbDistribution.getItemCount() - 1);
    }
    cardPanel.removeAll();
    cardPanel.add(new JPanel());
    cardPanel.repaint();
    if (parent != null) {
      parent.pack();
      parent.setLocationRelativeTo(null);
    }
  }
 else {
    if (cbDistribution.getItemCount() == ProbDistribution.values().length) {
      cbDistribution.removeItem(ProbDistribution.NULL);
    }
    Randomizer rand=(Randomizer)randomizers.get(0);
    ProbDistPanel rp=cardMap.get(rand.getPdf());
    cbDistribution.setSelectedItem(rand.getPdf());
    rp.fillFieldValues(randomizers);
    cardPanel.removeAll();
    cardPanel.add(rp.getPanel());
    cardPanel.repaint();
    if (parent != null) {
      parent.pack();
      parent.setLocationRelativeTo(null);
    }
  }
}

public void fillFieldValues ( final ArrayList < Randomizer > randomizers ) { ParameterGetter < Randomizer , ProbDistribution > pdfGetter = null ; if ( ! NetworkUtils . isConsistent ( randomizers , pdfGetter ) ) { if ( ! ( cbDistribution . getItemCount ( ) == ProbDistribution . values ( ) . length ) ) { cbDistribution . addItem ( ProbDistribution . NULL ) ; cbDistribution . setSelectedIndex ( cbDistribution . getItemCount ( ) - 1 ) ; } cardPanel . removeAll ( ) ; cardPanel . add ( new JPanel ( ) ) ; cardPanel . repaint ( ) ; if ( parent != null ) { parent . pack ( ) ; parent . setLocationRelativeTo ( null ) ; } } else { if ( cbDistribution . getItemCount ( ) == ProbDistribution . values ( ) . length ) { cbDistribution . removeItem ( ProbDistribution . NULL ) ; } Randomizer rand = ( Randomizer ) randomizers . get ( 0 ) ; ProbDistPanel rp = cardMap . get ( rand . getPdf ( ) ) ; cbDistribution . setSelectedItem ( rand . getPdf ( ) ) ; rp . fillFieldValues ( randomizers ) ; cardPanel . removeAll ( ) ; cardPanel . add ( rp . getPanel ( ) ) ; cardPanel . repaint ( ) ; if ( parent != null ) { parent . pack ( ) ; parent . setLocationRelativeTo ( null ) ; } } }
populates the fields with current values .
