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.common.HybsSystem;
019 import org.opengion.hayabusa.common.HybsSystemException;
020 import org.opengion.hayabusa.db.CellEditor;
021 import org.opengion.hayabusa.db.DBColumn;
022 import org.opengion.hayabusa.db.Selection;
023
024 // import org.opengion.hayabusa.db.Selection_NUM; // 5.7.3.0 (2014/02/07) SelectionFactory を使ã?§˜ã«å¤‰æ›´
025 import org.opengion.hayabusa.db.SelectionFactory; // 5.7.3.0 (2014/02/07)
026
027 /**
028 * カラãƒ??ç·¨é›?ƒ‘ラメーターã®é–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?æƒ??よりã€ã?ルãƒ?‚¦ãƒ³ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’作æ?ã—ã¦
029 * ç·¨é›?™ã‚‹å?åˆã«ä½¿ç”¨ã™ã‚‹ã‚¨ãƒ?‚£ã‚¿ãƒ¼ã‚¯ãƒ©ã‚¹ã§ã™ã?
030 *
031 * ã“ã“ã§ã¯ã€æ•°å—(é?番?‰ã?自動生æˆã‚’行ã„ã¾ã™ã?パラメータã§ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã‚’æŒ?®šã—ã¾ã™ã?
032 * パラメータã®åˆæœŸå€¤ã¯ã€?–‹å§?1)ã€çµ‚äº?10)ã€ã‚¹ãƒ?ƒƒãƒ?1) ã§ã™ã?
033 *
034 * 例ï¼?,10,1 â†?1,2,3,4,5,6,7,8,9,10 ã®ãƒ—ルãƒ?‚¦ãƒ³
035 * 例ï¼?0,100,10 â†?10,20,30,40,50,60,70,80,90,100 ã®ãƒ—ルãƒ?‚¦ãƒ³
036 * 例ï¼?5,5,1 â†?-5,-4,-3,-2,-1,0,1,2,3,4,5 ã®ãƒ—ルãƒ?‚¦ãƒ³
037 * 例ï¼?,-5,-2 â†?5,3,1,-1,-3,-5 ã®ãƒ—ルãƒ?‚¦ãƒ³
038 *
039 * カラãƒ??表示ã«å¿?¦ãªå±žæ?ã¯, DBColumn オブジェクãƒ?よりå–り出ã—ã¾ã™ã?
040 * ã“ã?クラスã¯ã€DBColumn オブジェクト毎ã«?‘ã¤ä½œæ?ã•れã¾ã™ã?
041 *
042 * @og.rev 5.6.1.1 (2013/02/08) æ–°è¦ä½œæ?
043 * @og.group �?タ編�
044 *
045 * @version 4.0
046 * @author Kazuhiko Hasegawa
047 * @since JDK5.0,
048 */
049 public class Editor_NUMMENU extends Editor_MENU {
050 //* ã“ã?プãƒã‚°ãƒ©ãƒ??VERSIONæ–?—å?ã‚’è¨å®šã—ã¾ã™ã? {@value} */
051 private static final String VERSION = "5.7.3.0 (2014/02/07)" ;
052
053 /**
054 * ãƒ?ƒ•ォルトコンストラクターã€?
055 * ã“ã?コンストラクターã§ã€åŸºæœ¬ã‚ªãƒ–ジェクトを作æ?ã—ã¾ã™ã?
056 *
057 */
058 public Editor_NUMMENU() {
059 super();
060 }
061
062 /**
063 * コンストラクター�
064 * ã“ã“ã§ã¯ã€è¦ªã‚¯ãƒ©ã‚¹ã® Editor_MENU ã§åˆæœŸåŒ–を行ã„ã€ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚ªãƒ–ジェクãƒ?ã«ã€?
065 * Selection_NUM を使用ã™ã‚‹ã‚ˆã†ã«å†è¨å®šã—ã¾ã™ã?
066 *
067 * @og.rev 5.7.3.0 (2014/02/07) SelectionFactory 対�
068 *
069 * @param clm DBColumnオブジェク�
070 */
071 private Editor_NUMMENU( final DBColumn clm ) {
072 super( clm );
073
074 // 5.7.3.0 (2014/02/07) SelectionFactory 対�
075 // selection = new Selection_NUM( clm.getEditorParam() );
076 selection = SelectionFactory.newSelection( "NUM", clm.getEditorParam() );
077 }
078
079 /**
080 * å?‚ªãƒ–ジェクトã‹ã‚‰è?åˆ??インスタンスを返ã—ã¾ã™ã?
081 * 自åˆ??身をã‚ャãƒ?‚·ãƒ¥ã™ã‚‹ã®ã‹ã?æ–°ãŸã«ä½œæ?ã™ã‚‹ã®ã‹ã?ã€å„サブクラスã®å®Ÿè£?«
082 * ã¾ã‹ã•れã¾ã™ã?
083 *
084 * @param clm DBColumnオブジェク�
085 *
086 * @return CellEditorオブジェク�
087 */
088 @Override
089 public CellEditor newInstance( final DBColumn clm ) {
090 return new Editor_NUMMENU( clm );
091 }
092 }