nga.servlet.dsp.writer
クラス TreeWriter

java.lang.Object
  上位を拡張 nga.servlet.dsp.writer.TargetValueWriter
      上位を拡張 nga.servlet.dsp.writer.TreeWriter
直系の既知のサブクラス:
TreeNodeWriter

public class TreeWriter
extends TargetValueWriter

Tree 用ライタ。


フィールドの概要
protected  TargetInfo targetInfo
          target タグ情報。
 
クラス nga.servlet.dsp.writer.TargetValueWriter から継承されたフィールド
targetValue, writer
 
コンストラクタの概要
TreeWriter()
          TreeWriter を作成する。
 
メソッドの概要
static String getClosedNodeIcon(TargetInfo targetInfo)
          ノードが閉じている状態をあらわすアイコンのURLを取得する。
static String getMinusIcon(TargetInfo targetInfo)
          -アイコン画像ファイルの URL を取得する。
static String getNodeIcon(TargetInfo targetInfo)
          開閉に関係なくノードをあらわすアイコンのURLを取得する。
static String getOpenedNodeIcon(TargetInfo targetInfo)
          ノードが開いている状態をあらわすアイコンのURLを取得する。
static String getPlusIcon(TargetInfo targetInfo)
          +アイコン画像ファイルの URL を取得する。
protected  void init()
          このインスタンスの初期化を行なう。
protected  void printNode(TreeNode node)
          ノードを出力する。
protected  void printNodeIcon(TreeNode node)
          ノードをあらわすアイコンを出力する。
protected  void printNodeValue(TreeNode node)
          ノードの値を出力する。
protected  void printOpenerIcon(TreeNode node)
          + / - アイコンを出力する。
protected  void printTree(Tree tree)
          ツリーを出力する。
 void write()
          出力を行なう。
 
クラス nga.servlet.dsp.writer.TargetValueWriter から継承されたメソッド
attr, attr, attr, attr, format, format, getClass, getErrorItem, getErrorValue, getFormat, getFormat, getLabel, getLabel, getScale, isCdataSection, isContainer, print, print, printErrorValue, println, println, println, printRequest, setTargetValue, writeAttribute
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

targetInfo

protected TargetInfo targetInfo
target タグ情報。

コンストラクタの詳細

TreeWriter

public TreeWriter()
TreeWriter を作成する。

メソッドの詳細

write

public void write()
           throws IOException
出力を行なう。

定義:
クラス TargetValueWriter 内の write
例外:
IOException

init

protected void init()
このインスタンスの初期化を行なう。


getOpenedNodeIcon

public static String getOpenedNodeIcon(TargetInfo targetInfo)
ノードが開いている状態をあらわすアイコンのURLを取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
アイコンの URL。

getClosedNodeIcon

public static String getClosedNodeIcon(TargetInfo targetInfo)
ノードが閉じている状態をあらわすアイコンのURLを取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
アイコンの URL。

getNodeIcon

public static String getNodeIcon(TargetInfo targetInfo)
開閉に関係なくノードをあらわすアイコンのURLを取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
アイコンの URL。

getPlusIcon

public static String getPlusIcon(TargetInfo targetInfo)
+アイコン画像ファイルの URL を取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
アイコンの URL。

getMinusIcon

public static String getMinusIcon(TargetInfo targetInfo)
-アイコン画像ファイルの URL を取得する。

パラメータ:
targetInfo - target タグ情報。
戻り値:
アイコンの URL。

printTree

protected void printTree(Tree tree)
ツリーを出力する。

パラメータ:
tree - 出力対象ツリー。

printNode

protected void printNode(TreeNode node)
ノードを出力する。

パラメータ:
node - 出力対象ノード。

printNodeValue

protected void printNodeValue(TreeNode node)
ノードの値を出力する。

パラメータ:
node -

printOpenerIcon

protected void printOpenerIcon(TreeNode node)
+ / - アイコンを出力する。

パラメータ:
node - 出力対象ノード。

printNodeIcon

protected void printNodeIcon(TreeNode node)
ノードをあらわすアイコンを出力する。

パラメータ:
node - 出力対象ノード。