001 /*
002 * Copyright (c) 2009 The openGion Project.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied. See the License for the specific language
014 * governing permissions and limitations under the License.
015 */
016 package org.opengion.hayabusa.db;
017
018 /**
019 * DBCell の具象クラスで、カラ????タを表示する場合に使用するクラスです?
020 *
021 * カラ??表示に?な属?は, DBColumn オブジェク?より取り出します?
022 * こ?クラスは、DBColumn オブジェクト毎に?つ作?されます?
023 *
024 * @og.group ??タ表示
025 *
026 * @version 4.0
027 * @author Kazuhiko Hasegawa
028 * @since JDK5.0,
029 */
030 public abstract class AbstractRenderer implements CellRenderer {
031
032 /**
033 * ??タの表示用??を返します?
034 *
035 * @param value 入力?
036 *
037 * @return ??タの表示用??
038 */
039 public String getValue( final String value ) {
040 return value;
041 }
042
043 /**
044 * name属?を変えた???タ表示/編?のHTML??を作?します?
045 * ??ブル上? name に 行番号を付加して、名前_行番号 で登録するキーを作??
046 * リクエスト情報を1つ毎?フィールドで処?きます?
047 *
048 * @param row 行番号
049 * @param value 入力?
050 *
051 * @return ??タ表示/編?の??
052 */
053 public String getValue( final int row,final String value ) {
054 return getValue( value );
055 }
056 }