Example usage for org.apache.wicket.markup RawMarkup RawMarkup

List of usage examples for org.apache.wicket.markup RawMarkup RawMarkup

Introduction

In this page you can find the example usage for org.apache.wicket.markup RawMarkup RawMarkup.

Prototype

public RawMarkup(final CharSequence string) 

Source Link

Document

Create a RawMarkup element referencing an uninterpreted markup string.

Usage

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

public WicketWriter raw(final CharSequence content) {
    if (content.length() > 0) {
        markups.add(new RawMarkup(content));
    }/*www.  j  a  v  a  2 s.com*/
    return this;
}

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

public WicketWriter raw(final IXHTMLFragmentWriter w) {
    if (!w.isEmpty()) {
        markups.add(new RawMarkup(w.take()));
    }/*  ww  w  .j  av  a2 s . c o m*/
    return this;
}

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

/** Similar to raw(), but perform XML escape on the input. */
public WicketWriter text(final String text) {
    if (text.length() > 0) {
        markups.add(new RawMarkup(xhtml.escText(text, false)));
    }// www  . j av  a2 s .  co m
    return this;
}

From source file:sf.wicklet.wicketext.markup.impl.WicketWriter.java

License:Apache License

/** Similar to text(), but perserve spaces. */
public WicketWriter pre(final String text) {
    if (text.length() > 0) {
        markups.add(new RawMarkup(xhtml.escText(text, true)));
    }//from   ww w .j  a v a2  s  .c  o  m
    return this;
}