|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.text.shared.AbstractRenderer<java.lang.Object> com.google.gwt.text.shared.ToStringRenderer
public class ToStringRenderer
A simple renderer that uses Object.toString()
of the object.
Constructor Summary | |
---|---|
ToStringRenderer(java.lang.String textForNull)
Constructs a ToStringRenderer that uses custom textForNull for null
objects. |
Method Summary | |
---|---|
static ToStringRenderer |
instance()
Returns a ToStringRenderer that uses empty string for null objects. |
java.lang.String |
render(java.lang.Object object)
Renders object as plain text. |
Methods inherited from class com.google.gwt.text.shared.AbstractRenderer |
---|
render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToStringRenderer(java.lang.String textForNull)
ToStringRenderer
that uses custom textForNull
for null
objects.
Method Detail |
---|
public static ToStringRenderer instance()
ToStringRenderer
that uses empty string for null
objects.
public java.lang.String render(java.lang.Object object)
Renderer
object
as plain text. Should never throw any exceptions!
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |