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.hayabusa.html;
017    
018    import org.opengion.hayabusa.db.DBTableModel;
019    import org.opengion.fukurou.util.Attributes;
020    
021    /**
022     * DBTableModelの表示を行うインターフェースです?
023     * ?の表示形式をサポ?トするには、ViewMarker インターフェース?implements した
024     * クラスを作?して、DBTableModel をセ?する?です?
025     * ViewMarker 自体?,Controller クラスよりアクセスされます?
026     *
027     * ViewMarker の実?ラス( implements されたクラス)に対する ?設?たとえ?、HTMLタグなど)
028     * は、???実?ラス毎に設定します?
029     *
030     * @og.group 画面表示
031     *
032     * @version  4.0
033     * @author   Kazuhiko Hasegawa
034     * @since    JDK5.0,
035     */
036    public interface ViewMarker {
037    
038            /**
039             * ?をクリア(初期?します?
040             *
041             */
042            void clear() ;
043    
044            /**
045             * カラ?対するマ?カーアトリビュートをセ?します?
046             *
047             * @og.rev 4.0.0.0 (2005/08/31) 同?ラ???登録を許可します?
048             *
049             * @param       attri   リンクアトリビュー?
050             */
051            void addAttribute( Attributes attri ) ;
052    
053            /**
054             * ?に DBTableModel をセ?します?
055             *
056             * @param  table DBTableModelオブジェク?
057             */
058            void setDBTableModel( DBTableModel table ) ;
059    
060            /**
061             * ??行?に対するマ?カー??を返します?
062             * こ?値は,すでにマ?カー??処?れて?為, RendererValue で
063             * 変換する??ありません?
064             * 引数の value はそ?カラ??値として利用されます?こ?値は、修飾済みの
065             * 値を与えることが可能です?
066             *
067             * @param   row ???
068             * @param   column ???
069             * @param   value カラ??値
070             *
071             * @return  row行,colum?のマ?カー??
072             */
073            String getMarkerString( int row,int column,String value ) ;
074    }