Package org.jamesii.gui.utils.parameters.factories

Examples of org.jamesii.gui.utils.parameters.factories.ListParameters


  }

  @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;
View Full Code Here


    List<IProperty> result = new ArrayList<>();

    try {
      if (ListParameters.class.isAssignableFrom(parentClass) && parent != null
          && parent instanceof ListParameters) {
        ListParameters parameters = (ListParameters) parent;
        List<Entry> list = parameters.getList();

        for (int i = 0; i < list.size(); i++) {
          // Entry f = list.get(i);
          result.add(new ListParametersItemProperty(String.valueOf(i), i,
              SimSystem.getRegistry().getClassLoader()
                  .loadClass(parameters.getBaseFactory())));
        }
      }
    } catch (Exception e) {
      SimSystem.report(e);
    }
View Full Code Here

    super(name, plugintype, ListParameters.class);
  }

  @Override
  protected PluginTypeParameters getPluginTypeParameters(ParameterBlock block) {
    return new ListParameters(getBaseFactory(), block);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.utils.parameters.factories.ListParameters

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.