Examples of addAttribute()


Examples of info.bliki.htmlcleaner.TagNode.addAttribute()

  }

  public void appendExternalImageLink(String imageSrc, String imageAltText) {
    TagNode spanTagNode = new TagNode("span");
    append(spanTagNode);
    spanTagNode.addAttribute("class", "image", true);
    TagNode imgTagNode = new TagNode("img");
    spanTagNode.addChild(imgTagNode);
    imgTagNode.addAttribute("src", imageSrc, true);
    imgTagNode.addAttribute("alt", imageAltText, true);
    // "nofollow" keyword is not allowed for XHTML

Examples of info.bliki.wiki.tags.HTMLTag.addAttribute()

        String pageName = Encoder.normaliseTitle(fPageTitle, true, ' ',
            true);
        // self link?
        if (title.equals(pageName)) {
          HTMLTag selfLink = new HTMLTag("strong");
          selfLink.addAttribute("class", "selflink", false);
          pushNode(selfLink);
          selfLink.addChild(new ContentToken(description));
          popNode();
          return;
        }

Examples of info.bliki.wiki.tags.TableOfContentTag.addAttribute()

   *          <code>true</code> if the __TOC__ keyword was parsed
   */
  public ITableOfContent createTableOfContent(boolean isTOCIdentifier) {
    if (fTableOfContentTag == null) {
      TableOfContentTag tableOfContentTag = new TableOfContentTag("div");
      tableOfContentTag.addAttribute("id", "tableofcontent", true);
      tableOfContentTag.setShowToC(false);
      tableOfContentTag.setTOCIdentifier(isTOCIdentifier);
      fTableOfContentTag = tableOfContentTag;
      this.append(fTableOfContentTag);
    } else {

Examples of info.bliki.wiki.tags.WPATag.addAttribute()

        hrefLink = fExternalWikiBaseURL.replace("${title}", "");
      }
    }

    WPATag aTagNode = new WPATag();
    aTagNode.addAttribute("title", topic, true);
    String href = hrefLink;
    if (hashSection != null) {
      href = href + '#' + encodeTitleDotUrl(hashSection, true);
    }
    aTagNode.addAttribute("href", href, true);

Examples of io.fabric8.api.ProfileBuilder.addAttribute()

        }

        Profile profile = getOrCreateProfile(version, requirements);
        boolean isAbstract = requirements.isAbstractProfile();
        ProfileBuilder builder = ProfileBuilder.Factory.createFrom(profile);
        builder.addAttribute(Profile.ABSTRACT, "" + isAbstract);

        ProjectRequirements oldRequirements = writeRequirementsJson(requirements, profile, builder);
        updateProfileConfiguration(version, profile, requirements, oldRequirements, builder);

        return resolveProfileDeployments(requirements, fabricService.get(), profile, builder);

Examples of io.fabric8.api.VersionBuilder.addAttribute()

            targetVersion = profileService.createVersionFrom(sourceId, versionId, attributes);
            System.out.println("Created version: " + versionId + " as copy of: " + sourceId);
        } else {
            VersionBuilder builder = VersionBuilder.Factory.create(versionId);
            if (description != null) {
                builder.addAttribute(Version.DESCRIPTION, description);
            }
            targetVersion = profileService.createVersion(builder.getVersion());
            System.out.println("Create version: " + versionId);
        }
       

Examples of it.uniroma1.dptu.stan.print.PdfDocPrinter.addAttribute()

    private void printIt() {
  View view = (View)Application.getCurrentView();

  PdfDocPrinter pdp = view.getDocPrinter();
  pdp.addAttribute(
      javax.print.attribute.standard.MediaSizeName.ISO_A4
  );

  try {
      File fPdf = pdp.getOutputFile();

Examples of java.text.AttributedString.addAttribute()

            fastInit(text, font, attributes, frc);
        } else {
            AttributedString as = attributes == null
                ? new AttributedString(string)
                : new AttributedString(string, attributes);
            as.addAttribute(TextAttribute.FONT, font);
            standardInit(as.getIterator(), text, frc);
        }
    }

    /**
 

Examples of javarag.impl.inst.BasicAttributeEvaluator.addAttribute()

  public AttributeEvaluator build(TreeStructure tree) {
    BasicAttributeEvaluator evaluator = new BasicAttributeEvaluator();
    Instantiator instantiator = new Instantiator();
    for (Attribute a : attributes.values()) {
      AttributeHandler handler = a.createHandler(tree, instantiator, true);
      evaluator.addAttribute(handler);
    }
    for (Object o : instantiator.getInstances().values()) {
      ((Module<?>) o).setEvaluator(evaluator);
    }
    return evaluator;

Examples of javassist.bytecode.ClassFile.addAttribute()

        final javassist.bytecode.annotation.Annotation copy = toJavassistAnnotation(annotation);
       
       
        attribute.addAnnotation(copy);
       
        classFile.addAttribute(attribute);
       
    }
   
    private void addMethodAnnotation(final CtMethod ctMethod, final Annotation annotation) {
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.