Examples of SelectInput


Examples of org.metaworks.inputter.SelectInput

    setName("Max");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Double",
        "Long",
        "String"
      },
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

    setName("Min");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Double",
        "Long",
        "String"
      },
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

  }

  public static void metaworksCallback_changeMetadata(Type type){
   
    FieldDescriptor fd = type.getFieldDescriptor("ToType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Integer",
        "Long",
        "Double"
      },
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

      }
     
    });
   
    fd = type.getFieldDescriptor("TriggeringMethod");
    fd.setInputter(new SelectInput(
        new String[]{
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.byeventbutton", "By Event Button (in web)"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.byapi", "By API invocation"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.whendelegation", "When a participant is delegated"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.whencompensation", "When the scope is compensated"),
View Full Code Here

Examples of org.metaworks.inputter.SelectInput


  public static void metaworksCallback_changeMetadata(Type type) {

    FieldDescriptor fdSequence = type.getFieldDescriptor("Sequence");
    fdSequence.setInputter(new SelectInput(
        new Object[] {"BPM_ACLTABLE", "BPM_PROCDEF", "BPM_PROCDEFVER", "BPM_PROCINST", "BPM_PROCVAR", "BPM_ROLEMAPPING", "BPM_WORKITEM"},
        new Object[] {"ACLTABLE", "PROCDEF", "PROCDEFVER", "PROCINST", "PROCVAR", "ROLEMAPPING", "WORKITEM"})
    );
   
    FieldDescriptor fdType = type.getFieldDescriptor("sequence");
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

  }

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setDisplayName("Number Type");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Double",
        "Integer",
        "Long"
      },
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

          }
        }
      }
      Object [] listFieldTypesInArray = new Object[fieldValues.size()];
      fieldValues.toArray(listFieldTypesInArray);
      fd.setInputter(new SelectInput(listFieldTypesInArray));
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
   
    fd = type.getFieldDescriptor("FieldName");
    fd.setInputter(new SelectInput(new String[]{"Info","Ext1","Ext2","Ext3","Ext4","Ext5","Ext6","Ext7","Ext8","Ext9","Ext10"}));
  }
View Full Code Here

Examples of org.metaworks.inputter.SelectInput

      String[] minutes = new String[61];
      for (int i = 0; i < 60; i++) {
        minutes[i] = String.valueOf(i);
      }
      minutes[60] = "*";
    fd.setInputter(new SelectInput(minutes));
   
    fd = type.getFieldDescriptor("Hour");
      String[] hours = new String[25];
      for (int i = 0; i < 24; i++) {
        hours[i] = String.valueOf(i);
      }
      hours[24] = "*";
    fd.setInputter(new SelectInput(hours));
   
    fd = type.getFieldDescriptor("DayOfMonth");
      String[] dayOfMonth = new String[34];
      int count = 0 ;
      for (int i = 1; i < 32; i++) {
        dayOfMonth[count++] = String.valueOf(i);
      }
      dayOfMonth[31] = "L";
      dayOfMonth[32] = "*";
      dayOfMonth[33] = "?";
    fd.setInputter(new SelectInput(dayOfMonth));
   
    fd = type.getFieldDescriptor("Month");
    fd.setInputter(new SelectInput(new String[] {
        "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "*"
    }));
   
    fd = type.getFieldDescriptor("DayOfWeek");
    fd.setInputter(new SelectInput(new String[] {
        "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", "MON-FRI", "*", "?"
    }));
   
    Calendar c = Calendar.getInstance();
    fd = type.getFieldDescriptor("Year");
      String[] year = new String[51];
      int yearCount = 0;
      year[yearCount++] = "*";
      for (int i = c.get(Calendar.YEAR); i < c.get(Calendar.YEAR) + 50; i++) {
        year[yearCount++] = String.valueOf(i);
      }
    fd.setInputter(new SelectInput(year));
   
  }
View Full Code Here

Examples of org.molgenis.framework.ui.html.SelectInput

    out.println("Step 2: choose filters<br>");
    out.println("<form>");
    out.println("You choose to use the REST interface for retrieval of '" + entity.getClass().getName()
        + "' data. (<a href=\"../find\">back</a>)<br><br> Here you can add filters:<br>");

    SelectInput fieldInput = new SelectInput("field", null);
    fieldInput.setOptions(entity.getFields().toArray(new String[entity.getFields().size()]));

    SelectInput operatorInput = new SelectInput("operator", null);
    List<String> operators = new ArrayList<String>();
    operators.add(QueryRule.Operator.EQUALS.toString());
    operators.add(QueryRule.Operator.GREATER_EQUAL.toString());
    operators.add(QueryRule.Operator.NOT.toString());
    operators.add(QueryRule.Operator.LESS.toString());
    operators.add(QueryRule.Operator.LESS_EQUAL.toString());
    operators.add(QueryRule.Operator.LIKE.toString());
    operatorInput.setOptions(operators.toArray(new String[operators.size()]));

    StringInput valueInput = new StringInput("value", null);

    out.println(fieldInput.getHtml() + operatorInput.getHtml() + valueInput.getHtml());
    out.println("<br>");

    out.println(fieldInput.getHtml() + operatorInput.getHtml() + valueInput.getHtml());
    out.println("<br>");

    out.println("<input type=\"submit\" value=\"generate url\" onclick=\"generateRestUrl(this.form.elements); return false\">");

    out.println("TIP: notice how the url is bookmarkeable for future downloads!");
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.