Examples of HtmlText


Examples of com.psddev.dari.util.HtmlText

    public void setTitle(String title) {
        if (ObjectUtils.isBlank(title)) {
            removeHeadTag("title");

        } else {
            HtmlText text = new HtmlText();
            List<HtmlNode> children = findOrCreateHeadElement("title").getChildren();

            text.setText(title);
            children.clear();
            children.add(text);
        }

        setMetaProperty("og:title", title);
View Full Code Here

Examples of fitnesse.html.HtmlText

    private String buildEditableLink(String pagePath, String linkBody) {
        return new WikiWordBuilder(sourcePage, pagePath, linkBody).makeEditabeLink(pagePath);
    }
   
    private String formatWikiWord(Symbol symbol) {
      return new HtmlText(formatWikiWord(symbol.getContent(), symbol)).html();
    }
View Full Code Here

Examples of org.vietspider.html.util.HTMLText

  protected List<HTMLNode> searchNodes(HTMLNode node, Name name) {
    List<HTMLNode> refsNode = new ArrayList<HTMLNode>();
    searchNodes(node.iterator(), refsNode, name);
    //    System.out.println("refsnode Size " + refsNode.size());

    HTMLText htmlText = new HTMLText();
    HTMLText.EmptyVerify verify = new HTMLText.EmptyVerify();

    List<HTMLNode> contents = new ArrayList<HTMLNode>();
    htmlText.searchText(contents, node, verify);
    return contents;
  }
View Full Code Here

Examples of org.vietspider.html.util.HTMLText

  public List<HTMLNode> searchNodes(HTMLNode node, Name name) {
    List<HTMLNode> refsNode = new ArrayList<HTMLNode>();
    searchNodes(node.iterator(), refsNode, name);

    HTMLText htmlText = new HTMLText();
    HTMLText.EmptyVerify verify = new HTMLText.EmptyVerify();

    List<HTMLNode> contents = new ArrayList<HTMLNode>();
    htmlText.searchText(contents, node, verify);

    return contents;
  }
View Full Code Here

Examples of org.vietspider.html.util.HTMLText

public class ImageDescRemover extends NodeRemover {
 
  public List<HTMLNode> removeDesc(HTMLNode root) {
    List<HTMLNode> values = new ArrayList<HTMLNode>();
   
    HTMLText textUtils = new HTMLText();
   
    List<HTMLNode> images = nodeUtil.search(root, Name.IMG);
    for(int i = 0; i < images.size(); i++) {
      HTMLNode image = images.get(i);
      HTMLNode parent  = searchUpper(image, Name.TABLE);
      if(parent != null) {
        textUtils.searchText(values, handleTable(parent, image));
//        addValues(handleTable(parent, image), values);
        continue;       
      }
     
      parent  = searchUpper(image, Name.DIV, Name.CENTER);
      if(parent != null) {
        if(isValidText(parent, 3)) {
          textUtils.searchText(values, parent);
//          addValues(parent, values);
        }
      }
    }
   
View Full Code Here

Examples of org.vietspider.html.util.HTMLText

    HTMLNode maxNodeContent = null;

    List<HTMLNode> contents = new ArrayList<HTMLNode>();
    CharacterUtil characterUtil = new CharacterUtil();
   
    HTMLText htmlText = new HTMLText();
   
    short selectType = PathConfirmDialog.YES;
    boolean traverse = false;
    for(HTMLNode ele : commons) {
      contents.clear();
      htmlText.searchText(contents, ele);
      int count = countText(characterUtil, contents);

      if(count > maxCountContent) {
        maxCountContent = count;
        maxNodeContent = ele;
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlText

                                    RenderUtils.getResourceString(enumerationBundle, CLASS_NAME
                                            + DurationFieldType.millis().getName() + SHORT));
                }
                result.append(periodFormatterBuilder.toFormatter().print(period));
            }
            return new HtmlText(result.toString());
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlText

        return new Layout() {
            @Override
            public HtmlComponent createComponent(Object unfiltered, Class type) {
                List<MetaObject> contacts = getFilteredContacts((Collection<PartyContact>) unfiltered);
                if (contacts.isEmpty()) {
                    return new HtmlText();
                }
                HtmlList list = new HtmlList();
                list.setClasses(getClasses());
                for (MetaObject meta : contacts) {
                    HtmlListItem item = list.createItem();
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlText

                newContext.setProperties(new Properties());
                newContext.setRenderMode(RenderMode.OUTPUT);

                container.addChild(getScript());
                container.addChild(input);
                container.addChild(new HtmlText("<br/>", false));
                HtmlText text =
                        new HtmlText(RenderUtils.getResourceString("RENDERER_RESOURCES",
                                "renderers.label.tags.are.space.separated"));
                text.setClasses(getTextClasses());
                container.addChild(text);
                container.addChild(RenderKit.getInstance().renderUsing(tagCloud, newContext, tagList, tagList.getClass()));

                return container;
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlText

            @Override
            public HtmlComponent createComponent(Object object, Class type) {
                if (object != null) {
                    final Number number = ((Money) object).getAmount();
                    return new HtmlText(new DecimalFormat(getFormat()).format(number));
                } else {
                    return new HtmlText("");
                }
            }
        };
    }
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.