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 023 /** 024 * RADIO2 エãƒ?‚£ã‚¿ãƒ¼ã¯ã€ã‚«ãƒ©ãƒ??ãƒ??ã‚¿ã‚’ãƒã‚§ãƒ?‚¯ãƒœãƒƒã‚¯ã‚¹ã§ç·¨é›?™ã‚‹å?åˆã«ä½¿ç”¨ã™ã‚‹ã‚¯ãƒ©ã‚¹ã§ã™ã? 025 * 026 * ã“ã?エãƒ?‚£ã‚¿ãƒ¼ã¯ã€RADIOã¨ã¯ç•°ãªã‚Šã?コードリソースã§ã®åˆ¶å¾¡ãªã©ã€ãƒ©ã‚¸ã‚ªãƒœã‚¿ãƒ³ç‰¹æœ‰ã?制御をå?ã行ã„ã¾ã›ã‚“ã€? 027 * 特性ã¨ã—ã¦ã¯ã€typeãŒradioã§ã‚ã‚‹ã¨ã?†1点を除ã?¦ã€TEXT エãƒ?‚£ã‚¿ãƒ¼ã¨åŒã˜ã§ã? 028 * 029 * カラãƒ??表示ã«å¿?¦ãªå±žæ?ã¯, DBColumn オブジェクãƒ?よりå–り出ã—ã¾ã™ã? 030 * ã“ã?クラスã¯ã€DBColumn オブジェクト毎ã«?‘ã¤ä½œæ?ã•れã¾ã™ã? 031 * 032 * @og.group ãƒ??ã‚¿ç·¨é›? 033 * 034 * @version 4.0 035 * @author Hiroki Nakamura 036 * @since JDK5.0, 037 */ 038 public class Editor_RADIO2 extends AbstractEditor { 039 //* ã“ã?プãƒã‚°ãƒ©ãƒ??VERSIONæ–?—å?ã‚’è¨å®šã—ã¾ã™ã? {@value} */ 040 private static final String VERSION = "5.1.8.0 (2010/07/01)" ; 041 042 /** 043 * ãƒ?ƒ•ォルトコンストラクターã€? 044 * ã“ã?コンストラクターã§ã€åŸºæœ¬ã‚ªãƒ–ジェクトを作æ?ã—ã¾ã™ã? 045 * 046 */ 047 public Editor_RADIO2() { 048 return ; // Document empty constructor 対ç? 049 } 050 051 /** 052 * コンストラクターã€? 053 * 054 * @param clm DBColumnオブジェクãƒ? 055 */ 056 private Editor_RADIO2( final DBColumn clm ) { 057 super( clm ); 058 attributes.set( "type", "radio" ); 059 tagBuffer.add( XHTMLTag.inputAttri( attributes ) ); 060 } 061 062 /** 063 * å?‚ªãƒ–ジェクトã‹ã‚‰è?åˆ??インスタンスを返ã—ã¾ã™ã? 064 * 自åˆ??身をã‚ャãƒ?‚·ãƒ¥ã™ã‚‹ã®ã‹ã?æ–°ãŸã«ä½œæ?ã™ã‚‹ã®ã‹ã?ã€å„サブクラスã®å®Ÿè£?« 065 * ã¾ã‹ã•れã¾ã™ã? 066 * 067 * @param clm DBColumnオブジェクãƒ? 068 * 069 * @return CellEditorオブジェクãƒ? 070 */ 071 public CellEditor newInstance( final DBColumn clm ) { 072 return new Editor_RADIO2( clm ); 073 } 074 }