2 * Copyright (c) 2009 The openGion Project.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied. See the License for the specific language
14 * governing permissions and limitations under the License.
16 package org.opengion.plugin.column;
18 import org.opengion.hayabusa.db.CellRenderer;
19 import org.opengion.hayabusa.db.DBColumn;
22 * KVMENU レンデラーは、文字列の 「キー:ラベル キー:ラベル」の情報から、
23 * キーに対するラベルを表示する レンデラークラスです。
25 * カラムの表示に必要な属性は、DBColumn オブジェクト より取り出します。
26 * このクラスは、DBColumn オブジェクト毎に1つ作成されます。
28 * @og.rev 6.0.4.0 (2014/11/28) 新規作成
32 * @author Kazuhiko Hasegawa
35 public class Renderer_KVMENU extends Renderer_MENU {
36 /** このプログラムのVERSION文字列を設定します。 {@value} */
37 private static final String VERSION = "6.4.2.0 (2016/01/29)" ;
42 * @og.rev 6.4.2.0 (2016/01/29) PMD refactoring. Each class should declare at least one constructor.
44 public Renderer_KVMENU() { super(); } // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
47 * 各オブジェクトから自分のインスタンスを返します。
48 * 自分自身をキャッシュするのか、新たに作成するのかは、各サブクラスの実装に
51 * @og.rev 6.0.4.0 (2014/11/28) サブクラスで タイプを指定するための対応
53 * @param clm DBColumnオブジェクト
55 * @return CellRendererオブジェクト
59 public CellRenderer newInstance( final DBColumn clm ) {
60 return new Renderer_MENU( clm,"KEYVAL" );