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    }