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 */ 016package org.opengion.plugin.column; 017 018import org.opengion.hayabusa.db.CellEditor; 019import org.opengion.hayabusa.db.DBColumn; 020 021/** 022 * カラムã®ç·¨é›†ãƒ‘ラメーターã®é–‹å§‹ã€çµ‚了ã€ã‚¹ãƒ†ãƒƒãƒ—ã®æƒ…å ±ã‚ˆã‚Šã€ãƒ—ルダウンメニューを作æˆã—㦠023 * 編集ã™ã‚‹å ´åˆã«ä½¿ç”¨ã™ã‚‹ã‚¨ãƒ‡ã‚£ã‚¿ãƒ¼ã‚¯ãƒ©ã‚¹ã§ã™ã€‚ 024 * 025 * ã“ã“ã§ã¯ã€æ•°å—(連番)ã®è‡ªå‹•ç”Ÿæˆã‚’è¡Œã„ã¾ã™ã€‚パラメータã§ã€é–‹å§‹ã€çµ‚了ã€ã‚¹ãƒ†ãƒƒãƒ—を指定ã—ã¾ã™ã€‚ 026 * パラメータã®åˆæœŸå€¤ã¯ã€é–‹å§‹(1)ã€çµ‚了(10)ã€ã‚¹ãƒ†ãƒƒãƒ—(1) ã§ã™ã€‚ 027 * 028 * 例:1,10,1 → 1,2,3,4,5,6,7,8,9,10 ã®ãƒ—ルダウン 029 * 例:10,100,10 → 10,20,30,40,50,60,70,80,90,100 ã®ãƒ—ルダウン 030 * 例:-5,5,1 → -5,-4,-3,-2,-1,0,1,2,3,4,5 ã®ãƒ—ルダウン 031 * 例:5,-5,-2 → 5,3,1,-1,-3,-5 ã®ãƒ—ルダウン 032 * 033 * カラムã®è¡¨ç¤ºã«å¿…è¦ãªå±žæ€§ã¯ã€DBColumn オブジェクト よりå–り出ã—ã¾ã™ã€‚ 034 * ã“ã®ã‚¯ãƒ©ã‚¹ã¯ã€DBColumn オブジェクト毎ã«ï¼‘ã¤ä½œæˆã•ã‚Œã¾ã™ã€‚ 035 * 036 * @og.rev 7.3.1.1 (2021/02/25)ゼãƒåŸ‹ã‚や少数フォーマットを自動判定ã™ã‚‹ã€‚ 037 * 例:000,020,5 → 000,005,010,015,020 ã®ãƒ—ルダウン 038 * 例:0.00,1.00,0.2 → 0.00,0.20,0.40,0.60,0.80,1.00 ã®ãƒ—ルダウン 039 * 040 * 開始をゼãƒåŸ‹ã‚指定ã—ãŸå ´åˆã¯ã€ãã®æ¡æ•°ã«å¿œã˜ã¦ã€å‰ã‚¼ãƒåŸ‹ã‚ã—ã¾ã™ã€‚ 041 * 少数点ã®é–‹å§‹ã®å ´åˆã¯ã€ãã®æ¡æ•°ã«åˆã‚ã›ã¦ã€å¾Œã‚ゼãƒåŸ‹ã‚ã—ã¾ã™ã€‚ 042 * å°æ•°ç‚¹ã®å‰ã‚¼ãƒåŸ‹ã‚ã¯ã€ã‚µãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã›ã‚“。 043 * 044 * @og.rev 5.6.1.1 (2013/02/08) æ–°è¦ä½œæˆ 045 * @og.group データ編集 046 * 047 * @version 4.0 048 * @author Kazuhiko Hasegawa 049 * @since JDK5.0, 050 */ 051public class Editor_NUMMENU extends Editor_MENU { 052 /** ã“ã®ãƒ—ãƒã‚°ãƒ©ãƒ ã®VERSIONæ–‡å—列をè¨å®šã—ã¾ã™ã€‚ {@value} */ 053 private static final String VERSION = "6.4.2.0 (2016/01/29)" ; 054 055 /** 056 * デフォルトコンストラクター 057 * 058 * @og.rev 6.4.2.0 (2016/01/29) PMD refactoring. Each class should declare at least one constructor. 059 */ 060 public Editor_NUMMENU() { super(); } // ã“れもã€è‡ªå‹•çš„ã«å‘¼ã°ã‚Œã‚‹ãŒã€ç©ºã®ãƒ¡ã‚½ãƒƒãƒ‰ã‚’作æˆã™ã‚‹ã¨è¦å‘Šã•ã‚Œã‚‹ã®ã§ã€æ˜Žç¤ºçš„ã«ã—ã¦ãŠãã¾ã™ã€‚ 061 062 /** 063 * å„オブジェクトã‹ã‚‰è‡ªåˆ†ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’è¿”ã—ã¾ã™ã€‚ 064 * 自分自身をã‚ャッシュã™ã‚‹ã®ã‹ã€æ–°ãŸã«ä½œæˆã™ã‚‹ã®ã‹ã¯ã€å„サブクラスã®å®Ÿè£…ã« 065 * ã¾ã‹ã•ã‚Œã¾ã™ã€‚ 066 * 067 * @og.rev 6.0.4.0 (2014/11/28) サブクラス㧠タイプを指定ã™ã‚‹ãŸã‚ã®å¯¾å¿œ 068 * 069 * @param clm DBColumnオブジェクト 070 * 071 * @return CellEditorオブジェクト 072 * @og.rtnNotNull 073 */ 074 @Override 075 public CellEditor newInstance( final DBColumn clm ) { 076 return new Editor_MENU( clm,"NUM" ); 077 } 078}