OSDN Git Service

Ver8.5.2.0
[opengion/opengionV8.git] / uap / webapps / gf / src / org / opengion / plugin / column / Renderer_KVMENU.java
1 /*
2  * Copyright (c) 2009 The openGion Project.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.opengion.plugin.column;
17
18 import org.opengion.hayabusa.db.CellRenderer;
19 import org.opengion.hayabusa.db.DBColumn;
20
21 /**
22  * KVMENU レンデラーは、文字列の 「キー:ラベル キー:ラベル」の情報から、
23  * キーに対するラベルを表示する レンデラークラスです。
24  *
25  * カラムの表示に必要な属性は、DBColumn オブジェクト より取り出します。
26  * このクラスは、DBColumn オブジェクト毎に1つ作成されます。
27  *
28  * @og.rev 6.0.4.0 (2014/11/28) 新規作成
29  * @og.group データ表示
30  *
31  * @version  6.0
32  * @author   Kazuhiko Hasegawa
33  * @since    JDK7.0,
34  */
35 public class Renderer_KVMENU extends Renderer_MENU {
36         /** このプログラムのVERSION文字列を設定します。       {@value} */
37         private static final String VERSION = "6.4.2.0 (2016/01/29)" ;
38
39         /**
40          * デフォルトコンストラクター
41          *
42          * @og.rev 6.4.2.0 (2016/01/29) PMD refactoring. Each class should declare at least one constructor.
43          */
44         public Renderer_KVMENU() { super(); }           // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
45
46         /**
47          * 各オブジェクトから自分のインスタンスを返します。
48          * 自分自身をキャッシュするのか、新たに作成するのかは、各サブクラスの実装に
49          * まかされます。
50          *
51          * @og.rev 6.0.4.0 (2014/11/28) サブクラスで タイプを指定するための対応
52          *
53          * @param       clm     DBColumnオブジェクト
54          *
55          * @return      CellRendererオブジェクト
56          * @og.rtnNotNull
57          */
58         @Override
59         public CellRenderer newInstance( final DBColumn clm ) {
60                 return new Renderer_MENU( clm,"KEYVAL" );
61         }
62 }