Examples of StringParameter


Examples of com.barrybecker4.optimization.parameter.types.StringParameter

     */
    @Override
    protected void addChildren() {

        // create a dropdown
        StringParameter sparam = (StringParameter) parameter;
        dropdown = new JComboBox(sparam.getStringValues().toArray());
        dropdown.setName(parameter.getName());
        dropdown.setMaximumSize(new Dimension(200, 20));
        dropdown.setToolTipText(parameter.getName());
        dropdown.addActionListener(this);
        add(dropdown, BorderLayout.CENTER);
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super("ADD_KEY");
    }

    protected KeyResourceDTO execute(SSHKeyType type, String name, String content) throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, name),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, content));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private AddDomainRequest() throws OpenShiftException {
      super("ADD_DOMAIN");
    }

    private DomainResourceDTO execute(String namespace) throws OpenShiftException {
      return execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    protected Parameters scale(ApplicationScale scale) {
      if (scale == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, scale.getValue()));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    protected Parameters gearProfile(IGearProfile gearProfile) {
      if (gearProfile == null) {
        return this;
      }
      return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, gearProfile.getName()));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

   
    protected Parameters add(String name, String value) {
      if (StringUtils.isEmpty(value)) {
        return this;
      }
      return add(new StringParameter(name, value));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private UpdateDomainRequest() throws OpenShiftException {
      super(LINK_UPDATE);
    }

    protected DomainResourceDTO execute(String namespace) throws OpenShiftException {
      return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private DeleteDomainRequest() throws OpenShiftException {
      super(LINK_DELETE);
    }

    protected void execute(boolean force) throws OpenShiftException {
      super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_FORCE, String.valueOf(force)));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super("UPDATE");
    }
   
    protected KeyResourceDTO execute(SSHKeyType type, String publicKey) throws OpenShiftException {
      return execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, publicKey),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super(LINK_START_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_START));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.