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 import org.opengion.hayabusa.db.Selection_NUM;
024
025 /**
026 * カラãƒ??編é›?ƒ‘ラメーターの開始ã?終äº??スãƒ?ƒƒプã?æƒ??より、ã?ルãƒ?‚¦ンメニューを作æ?して
027 * 編é›?�™るå?合に使用するエãƒ?‚£タークラスですã?
028 *
029 * ここでは、数字(é?番?‰ã?自動生成を行いますã?パラメータでã€?–‹始ã?終äº??スãƒ?ƒƒプをæŒ?®šしますã?
030 * パラメータの初期値はã€?–‹å§?1)、終äº?10)、スãƒ?ƒƒãƒ?1) ですã?
031 *
032 * 例ï¼?,10,1 â†?1,2,3,4,5,6,7,8,9,10 のプルãƒ?‚¦ン
033 * 例ï¼?0,100,10 â†?10,20,30,40,50,60,70,80,90,100 のプルãƒ?‚¦ン
034 * 例ï¼?5,5,1 â†?-5,-4,-3,-2,-1,0,1,2,3,4,5 のプルãƒ?‚¦ン
035 * 例ï¼?,-5,-2 â†?5,3,1,-1,-3,-5 のプルãƒ?‚¦ン
036 *
037 * カラãƒ??表示にå¿?¦�な属æ?は, DBColumn オブジェクãƒ?より取り出しますã?
038 * こã?クラスは、DBColumn オブジェクト毎に?‘つ作æ?されますã?
039 *
040 * @og.rev 5.6.1.1 (2013/02/08) 新規作æ?
041 * @og.group ãƒ??タ編é›?
042 *
043 * @version 4.0
044 * @author Kazuhiko Hasegawa
045 * @since JDK5.0,
046 */
047 public class Editor_NUMMENU extends Editor_MENU {
048 //* こã?プログラãƒ??VERSIONæ–?—å?を設定しますã? {@value} */
049 private static final String VERSION = "5.6.1.1 (2013/02/08)" ;
050
051 /**
052 * ãƒ?ƒ•ォルトコンストラクターã€?
053 * こã?コンストラクターで、基本オブジェクトを作æ?しますã?
054 *
055 */
056 public Editor_NUMMENU() {
057 super();
058 }
059
060 /**
061 * コンストラクターã€?
062 * ここでは、親クラスの Editor_MENU で初期化を行い、セレクションオブジェクãƒ?にã€?
063 * Selection_NUM を使用するように再設定しますã?
064 *
065 * @param clm DBColumnオブジェクãƒ?
066 */
067 private Editor_NUMMENU( final DBColumn clm ) {
068 super( clm );
069
070 selection = new Selection_NUM( clm.getEditorParam() );
071 }
072
073 /**
074 * å�?‚ªブジェクトからè?åˆ??インスタンスを返しますã?
075 * 自åˆ??身をキャãƒ?‚·ュするのかã?新たに作æ?するのかã?、各サブクラスの実è£?�«
076 * まかされますã?
077 *
078 * @param clm DBColumnオブジェクãƒ?
079 *
080 * @return CellEditorオブジェクãƒ?
081 */
082 @Override
083 public CellEditor newInstance( final DBColumn clm ) {
084 return new Editor_NUMMENU( clm );
085 }
086 }