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 }