Examples of addLabel()


Examples of org.apache.lenya.cms.site.SiteNode.addLabel()

                throw new SiteException("Node for path [" + path + "] exists with different UUID!");
            }
        }

        SiteTreeNodeImpl node = addNode(path, doc.getUUID(), true, null, "", false);
        node.addLabel(doc.getLanguage(), "");

        if (node.getLanguages().length == 1) {
            node.setUUID(doc.getUUID());
        }
View Full Code Here

Examples of org.apache.lenya.cms.site.tree.DefaultSiteTree.addLabel()

        ContainerUtil.enableLogging(newSiteTree, getLogger());

        newSiteTree.getRepositoryNode().lock();

        newSiteTree.addNode("/root", "root-uuid", true, null, null, false);
        newSiteTree.addLabel("/root", "en", "root");
        newSiteTree.addNode("/root/foo", "root-foo-uuid", true, null, null, false);
        newSiteTree.addLabel("/root/foo", "en", "foo");
        newSiteTree.addNode("/root/subtree",
                "root-subtree-uuid",
                true,
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.writercache.cl2o.CompactLabelToOrdinal.addLabel()

      if (ord1 == LabelToOrdinal.InvalidOrdinal) {
        ord1 = compact.getNextOrdinal();

        map.addLabel(label, ord1);
        compact.addLabel(label, ord1);
      }
    }

    for (int i = 0; i < numUniqueValues; i++) {
      CategoryPath label = new CategoryPath(uniqueValues[i], '/');
View Full Code Here

Examples of org.apache.lucene.facet.taxonomy.writercache.cl2o.LabelToOrdinal.addLabel()

      assertEquals(ord1, ord2);

      if (ord1 == LabelToOrdinal.InvalidOrdinal) {
        ord1 = compact.getNextOrdinal();

        map.addLabel(label, ord1);
        compact.addLabel(label, ord1);
      }
    }

    for (int i = 0; i < numUniqueValues; i++) {
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.FormData.addLabel()

    String value = getConvertedString(context, component, bean);

    String forId = getForId(context, component, bean);
    FormData fd = arc.getFormData();
    if (fd != null)
      fd.addLabel(forId, value);
   
    String messageType = _getMessageType(context, bean, forId);

    boolean noSpanNeeded =
      ((value == null) &&
View Full Code Here

Examples of org.archive.util.anvl.ANVLRecord.addLabel()

        // TODO: Get all curi metadata.
        // TODO: Use other than ANVL (or rename ANVL as NameValue or use
        // RFC822 (commons-httpclient?).
        ANVLRecord r = new ANVLRecord();
        if (curi.isSeed()) {
            r.addLabel("seed");
        } else {
          if (curi.forceFetch()) {
            r.addLabel("force-fetch");
          }
            if(StringUtils.isNotBlank(flattenVia(curi))) {
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.List.addLabel()

      addSubmissionProgressList(div);
     
      List edit = div.addList("submit-edit-file", List.TYPE_FORM);
        edit.setHead(T_head);   
       
        edit.addLabel(T_file);
        edit.addItem().addXref(fileUrl, fileName);
       
        Text description = edit.addItem().addText("description");
        description.setLabel(T_description);
        description.setHelp(T_description_help);
View Full Code Here

Examples of org.eclipse.mylyn.github.internal.GitHubService.addLabel()

   * issue.
   */
  @Test
  public void addLabel() throws Exception {
    final GitHubService service = new GitHubService();
    final boolean result = service.addLabel(TEST_USER, TEST_PROJECT,
        "lame", 1, new GitHubCredentials(TEST_USER,API_KEY));
    assertTrue(result);
  }

  /**
 
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.layer.LabelStack.addLabel()

        final int selectionLayerColumnPosition = LayerUtil
                .convertColumnPosition(this, columnPosition, selectionLayer);
        if (selectionLayer
                .isColumnPositionFullySelected(selectionLayerColumnPosition)) {
            labelStack
                    .addLabel(SelectionStyleLabels.COLUMN_FULLY_SELECTED_STYLE);
        }

        return labelStack;
    }
View Full Code Here

Examples of org.krysalis.jcharts.chartText.NumericTagGroup.addLabel()

                                // Rounding problems were causing errors
                                //Integer myInteger = new Integer ( Math.round(Math.round((float)(temp / this.axisProperties.getYAxisProperties().getSecondScaleRight()))/10)*10 );
                                //String myString = new String ("");
                                //myString = myInteger.toString();
                                String myString = new String (String.valueOf(Math.round(temp / this.axisProperties.getYAxisProperties().getSecondScaleRight())) );
                                numericTagGroup2.addLabel(myString);
                                j++;
                            }
                            this.yAxis.setAxisLabelsGroupRight(numericTagGroup2);
                        }
    }
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.