30日間の無料評価版をお試しいただけます。

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
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
Column
width40%

前項:フォーマッターの実装

Column
width30%

 

Column
width30%

後項:フォーマッターのパッケージ化

 

horizontalrule
Styleclass
ClasstopLink

ページトップ