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 }