...
Code Block | ||
---|---|---|
| ||
public boolean returnsHtml() { return true; } public String render(Object value, int renderType) throws Exception { if (value == null) return null; if (renderType == RENDER_LINK) { return value.toString(); } else if (renderType == RENDER_HTML) { return "<b>" + value.toString() + "</b>"; } else { // rendering to non-html output return value.toString(); } } |
その他の例
数値を使用して、通貨値として書式設定をするカスタムフォーマッターの完全な例は、こちらを参照してください。数値を使用して、通貨値として書式設定をするカスタムフォーマッターの完全な例は、こちらを参照してください。
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|