Package org.jamesii.gui.utils.parameters.list

Examples of org.jamesii.gui.utils.parameters.list.Entry


        // otherwise we assume that we get a list of parameter blocks
        List<ParameterBlock> pbList = (List<ParameterBlock>) newList;

        for (ParameterBlock pblock : pbList) {
          list.add(new Entry(pblock.getValue().toString(), pblock));
        }

      }
    }
View Full Code Here


  @Override
  public Object getValue(Object parent) {
    if (parent instanceof ListParameters) {
      ListParameters params = (ListParameters) parent;
      Entry entry = params.getList().get(index);
      PluginTypeParameters ptp =
          new PluginTypeParameters(params.getBaseFactory(),
              entry.getFactoryName(), entry.getParameters());
      // set instance of ptp as entry's parameterblock since the incoming
      // parameterblock is copied inside
      entry.setParameters(ptp.getAsParameterBlock());
      return ptp;
    }

    return null;
  }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.utils.parameters.list.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.