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 }