public class RenderString extends java.lang.Object implements IRender, java.io.Serializable
String that allows the String to be renderred. This is primarily
used to present error messages.| Constructor and Description |
|---|
RenderString(java.lang.String string) |
RenderString(java.lang.String string,
boolean raw) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getString() |
boolean |
isRaw() |
void |
render(IMarkupWriter writer,
IRequestCycle cycle)
Renders the String to the writer.
|
java.lang.String |
toString()
Returns the string that would be rendered.
|
public RenderString(java.lang.String string)
public RenderString(java.lang.String string, boolean raw)
string - the string to renderraw - if true, the String is rendered as-is, with no filtering. If false (the default),
the String is filtered.public void render(IMarkupWriter writer, IRequestCycle cycle)
IMarkupWriter.printRaw(String), otherwise IMarkupWriter.print(String).public java.lang.String getString()
public boolean isRaw()
public java.lang.String toString()
toString in class java.lang.Object