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 * HTMLのメニューやリストを作成するためのオプションタグを作成したり、
026 * 与えられたキーをもとに、チェック済みのオプションタグを作成したりします。
027 * ラベル にスペースを含ませる場合は、ダブルクォーテーションで囲ってください。
028 *
029 * カラムの表示に必要な属性は, DBColumn オブジェクト より取り出します。
030 * このクラスは、DBColumn オブジェクト毎に1つ作成されます。
031 *
032 * @og.rev 7.2.4.0 (2020/05/11) 新規追加
033 * @og.group データ編集
034 *
035 * @version  7.1
036 * @author   Kazuhiko Hasegawa
037 * @since    JDK11.0,
038 */
039public class Editor_FILES extends Editor_MENU {
040        /** このプログラムのVERSION文字列を設定します。   {@value} */
041        private static final String VERSION = "7.2.4.0 (2020/05/11)" ;
042
043        /**
044         * デフォルトコンストラクター
045         *
046         * @og.rev 7.2.4.0 (2020/05/11) 新規追加
047         */
048        public Editor_FILES() { super(); }              // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
049
050        /**
051         * 各オブジェクトから自分のインスタンスを返します。
052         * 自分自身をキャッシュするのか、新たに作成するのかは、各サブクラスの実装に
053         * まかされます。
054         *
055         * @og.rev 7.2.4.0 (2020/05/11) 新規追加
056         *
057         * @param       clm     DBColumnオブジェクト
058         *
059         * @return      CellEditorオブジェクト
060         * @og.rtnNotNull
061         */
062        @Override
063        public CellEditor newInstance( final DBColumn clm ) {
064                return new Editor_MENU( clm,"FILES" );
065        }
066}