Package org.goobi.api.display

Examples of org.goobi.api.display.Item


        for (int j = 0; j <= type; j++) {
          String myElementName = config.getString("ruleSet.context(" + i + ").select1(" + j + ")[@tns:ref]");
          if (myElementName.equals(elementName)) {
            int item = config.getMaxIndex("ruleSet.context(" + i + ").select1(" + j + ").item");
            for (int k = 0; k <= item; k++) {
              Item myItem = new Item(config.getString("ruleSet.context(" + i + ").select1(" + j + ").item(" + k + ").label"), // the
                                                                      // displayed
                                                                      // value
                  config.getString("ruleSet.context(" + i + ").select1(" + j + ").item(" + k + ").value"), // the
                                                                // internal
                                                                // value,
View Full Code Here


          String myElementName = config.getString("ruleSet.context(" + i + ").select(" + j + ")[@tns:ref]");
          if (myElementName.equals(elementName)) {
            int item = config.getMaxIndex("ruleSet.context(" + i + ").select(" + j + ").item");

            for (int k = 0; k <= item; k++) {
              Item myItem = new Item(config.getString("ruleSet.context(" + i + ").select(" + j + ").item(" + k + ").label"), // the
                                                                      // displayed
                                                                      // value
                  config.getString("ruleSet.context(" + i + ").select(" + j + ").item(" + k + ").value"), // the
                                                              // internal
                                                              // value,
View Full Code Here

        int type = config.getMaxIndex("ruleSet.context(" + i + ").input");

        for (int j = 0; j <= type; j++) {
          String myElementName = config.getString("ruleSet.context(" + i + ").input(" + j + ")[@tns:ref]");
          if (myElementName.equals(elementName)) {
            Item myItem = new Item(config.getString("ruleSet.context(" + i + ").input(" + j + ").label"), // the
                                                            // displayed
                                                            // value
                config.getString("ruleSet.context(" + i + ").input(" + j + ").label"), false);
            listOfItems.add(myItem);
          }
View Full Code Here

        int type = config.getMaxIndex("ruleSet.context(" + i + ").textarea");

        for (int j = 0; j <= type; j++) {
          String myElementName = config.getString("ruleSet.context(" + i + ").textarea(" + j + ")[@tns:ref]");
          if (myElementName.equals(elementName)) {
            Item myItem = new Item(config.getString("ruleSet.context(" + i + ").textarea(" + j + ").label"), // the displayed value
                config.getString("ruleSet.context(" + i + ").textarea(" + j + ").label"), false);
            listOfItems.add(myItem);
          }
        }
      }
View Full Code Here

        int type = config.getMaxIndex("ruleSet.context(" + i + ").readonly");

        for (int j = 0; j <= type; j++) {
          String myElementName = config.getString("ruleSet.context(" + i + ").readonly(" + j + ")[@tns:ref]");
          if (myElementName.equals(elementName)) {
            Item myItem = new Item(config.getString("ruleSet.context(" + i + ").readonly(" + j + ").label"), // the
                                                            // displayed
                                                            // value
                config.getString("ruleSet.context(" + i + ").readonly(" + j + ").label"), false);
            listOfItems.add(myItem);
          }
View Full Code Here

    ArrayList<Item> values = new ArrayList<Item>();
    synchronized (this.allValues) {
      if (this.allValues.isEmpty() && config != null) {
        getDisplayItems();
      } else if (config == null) {
        values.add(new Item(myelementName, "", false));
        return values;
      }
      HashMap<String, HashMap<String, HashMap<String, ArrayList<Item>>>> bind = this.allValues.get(myproject);
      if (bind.isEmpty()) {
        values.add(new Item(myelementName, "", false));
        return values;
      }
      HashMap<String, HashMap<String, ArrayList<Item>>> itemsByType = bind.get(mybind);
      if (itemsByType.isEmpty()) {
        values.add(new Item(myelementName, "", false));
        return values;
      }
      HashMap<String, ArrayList<Item>> typeList = itemsByType.get(mydisplayType.getTitle());
      if (typeList.isEmpty()) {
        values.add(new Item(myelementName, "", false));
        return values;
      }
      values = typeList.get(myelementName);
      if (values.isEmpty()) {
        values.add(new Item(myelementName, "", false));
        return values;
      }
    }
    return values;
View Full Code Here

TOP

Related Classes of org.goobi.api.display.Item

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.