Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
public boolean acceptsNativeType(int type) { // we can handle any type return true; } |
...
Anchor | ||||
---|---|---|---|---|
|
public abstract String render(Object value, int renderType) throws Exception;
...
Code Block | ||
---|---|---|
| ||
public String render(Object value, int renderType) throws Exception { if (value == null) return null if (renderType == RENDER_LINK) // Render the value for a drill-through link. // In this case you almost always want to return a generic // representation of the value. return value.toString(); } // Return the formatted value return "Value: " + value.toString(); } |
...
Anchor | ||||
---|---|---|---|---|
|
public boolean returnsHtml();
Return This will return true if valuesreturned the values returned by the formatter include HTML, and false otherwise. By default this function returns false.
...
Anchor | ||||
---|---|---|---|---|
|
...