org.boxed_economy.besp.container.classtree
クラス BoxClass

java.lang.Object
  拡張org.boxed_economy.besp.container.classtree.BoxClassTreeElement
      拡張org.boxed_economy.besp.container.classtree.BoxClass
すべての実装インタフェース:
javax.swing.tree.TreeNode

public class BoxClass
extends BoxClassTreeElement

BoxClassTreeElementを継承して、BESPクラスツリー内のクラスを定義します。 (Comnpositeパターンです。)

バージョン:
$Id: BoxClass.java,v 1.1 2004/03/21 12:07:49 macchan Exp $
作成者:
rx78g

コンストラクタの概要
BoxClass(java.lang.String newname)
           
 
メソッドの概要
 java.util.Enumeration children()
          javax.swing.tree.treeNodeインターフェースを実装します。
 boolean getAllowsChildren()
          javax.swing.tree.treeNodeインターフェースを実装します。
 javax.swing.tree.TreeNode getChildAt(int childIndex)
          javax.swing.tree.treeNodeインターフェースを実装します。
 int getChildCount()
          javax.swing.tree.treeNodeインターフェースを実装します。
 int getIndex(javax.swing.tree.TreeNode node)
          javax.swing.tree.treeNodeインターフェースを実装します。
 boolean isLeaf()
          javax.swing.tree.treeNodeインターフェースを実装します。
 void visit(BoxClassTreeVisitor visitor)
          visitorを受け付けるインターフェースです。
 
クラス org.boxed_economy.besp.container.classtree.BoxClassTreeElement から継承したメソッド
getAbsoluteName, getName, getParent, setParent, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

BoxClass

public BoxClass(java.lang.String newname)
関連項目:
BoxClassTreeElement.BoxClassTreeElement(String)
メソッドの詳細

visit

public void visit(BoxClassTreeVisitor visitor)
visitorを受け付けるインターフェースです。

定義:
クラス BoxClassTreeElement 内の visit
パラメータ:
visitor - 訪問するvisitor
関連項目:
BoxClassTreeElement.visit(BoxClassTreeVisitor)

getChildAt

public javax.swing.tree.TreeNode getChildAt(int childIndex)
javax.swing.tree.treeNodeインターフェースを実装します。 childを取得しますが、必要ないため実装しません。

関連項目:
TreeNode.getChildAt(int)

getChildCount

public int getChildCount()
javax.swing.tree.treeNodeインターフェースを実装します。 childの数を取得しますが、クラスのため-1を返します。

関連項目:
TreeNode.getChildCount()

getIndex

public int getIndex(javax.swing.tree.TreeNode node)
javax.swing.tree.treeNodeインターフェースを実装します。 インデックスを取得しますが、使用しないため-1を返します。

関連項目:
TreeNode.getIndex(TreeNode)

getAllowsChildren

public boolean getAllowsChildren()
javax.swing.tree.treeNodeインターフェースを実装します。 childの有無を返します。

関連項目:
TreeNode.getAllowsChildren()

isLeaf

public boolean isLeaf()
javax.swing.tree.treeNodeインターフェースを実装します。 Leafであるかを返します。クラスのため必ずtrueです。

関連項目:
TreeNode.isLeaf()

children

public java.util.Enumeration children()
javax.swing.tree.treeNodeインターフェースを実装します。 childの集合を返しますが、クラスのため実装しません。

関連項目:
TreeNode.children()