org.opengion.plugin.column
クラス Renderer_ICON
java.lang.Object
org.opengion.hayabusa.db.AbstractRenderer
org.opengion.plugin.column.Renderer_ICON
- すべての実装されたインタフェース:
- CellRenderer
public class Renderer_ICON
- extends AbstractRenderer
ICON レンデラーは、カラムのファイル名の拡張子からアイコンファイルのイメージタグを作成します。
イメージデータは、jsp/image/thumb を使用します。
実質的には、アイコンではなく、サムネイルとして利用します。
縦横比をそのままに、縦か横の最大値に画像サイズを合わせるには、
style="max-width:100; max-height:100;" をセットすることで対応できます。
class="ICON" 属性を出力しておきますので、CSSファイルで記述してください。
(例:)
<style type="text/css">
img.ICON { max-width:100px; max-height:100px; }
</style>
このクラスは、不変オブジェクトとして、共有されます。
- 変更履歴:
5.6.5.1 (2013/06/14) 新規作成 |
- 機能分類
- データ表示
- バージョン
- 4.0
- 作成者
- Kazuhiko Hasegawa
- 導入されたバージョン:
- JDK5.0,
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Renderer_ICON
public Renderer_ICON()
newInstance
public CellRenderer newInstance(DBColumn clm)
- 各オブジェクトから自分のインスタンスを返します。
自分自身をキャッシュするのか、新たに作成するのかは、各サブクラスの実装に
まかされます。
- パラメータ:
clm
- DBColumnオブジェクト
- 戻り値:
- CellRendererオブジェクト
getValue
public String getValue(String value)
- データの表示用文字列を返します。
- 定義:
- インタフェース
CellRenderer
内の getValue
- オーバーライド:
- クラス
AbstractRenderer
内の getValue
- パラメータ:
value
- 入力値
- 戻り値:
- データの表示用文字列
Webアプリケーションフレームワーク openGion
Copyright (c) 2009 The openGion Project.