Examples of TextContent


Examples of com.google.gdata.model.atom.TextContent

        xw.startElement(Namespaces.rssNs, "image", null, null);
        xw.simpleElement(Namespaces.rssNs, "url", null,
            String.valueOf(e.getTextValue()));

        TextContent title = source.getTitle();
        if (title != null) {
          xw.simpleElement(Namespaces.rssNs, "title", null,
              title.getPlainText());
        }
        Link htmlLink = source.getHtmlLink();
        if (htmlLink != null) {
          xw.simpleElement(Namespaces.rssNs, "link", null, htmlLink.getHref());
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

    private final TextContent content;

    public HelpView(final String name, final String description, final String help) {
        super(new NullContent());
        final String text = (name == null || name.trim().equals("") ? "" : (name + "\n")) + (description == null || description.trim().equals("") ? "" : (description + "\n")) + (help == null ? "" : help);
        content = new TextContent(this, 10, TextContent.WRAPPING);
        content.setText(text);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

        setTextWidth(typicalLength);

        this.maxLength = content.getMaximumLength();
        this.useEmptyLines = useEmptyLines;

        textContent = new TextContent(this, 1, wrapStyle, this.useEmptyLines);
        cursor = new CursorPosition(textContent, 0, 0);
        selection = new TextSelection(textContent);
        final ObjectAdapter value = getValue();
        textContent.setText(value == null ? "" : titleString(value));
        cursor.home();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

        setTextWidth(typicalLength);

        this.maxLength = content.getMaximumLength();
        this.useEmptyLines = useEmptyLines;

        textContent = new TextContent(this, 1, wrapStyle, this.useEmptyLines);
        cursor = new CursorPosition(textContent, 0, 0);
        selection = new TextSelection(textContent);
        final ObjectAdapter value = getValue();
        textContent.setText(value == null ? "" : titleString(value));
        cursor.home();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

    private final TextContent content;

    public HelpView(final String name, final String description, final String help) {
        super(new NullContent());
        final String text = (name == null || name.trim().equals("") ? "" : (name + "\n")) + (description == null || description.trim().equals("") ? "" : (description + "\n")) + (help == null ? "" : help);
        content = new TextContent(this, 10, TextContent.WRAPPING);
        content.setText(text);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

        super(new NullContent());
        final String text =
            (name == null || name.trim().equals("") ? "" : (name + "\n"))
                + (description == null || description.trim().equals("") ? "" : (description + "\n"))
                + (help == null ? "" : help);
        content = new TextContent(this, 10, TextContent.WRAPPING);
        content.setText(text);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.text.TextContent

        setTextWidth(typicalLength);

        this.maxLength = content.getMaximumLength();
        this.useEmptyLines = useEmptyLines;

        textContent = new TextContent(this, 1, wrapStyle, this.useEmptyLines);
        cursor = new CursorPosition(textContent, 0, 0);
        selection = new TextSelection(textContent);
        final ObjectAdapter value = getValue();
        textContent.setText(value == null ? "" : titleString(value));
        cursor.home();
View Full Code Here

Examples of org.apache.wicket.protocol.http.documentvalidation.TextContent

    Tag html = new Tag("html");
    Tag head = new Tag("head");
    html.addExpectedChild(head);
    Tag title = new Tag("title");
    head.addExpectedChild(title);
    title.addExpectedChild(new TextContent("Paged Table Page"));
    Tag body = new Tag("body");
    html.addExpectedChild(body);

    Tag ulTable = new Tag("ul");
    ulTable.addExpectedChild(new Tag("li").addExpectedChild(new Tag("span").addExpectedChild(new TextContent(
      "one"))));
    ulTable.addExpectedChild(new Tag("li").addExpectedChild(new Tag("span").addExpectedChild(new TextContent(
      "two"))));
    // note that we DO NOT expect the third element as this is not on the current page
    body.addExpectedChild(ulTable);

    Tag ulNav = new Tag("ul");
    ulNav.addExpectedChild(new Tag("li").addExpectedChild(new Tag("a").addExpectedChild(new Tag(
      "span").addExpectedChild(new TextContent("1")))));
    ulNav.addExpectedChild(new Tag("li").addExpectedChild(new Tag("a").addExpectedChild(new Tag(
      "span").addExpectedChild(new TextContent("2")))));

    body.addExpectedChild(ulNav);

    validator.addRootElement(html);
View Full Code Here

Examples of org.apache.wicket.protocol.http.documentvalidation.TextContent

    Tag html = new Tag("html");
    Tag head = new Tag("head");
    html.addExpectedChild(head);
    Tag title = new Tag("title");
    head.addExpectedChild(title);
    title.addExpectedChild(new TextContent("Attribute Modifier Test Page"));
    Tag body = new Tag("body");
    html.addExpectedChild(body);

    Tag label1 = new Tag("span");
    label1.addExpectedAttribute("class", "label");
    label1.addExpectedChild(new TextContent("Label 1"));
    body.addExpectedChild(label1);

    Tag label2 = new Tag("span");
    label2.addExpectedAttribute("class", "overrideLabel");
    label2.addExpectedChild(new TextContent("Label 2"));
    body.addExpectedChild(label2);

    Tag label3 = new Tag("span");
    label3.addExpectedAttribute("class", "insertLabel");
    label3.addExpectedChild(new TextContent("Label 3"));
    body.addExpectedChild(label3);

    validator.addRootElement(html);
    return validator.isDocumentValid(document);
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.documentvalidation.TextContent

  {
    HtmlDocumentValidator validator = new HtmlDocumentValidator();
    Tag html = new Tag("html");
    Tag body = new Tag("body");
    html.addExpectedChild(body);
    body.addExpectedChild(new TextContent("\\s+"));
    Tag span = new Tag("span");
    body.addExpectedChild(span);
    Tag wicket = new Tag("wicket:panel");
    span.addExpectedChild(wicket);

    wicket.addExpectedChild(new TextContent("\\s*Panel Content"));

    validator.addRootElement(html);
    return validator.isDocumentValid(document);
  }
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.