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.plugin.column;
017
018 import org.opengion.hayabusa.db.AbstractEditor;
019 import org.opengion.hayabusa.db.CellEditor;
020 import org.opengion.hayabusa.db.DBColumn;
021 import org.opengion.fukurou.util.XHTMLTag;
022 import org.opengion.fukurou.util.Attributes;
023
024 /**
025 * カラãƒ??ãƒ??タをHIDDENで編é›?�™るå?合に使用するエãƒ?‚£タークラスですã?
026 *
027 * つまりã?編é›?�—て欲しくなã�?�Œ、データはã€?£›ã?したã�??合に使用しますã?
028 *
029 * カラãƒ??表示にå¿?¦�な属æ?は, DBColumn オブジェクãƒ?より取り出しますã?
030 * こã?クラスは、DBColumn オブジェクト毎に?‘つ作æ?されますã?
031 *
032 * @og.rev 3.3.3.3 (2003/08/06) 新規作æ?
033 * @og.group ãƒ??タ編é›?
034 *
035 * @version 4.0
036 * @author Kazuhiko Hasegawa
037 * @since JDK5.0,
038 */
039 public class Editor_HIDDEN extends AbstractEditor {
040 //* こã?プログラãƒ??VERSIONæ–?—å?を設定しますã? {@value} */
041 private static final String VERSION = "5.1.7.0 (2010/06/01)" ;
042
043 /**
044 * ãƒ?ƒ•ォルトコンストラクターã€?
045 * こã?コンストラクターで、基本オブジェクトを作æ?しますã?
046 *
047 */
048 public Editor_HIDDEN() {
049 // 4.3.4.4 (2009/01/01)
050 // super();
051 }
052
053 /**
054 * コンストラクターã€?
055 *
056 * @og.rev 3.5.5.7 (2004/05/17) attributes.clear() を追åŠ?
057 * @og.rev 3.5.6.0 (2004/06/18) XHTMLTag の å†?ƒ¨配å? INPUT_KEY を隠蔽しますã?
058 * @og.rev 4.3.6.0 (2009/04/01) eventColumn対å¿?
059 * @og.rev 5.1.7.0 (2010/06/01) 動的プルãƒ?‚¦ン実è£?¦‹直ã�?
060 *
061 * @param clm DBColumnオブジェクãƒ?
062 */
063 private Editor_HIDDEN( final DBColumn clm ) {
064 // super( clm );
065 name = clm.getName();
066 // eventColumn = clm.getEventColumn(); // 4.3.6.0 (2009/04/01)
067 // eventURL = clm.getEventURL(); // 4.3.6.0 (2009/04/01)
068 // editor = clm.getEditor(); // 4.3.6.0 (2009/04/01)
069
070 attributes = new Attributes();
071 attributes.set( "type" ,"hidden" );
072
073 optAttr = null;
074 tagBuffer.add( XHTMLTag.inputAttri( attributes ) );
075 }
076
077 /**
078 * å�?‚ªブジェクトからè?åˆ??インスタンスを返しますã?
079 * 自åˆ??身をキャãƒ?‚·ュするのかã?新たに作æ?するのかã?、各サブクラスの実è£?�«
080 * まかされますã?
081 *
082 * @param clm DBColumnオブジェクãƒ?
083 *
084 * @return CellEditorオブジェクãƒ?
085 */
086 public CellEditor newInstance( final DBColumn clm ) {
087 return new Editor_HIDDEN( clm );
088 }
089 }