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.AbstractEditor;
021 import org.opengion.hayabusa.db.CellEditor;
022 import org.opengion.hayabusa.db.DBColumn;
023 import org.opengion.hayabusa.db.Selection;
024 import org.opengion.hayabusa.db.Selection_HM;
025
026 /**
027 * カラãƒ??ç·¨é›?ƒ‘ラメーターã®é–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?æƒ??よりã€ã?ルãƒ?‚¦ãƒ³ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’作æ?ã—ã¦
028 * ç·¨é›?™ã‚‹å?åˆã«ä½¿ç”¨ã™ã‚‹ã‚¨ãƒ?‚£ã‚¿ãƒ¼ã‚¯ãƒ©ã‚¹ã§ã™ã?
029 *
030 * ã“ã“ã§ã¯ã€æ™‚é–?æ™?åˆ?¼‰ã?自動生æˆã‚’行ã„ã¾ã™ã?パラメータã§ã€?–‹å§‹ã?終äº??スãƒ?ƒƒãƒ—ã?é–‹å§‹å‰è¨å®šå?ã€çµ‚äº?¾Œè¨å®šå?
031 * を指定ã§ãã¾ã™ã?
032 * ã‚ーã¯ã€?¼”æ–‡å—ã? HHMM å½¢å¼ã§ä¸Žãˆã‚‰ã‚Œã¾ã™ã?ラベルã¯ã€HH:MM ã«ãªã‚Šã¾ã™ã?
033 * スãƒ?ƒƒãƒ—ã?ã€å?å˜ä½ã§ã™ã?
034 * é–‹å§‹å‰è¨å®šå?ã€çµ‚äº?¾Œè¨å®šå?ã¯ãれãžã‚Œã€?–‹å§‹ã?å‰ã¨çµ‚äº??後ã‚ã«ç‰¹åˆ¥ã«å€¤ã‚’è¨å®šã§ãã¾ã™ã?
035 * パラメータã®åˆæœŸå€¤ã¯ã€?–‹å§?0700)ã€çµ‚äº?1900)ã€ã‚¹ãƒ?ƒƒãƒ?30)ã€?–‹å§‹å‰è¨å®šå?(null)ã€çµ‚äº?¾Œè¨å®šå?(null) ã§ã™ã?
036 *
037 * 例ï¼?800,2000,30 â†?0800,0830,0900,0930,1000,・・・1900,1930,2000 ã®ãƒ—ルãƒ?‚¦ãƒ³
038 * 例ï¼?800,2000,30,0000:â–³,2400:â–½ â†?0000,0800,0830,0900,0930,1000,・・・1900,1930,2000,2400 ã®ãƒ—ルãƒ?‚¦ãƒ³
039 *
040 * カラãƒ??表示ã«å¿?¦ãªå±žæ?ã¯, DBColumn オブジェクãƒ?よりå–り出ã—ã¾ã™ã?
041 * ã“ã?クラスã¯ã€DBColumn オブジェクト毎ã«?‘ã¤ä½œæ?ã•れã¾ã™ã?
042 *
043 * @og.rev 5.6.1.1 (2013/02/08) æ–°è¦ä½œæ?
044 * @og.group �?タ編�
045 *
046 * @version 4.0
047 * @author Kazuhiko Hasegawa
048 * @since JDK5.0,
049 */
050 public class Editor_HMMENU extends Editor_MENU {
051 //* ã“ã?プãƒã‚°ãƒ©ãƒ??VERSIONæ–?—å?ã‚’è¨å®šã—ã¾ã™ã? {@value} */
052 private static final String VERSION = "5.6.1.1 (2013/02/08)" ;
053
054 /**
055 * ãƒ?ƒ•ォルトコンストラクターã€?
056 * ã“ã?コンストラクターã§ã€åŸºæœ¬ã‚ªãƒ–ジェクトを作æ?ã—ã¾ã™ã?
057 *
058 */
059 public Editor_HMMENU() {
060 super();
061 }
062
063 /**
064 * コンストラクター�
065 *
066 * ã“ã“ã§ã¯ã€è¦ªã‚¯ãƒ©ã‚¹ã® Editor_MENU ã§åˆæœŸåŒ–を行ã„ã€ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚ªãƒ–ジェクãƒ?ã«ã€?
067 * Selection_HM を使用ã™ã‚‹ã‚ˆã†ã«å†è¨å®šã—ã¾ã™ã?
068 *
069 * @param clm DBColumnオブジェク�
070 */
071 private Editor_HMMENU( final DBColumn clm ) {
072 super( clm );
073
074 selection = new Selection_HM( clm.getEditorParam() );
075 }
076
077 /**
078 * å?‚ªãƒ–ジェクトã‹ã‚‰è?åˆ??インスタンスを返ã—ã¾ã™ã?
079 * 自åˆ??身をã‚ャãƒ?‚·ãƒ¥ã™ã‚‹ã®ã‹ã?æ–°ãŸã«ä½œæ?ã™ã‚‹ã®ã‹ã?ã€å„サブクラスã®å®Ÿè£?«
080 * ã¾ã‹ã•れã¾ã™ã?
081 *
082 * @param clm DBColumnオブジェク�
083 *
084 * @return CellEditorオブジェク�
085 */
086 @Override
087 public CellEditor newInstance( final DBColumn clm ) {
088 return new Editor_HMMENU( clm );
089 }
090 }