Kagetaka

net.hizlab.kagetaka.token.table
クラス TableAttribute

java.lang.Object
  拡張net.hizlab.kagetaka.token.Attribute
      拡張net.hizlab.kagetaka.token.table.TableAttribute

public class TableAttribute
extends Attribute

TABLE の属性を表すクラスです。

バージョン:
$Revision: 1.2 $

フィールドの概要
 
クラス net.hizlab.kagetaka.token.Attribute から継承したフィールド
columnNumber, document, lineNumber, reporter
 
コンストラクタの概要
protected TableAttribute(Document document, Reporter reporter, int line, int column)
          TABLE の属性をデフォルト値で作成します。
 
メソッドの概要
 int getAlign()
          横方向の配置を返します。
 Color getBgcolor()
          背景色を返します。
 Integer getBorder()
          ボーダー幅を返します。
 Value getCellpadding()
          セル内の余白を返します。
 Value getCellspacing()
          セル間の余白を返します。
 Integer getHspace()
          テーブルの横方向の余白を返します。
 Integer getVspace()
          テーブルの縦方向の余白を返します。
 Value getWidth()
          幅を返します。
 boolean setAttribute(String key, String value)
          指定された属性名と属性値で、属性を設定します。 属性名が存在する場合は true を、 存在しない場合は false を返します。 渡される key は、必ず小文字に変換されています。
 
クラス net.hizlab.kagetaka.token.Attribute から継承したメソッド
getBaseClass, getBaseId, getBaseTitle, getStyle, reportMessage, setBaseAttribute
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TableAttribute

protected TableAttribute(Document document,
                         Reporter reporter,
                         int line,
                         int column)
TABLE の属性をデフォルト値で作成します。

パラメータ:
document - ドキュメント情報
reporter - エラーレポータ
line - 行番号 (1 から)、 特定できない場合は 0
column - カラム位置 (1 から)、 特定できない場合は 0
メソッドの詳細

getAlign

public int getAlign()
横方向の配置を返します。

戻り値:
横方向の配置

getBgcolor

public Color getBgcolor()
背景色を返します。

戻り値:
背景色、設定されていない場合は null

getBorder

public Integer getBorder()
ボーダー幅を返します。

戻り値:
ボーダー幅、設定されていない場合は null

getCellpadding

public Value getCellpadding()
セル内の余白を返します。

戻り値:
セル内の余白、設定されていない場合は null

getCellspacing

public Value getCellspacing()
セル間の余白を返します。

戻り値:
セル間の余白、設定されていない場合は null

getHspace

public Integer getHspace()
テーブルの横方向の余白を返します。

戻り値:
テーブルの横方向の余白、設定されていない場合は null

getVspace

public Integer getVspace()
テーブルの縦方向の余白を返します。

戻り値:
テーブルの縦方向の余白、設定されていない場合は null

getWidth

public Value getWidth()
幅を返します。

戻り値:
幅、設定されていない場合は null

setAttribute

public boolean setAttribute(String key,
                            String value)
                     throws IllegalArgumentException
指定された属性名と属性値で、属性を設定します。 属性名が存在する場合は true を、 存在しない場合は false を返します。 渡される key は、必ず小文字に変換されています。

オーバーライド:
クラス Attribute 内の setAttribute
パラメータ:
key - 属性名
value - 属性値
戻り値:
属性名が存在する場合は true、 それ以外の場合は false
例外:
IllegalArgumentException

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'