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 * DBColumn インターフェースで使用されã‚?ãƒ??タ編é›?”¨のインターフェースですã?
020 * 適åˆ?�ª実è£?サブクラス)ã‚?DBColumn に与えることで?Œデータ編é›?–¹法を適å®?
021 * åˆ?‚Š替えることがå?来ますã?
022 *
023 * @og.rev 4.0.0.0 (2006/10/30) 新規追åŠ?
024 * @og.group ãƒ??タ編é›?
025 *
026 * @version 4.0
027 * @author Kazuhiko Hasegawa
028 * @since JDK5.0,
029 */
030 public interface CellEditor {
031
032 /**
033 * ãƒ??タの表示/編é›?”¨æ–?—å?を返しますã?
034 *
035 * @param value 値
036 *
037 * @return ãƒ??タの表示/編é›?”¨æ–?—å?
038 */
039 String getValue( String value ) ;
040
041 /**
042 * name属æ?を変えたã?ãƒ??タ表示/編é›?”¨のHTMLæ–?—å?を作æ?しますã?
043 * ãƒ??ブル上ã? name に 行番号を付加して、名前_行番号 で登録するキーを作æ?ã�?
044 * リクエスト情報を1つ毎ã?フィールドで処ç�?�§きますã?
045 *
046 * @param row 行番号
047 * @param value 値
048 *
049 * @return ãƒ??タ表示/編é›?”¨のæ–?—å?
050 */
051 String getValue( int row,String value ) ;
052
053 /**
054 * å�?‚ªブジェクトからè?åˆ??インスタンスを返しますã?
055 * 自åˆ??身をキャãƒ?‚·ュするのかã?新たに作æ?するのかã?、各サブクラスの実è£?�«
056 * まかされますã?
057 *
058 * @og.rev 3.1.1.1 (2003/04/03) å�?‚ªブジェクトからè?åˆ??インスタンスを返すファクトリメソãƒ?ƒ‰を追åŠ??
059 *
060 * @param clm DBColumnオブジェクãƒ?
061 *
062 * @return DBCellオブジェクãƒ?
063 */
064 CellEditor newInstance( DBColumn clm );
065 }