JavaTM Platform
Standard Ed. 6

クラス
javax.swing.tree.TreePath の使用

TreePath を使用しているパッケージ
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.event Swing コンポーネントによってトリガーされるイベントを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの abstract クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.multi 複数の Look & Feel を結合するユーザーインタフェースオブジェクトを提供します。 
javax.swing.tree javax.swing.JTree を処理するためのクラスとインタフェースを提供します。 
 

javax.swing での TreePath の使用
 

TreePath を返す javax.swing のメソッド
 TreePath JTree.getAnchorSelectionPath()
          アンカーと識別されたパスを返します。
 TreePath JTree.getClosestPathForLocation(int x, int y)
          x、y にもっとも近いノードのパスを返します。
 TreePath JTree.getEditingPath()
          現在編集されている要素のパスを返します。
 TreePath JTree.getLeadSelectionPath()
          リードと識別されたパスを返します。
 TreePath JTree.getNextMatch(String prefix, int startingRow, Position.Bias bias)
          prefix で始まる次のツリー要素への TreePath を返します。
 TreePath JTree.DropLocation.getPath()
          ドロップされたデータをツリー内のどこに配置するべきかを指定するパスを返します。
protected  TreePath[] JTree.getPathBetweenRows(int index0, int index1)
          index0 から index1 までのパスを表す JTreePath のインスタンスを返します。
 TreePath JTree.getPathForLocation(int x, int y)
          指定された位置にあるノードのパスを返します。
 TreePath JTree.getPathForRow(int row)
          指定された行のパスを返します。
 TreePath JTree.getSelectionPath()
          選択された最初のノードのパスを返します。
 TreePath[] JTree.getSelectionPaths()
          選択されたすべての値のパスを返します。
 

TreePath 型の引数を持つ型を返す javax.swing のメソッド
protected  Enumeration<TreePath> JTree.getDescendantToggledPaths(TreePath parent)
          parent の下位ノードであり、展開されている TreePathsEnumeration を返します。
 Enumeration<TreePath> JTree.getExpandedDescendants(TreePath parent)
          現在展開されているパス parent の下位ノードから成る Enumeration を返します。
 

TreePath 型のパラメータを持つ javax.swing のメソッド
 void JTree.addSelectionPath(TreePath path)
          指定された TreePath によって識別されるノードを現在の選択に追加します。
 void JTree.addSelectionPaths(TreePath[] paths)
          パスの配列の各パスを現在の選択に追加します。
 void JTree.EmptySelectionModel.addSelectionPaths(TreePath[] paths)
          何も追加しない null 実装です。
 void JTree.collapsePath(TreePath path)
          指定されたパスによって識別されるノードが収納され、表示可能になるようにします。
 void JTree.expandPath(TreePath path)
          指定されたパスによって識別されるノードが展開され、表示可能になるようにします。
 void JTree.fireTreeCollapsed(TreePath path)
          通知の配信対象を、指定されたイベント型で登録したすべてのリスナーに通知します。
 void JTree.fireTreeExpanded(TreePath path)
          通知の配信対象を、指定されたイベント型で登録したすべてのリスナーに通知します。
 void JTree.fireTreeWillCollapse(TreePath path)
          通知の配信対象を、指定されたイベント型で登録したすべてのリスナーに通知します。
 void JTree.fireTreeWillExpand(TreePath path)
          通知の配信対象を、指定されたイベント型で登録したすべてのリスナーに通知します。
protected  Enumeration<TreePath> JTree.getDescendantToggledPaths(TreePath parent)
          parent の下位ノードであり、展開されている TreePathsEnumeration を返します。
 Enumeration<TreePath> JTree.getExpandedDescendants(TreePath parent)
          現在展開されているパス parent の下位ノードから成る Enumeration を返します。
 Rectangle JTree.getPathBounds(TreePath path)
          指定されたノードが描画される Rectangle を返します。
 int JTree.getRowForPath(TreePath path)
          指定されたパスによって識別されるノードを表示する行を返します。
 boolean JTree.hasBeenExpanded(TreePath path)
          パスによって識別されるノードが今までに展開されたことがある場合に true を返します。
 boolean JTree.isCollapsed(TreePath path)
          パスによって識別される値が現在収納されている場合に true を返します。
 boolean JTree.isExpanded(TreePath path)
          パスによって識別されるノードが現在展開されている場合に true を返します。
 boolean JTree.isPathEditable(TreePath path)
          isEditable を返します。
 boolean JTree.isPathSelected(TreePath path)
          パスによって識別される項目が現在選択されている場合に true を返します。
 boolean JTree.isVisible(TreePath path)
          パスによって識別される値が現在表示可能である場合、つまりそれがルートであるか、そのすべての親が展開されている場合に true を返します。
 void JTree.makeVisible(TreePath path)
          パスによって識別されるノードが現在表示可能であるようにします。
protected  boolean JTree.removeDescendantSelectedPaths(TreePath path, boolean includePath)
          path の下位ノードである選択されたすべてのパスを削除します。
 void JTree.removeSelectionPath(TreePath path)
          指定されたパスによって識別されるノードを現在の選択から削除します。
 void JTree.removeSelectionPaths(TreePath[] paths)
          指定されたパスによって識別されるノードを現在の選択から削除します。
 void JTree.EmptySelectionModel.removeSelectionPaths(TreePath[] paths)
          何も削除しない null 実装です。
 void JTree.scrollPathToVisible(TreePath path)
          パスにあるすべてのパスコンポーネント (最後のパスコンポーネントは除く) を展開し、パスによって指定されるノードが表示されるようにスクロールします。
 void JTree.setAnchorSelectionPath(TreePath newPath)
          アンカーと識別されたパスを設定します。
protected  void JTree.setExpandedState(TreePath path, boolean state)
          この JTree の展開状態を設定します。
 void JTree.setLeadSelectionPath(TreePath newPath)
          リードとして識別するパスを設定します。
 void JTree.setSelectionPath(TreePath path)
          指定されたパスによって識別されるノードを選択します。
 void JTree.setSelectionPaths(TreePath[] paths)
          指定されたパスの配列によって識別されるノードを選択します。
 void JTree.EmptySelectionModel.setSelectionPaths(TreePath[] pPaths)
          何も選択しない null 実装です。
 void JTree.startEditingAtPath(TreePath path)
          指定されたパスによって識別されるノードを選択し、編集を開始します。
 

TreePath 型の型引数を持つ javax.swing のメソッドパラメータ
protected  void JTree.removeDescendantToggledPaths(Enumeration<TreePath> toRemove)
          toRemove にある、展開されている TreePaths の下位ノードを削除します。
 

TreePath 型のパラメータを持つ javax.swing のコンストラクタ
JTree.AccessibleJTree.AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)
          AccessibleJTreeNode を構築します。
 

javax.swing.event での TreePath の使用
 

TreePath として宣言されている javax.swing.event のフィールド
protected  TreePath TreeSelectionEvent.newLeadSelectionPath
          パスが変更されたあとの leadSelectionPath です。
protected  TreePath TreeSelectionEvent.oldLeadSelectionPath
          パスが変更される前の leadSelectionPath です。
protected  TreePath TreeExpansionEvent.path
          このイベントが表す値へのパスです。
protected  TreePath TreeModelEvent.path
          変更されたノードの親へのパスです。
protected  TreePath[] TreeSelectionEvent.paths
          このイベントが表すパスです。
 

TreePath を返す javax.swing.event のメソッド
 TreePath TreeSelectionEvent.getNewLeadSelectionPath()
          現在のリードパスを返します。
 TreePath TreeSelectionEvent.getOldLeadSelectionPath()
          以前にリードパスだったパスを返します。
 TreePath TreeExpansionEvent.getPath()
          展開または折りたたみが行われている値へのパスを返します。
 TreePath TreeSelectionEvent.getPath()
          最初のパス要素を返します。
 TreePath[] TreeSelectionEvent.getPaths()
          選択範囲で追加または削除されたパスを返します。
 TreePath TreeModelEvent.getTreePath()
          treeStructureChanged を除くすべてのイベントに対して、変更されたノードの親を返します。
 

TreePath 型のパラメータを持つ javax.swing.event のメソッド
 boolean TreeSelectionEvent.isAddedPath(TreePath path)
          path で指定されるパスが選択範囲に追加された場合は true を返します。
 

TreePath 型のパラメータを持つ javax.swing.event のコンストラクタ
TreeExpansionEvent(Object source, TreePath path)
          TreeExpansionEvent オブジェクトを構築します。
TreeModelEvent(Object source, TreePath path)
          ノード構造がなんらかの方法で変更されたときに、イベントを生成するために使用します。
TreeModelEvent(Object source, TreePath path, int[] childIndices, Object[] children)
          ノードが変更、挿入、または削除されたときに、イベントを生成するために使用します。
TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
          TreeSelectionModel の選択範囲内での変更を表します。
TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
          TreeSelectionModel の選択範囲内での変更を表します。
TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
          TreeSelectionModel の選択範囲内での変更を表します。
 

javax.swing.plaf での TreePath の使用
 

TreePath を返す javax.swing.plaf のメソッド
abstract  TreePath TreeUI.getClosestPathForLocation(JTree tree, int x, int y)
          x, y にもっとも近いノードへのパスを返します。
abstract  TreePath TreeUI.getEditingPath(JTree tree)
          編集中の要素に対するパスを返します。
abstract  TreePath TreeUI.getPathForRow(JTree tree, int row)
          渡された row のパスを返します。
 

TreePath 型のパラメータを持つ javax.swing.plaf のメソッド
abstract  Rectangle TreeUI.getPathBounds(JTree tree, TreePath path)
          パスの最後の項目が描画されるラベル部分を囲む Rectangle を返します。
abstract  int TreeUI.getRowForPath(JTree tree, TreePath path)
          path で識別される最後の項目が可視である行を返します。
abstract  void TreeUI.startEditingAtPath(JTree tree, TreePath path)
          path の最後の項目を選択し、その項目の編集を試みます。
 

javax.swing.plaf.basic での TreePath の使用
 

TreePath として宣言されている javax.swing.plaf.basic のフィールド
protected  TreePath BasicTreeUI.editingPath
          編集中のパスです。
 

TreePath 型の型パラメータを持つ javax.swing.plaf.basic のフィールド
protected  Hashtable<TreePath,Boolean> BasicTreeUI.drawingCache
          垂直線の描画を最小化するために使われます。
 

TreePath を返す javax.swing.plaf.basic のメソッド
 TreePath BasicTreeUI.getClosestPathForLocation(JTree tree, int x, int y)
          x, y にもっとも近いノードへのパスを返します。
 TreePath BasicTreeUI.getEditingPath(JTree tree)
          編集中の要素に対するパスを返します。
protected  TreePath BasicTreeUI.getLastChildPath(TreePath parent)
          parent の最後の子のパスを返します。
 TreePath BasicTreeUI.getPathForRow(JTree tree, int row)
          渡された row のパスを返します。
 

TreePath 型のパラメータを持つ javax.swing.plaf.basic のメソッド
protected  void BasicTreeUI.checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)
          mouseX および mouseYrow の展開または折りたたみの領域にある場合、このメソッドは行の展開状態を切り替えます。
protected  TreePath BasicTreeUI.getLastChildPath(TreePath parent)
          parent の最後の子のパスを返します。
 Rectangle BasicTreeUI.getPathBounds(JTree tree, TreePath path)
          パスの最後の項目が描画されるラベル部分を囲む Rectangle を返します。
 int BasicTreeUI.getRowForPath(JTree tree, TreePath path)
          path で識別される最後の項目が可視である行を返します。
protected  void BasicTreeUI.handleExpandControlClick(TreePath path, int mouseX, int mouseY)
          ユーザーが特定の行をクリックしたときにメッセージとして送られ、toggleExpandState を呼び出します。
protected  boolean BasicTreeUI.isLocationInExpandControl(TreePath path, int mouseX, int mouseY)
          mouseX および mouseY がノードの展開または折りたたみに使用される行の領域にあり、row にあるノードが葉を表さない場合に true を返します。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
protected  void BasicTreeUI.pathWasCollapsed(TreePath path)
          VisibleTreeNode が折りたたまれたあとに、VisibleTreeNode からメッセージとして送られます。
protected  void BasicTreeUI.pathWasExpanded(TreePath path)
          VisibleTreeNode が展開されたあとに、VisibleTreeNode からメッセージとして送られます。
protected  void BasicTreeUI.selectPathForEvent(TreePath path, MouseEvent event)
          特定の行での MouseEvent に基づいて選択を更新するためにメッセージとして送られます。
protected  boolean BasicTreeUI.shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          指定された行で展開 (切り替え) コントロールが描画されなければならない場合に true を返します。
protected  boolean BasicTreeUI.startEditing(TreePath path, MouseEvent event)
          cellEditor があり、shouldSelectCell が true を返した場合に、ノードの編集を開始します。
 void BasicTreeUI.startEditingAtPath(JTree tree, TreePath path)
          path の最後の項目を選択し、その項目の編集を試みます。
protected  void BasicTreeUI.toggleExpandState(TreePath path)
          パスが展開されてない場合は展開し、行が展開されている場合は折りたたみます。
protected  void BasicTreeUI.updateExpandedDescendants(TreePath path)
          ツリーから展開されている下位ノードを取得し、ツリー状態に転送することで、path 内のすべての下位ノードの展開状態を更新します。
 

javax.swing.plaf.metal での TreePath の使用
 

TreePath 型のパラメータを持つ javax.swing.plaf.metal のメソッド
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
 

javax.swing.plaf.multi での TreePath の使用
 

TreePath を返す javax.swing.plaf.multi のメソッド
 TreePath MultiTreeUI.getClosestPathForLocation(JTree a, int b, int c)
          このオブジェクトが扱う各 UI で getClosestPathForLocation メソッドを呼び出します。
 TreePath MultiTreeUI.getEditingPath(JTree a)
          このオブジェクトが扱う各 UI で getEditingPath メソッドを呼び出します。
 TreePath MultiTreeUI.getPathForRow(JTree a, int b)
          このオブジェクトが扱う各 UI で getPathForRow メソッドを呼び出します。
 

TreePath 型のパラメータを持つ javax.swing.plaf.multi のメソッド
 Rectangle MultiTreeUI.getPathBounds(JTree a, TreePath b)
          このオブジェクトが扱う各 UI で getPathBounds メソッドを呼び出します。
 int MultiTreeUI.getRowForPath(JTree a, TreePath b)
          このオブジェクトが扱う各 UI で getRowForPath メソッドを呼び出します。
 void MultiTreeUI.startEditingAtPath(JTree a, TreePath b)
          このオブジェクトが扱う各 UI で startEditingAtPath メソッドを呼び出します。
 

javax.swing.tree での TreePath の使用
 

TreePath として宣言されている javax.swing.tree のフィールド
protected  TreePath DefaultTreeCellEditor.lastPath
          選択された最後のパスです。
protected  TreePath DefaultTreeSelectionModel.leadPath
          追加された最後のパスです。
protected  TreePath[] DefaultTreeSelectionModel.selection
          現在選択されているパスです。
 

TreePath を返す javax.swing.tree のメソッド
 TreePath DefaultTreeSelectionModel.getLeadSelectionPath()
          追加された最後のパスを返します。
 TreePath TreeSelectionModel.getLeadSelectionPath()
          追加された最後のパスを返します。
 TreePath TreePath.getParentPath()
          オブジェクトのすべての要素を格納するパスを返します。
abstract  TreePath AbstractLayoutCache.getPathClosestTo(int x, int y)
          x, y にもっとも近いノードへのパスを返します。
 TreePath FixedHeightLayoutCache.getPathClosestTo(int x, int y)
          x, y にもっとも近いノードへのパスを返します。
 TreePath VariableHeightLayoutCache.getPathClosestTo(int x, int y)
          x, y にもっとも近いノードへのパスを返します。
abstract  TreePath AbstractLayoutCache.getPathForRow(int row)
          渡された row のパスを返します。
 TreePath FixedHeightLayoutCache.getPathForRow(int row)
          渡された row のパスを返します。
 TreePath VariableHeightLayoutCache.getPathForRow(int row)
          row のパスを返します。
 TreePath DefaultTreeSelectionModel.getSelectionPath()
          選択範囲の先頭のパスを返します。
 TreePath TreeSelectionModel.getSelectionPath()
          選択範囲の先頭のパスを返します。
 TreePath[] DefaultTreeSelectionModel.getSelectionPaths()
          選択範囲のパスを返します。
 TreePath[] TreeSelectionModel.getSelectionPaths()
          選択範囲のパスを返します。
 TreePath TreePath.pathByAddingChild(Object child)
          このオブジェクトのすべての要素に加えて child の要素を格納する新しいパスを返します。
 

TreePath 型の引数を持つ型を返す javax.swing.tree のメソッド
abstract  Enumeration<TreePath> AbstractLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
 Enumeration<TreePath> FixedHeightLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
 Enumeration<TreePath> VariableHeightLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
 

TreePath 型のパラメータを持つ javax.swing.tree のメソッド
 void DefaultTreeSelectionModel.addSelectionPath(TreePath path)
          現在の選択範囲にパスを追加します。
 void TreeSelectionModel.addSelectionPath(TreePath path)
          現在の選択範囲にパスを追加します。
 void DefaultTreeSelectionModel.addSelectionPaths(TreePath[] paths)
          現在の選択範囲にパスを追加します。
 void TreeSelectionModel.addSelectionPaths(TreePath[] paths)
          現在の選択範囲にパスを追加します。
protected  boolean DefaultTreeSelectionModel.arePathsContiguous(TreePath[] paths)
          パスが連続しているか、このオブジェクトに RowMapper がない場合、true を返します。
protected  boolean DefaultTreeSelectionModel.canPathsBeAdded(TreePath[] paths)
          TreePath の特定の設定が追加できるかどうか判定するために使用します。
protected  boolean DefaultTreeSelectionModel.canPathsBeRemoved(TreePath[] paths)
          モデルの連続性を壊さずにパスを削除できる場合に true を返します。
abstract  Rectangle AbstractLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 Rectangle FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 Rectangle VariableHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          path で識別される項目を描画し、ラベル部分を囲む Rectangle を返します。
abstract  boolean AbstractLayoutCache.getExpandedState(TreePath path)
          パスが展開されて可視の場合に true を返します。
 boolean FixedHeightLayoutCache.getExpandedState(TreePath path)
          パスが展開されて可視の場合に true を返します。
 boolean VariableHeightLayoutCache.getExpandedState(TreePath path)
          パスが展開されて可視の場合に true を返します。
abstract  int AbstractLayoutCache.getRowForPath(TreePath path)
          path で識別される最後の項目が可視である行を返します。
 int FixedHeightLayoutCache.getRowForPath(TreePath path)
          path で識別される最後の項目が可視である行を返します。
 int VariableHeightLayoutCache.getRowForPath(TreePath path)
          path で識別される最後の項目が可視である行を返します。
 int[] AbstractLayoutCache.getRowsForPaths(TreePath[] paths)
          path 内で TreePath のインスタンスが表示されている行を返します。
 int[] RowMapper.getRowsForPaths(TreePath[] path)
          path 内で TreePath のインスタンスが表示されている行を返します。
abstract  int AbstractLayoutCache.getVisibleChildCount(TreePath path)
          行について可視の子の数を返します。
 int FixedHeightLayoutCache.getVisibleChildCount(TreePath path)
          行について可視の子の数を返します。
 int VariableHeightLayoutCache.getVisibleChildCount(TreePath path)
          path について可視の子の数を返します。
abstract  Enumeration<TreePath> AbstractLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
 Enumeration<TreePath> FixedHeightLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
 Enumeration<TreePath> VariableHeightLayoutCache.getVisiblePathsFrom(TreePath path)
          渡された位置から開始される可視のパスを次々に列挙する Enumerator を返します。
abstract  void AbstractLayoutCache.invalidatePathBounds(TreePath path)
          path の矩形は無効で、更新される必要があることを LayoutCache に通知します。
 void FixedHeightLayoutCache.invalidatePathBounds(TreePath path)
          処理は行いません。
 void VariableHeightLayoutCache.invalidatePathBounds(TreePath path)
          path の矩形は無効で、更新される必要があることを LayoutCache に通知します。
 boolean TreePath.isDescendant(TreePath aTreePath)
          aTreePath がこの TreePath の下位オブジェクトである場合は、true を返します。
abstract  boolean AbstractLayoutCache.isExpanded(TreePath path)
          行で識別される値が現在展開されている場合に true を返します。
 boolean FixedHeightLayoutCache.isExpanded(TreePath path)
          行で識別される値が現在展開されている場合に true を返します。
 boolean VariableHeightLayoutCache.isExpanded(TreePath path)
          path で識別される値が現在展開されている場合に true を返します。
 boolean DefaultTreeSelectionModel.isPathSelected(TreePath path)
          パス path が現在の選択範囲にある場合に true を返します。
 boolean TreeSelectionModel.isPathSelected(TreePath path)
          パス path が現在の選択範囲にある場合に true を返します。
protected  void DefaultTreeSelectionModel.notifyPathChange(Vector<javax.swing.tree.PathPlaceHolder> changedPaths, TreePath oldLeadSelection)
          path 内の変更をリスナーに通知します。
 void DefaultTreeSelectionModel.removeSelectionPath(TreePath path)
          選択範囲からパスを削除します。
 void TreeSelectionModel.removeSelectionPath(TreePath path)
          選択範囲からパスを削除します。
 void DefaultTreeSelectionModel.removeSelectionPaths(TreePath[] paths)
          選択範囲からパスを削除します。
 void TreeSelectionModel.removeSelectionPaths(TreePath[] paths)
          選択範囲からパスを削除します。
abstract  void AbstractLayoutCache.setExpandedState(TreePath path, boolean isExpanded)
          パス path の展開状態を isExpanded としてマーク付けします。
 void FixedHeightLayoutCache.setExpandedState(TreePath path, boolean isExpanded)
          パス path の展開状態を isExpanded としてマーク付けします。
 void VariableHeightLayoutCache.setExpandedState(TreePath path, boolean isExpanded)
          パス path の展開状態を isExpanded としてマーク付けします。
 void DefaultTreeSelectionModel.setSelectionPath(TreePath path)
          選択範囲をパスに設定します。
 void TreeSelectionModel.setSelectionPath(TreePath path)
          選択範囲をパスに設定します。
 void DefaultTreeSelectionModel.setSelectionPaths(TreePath[] pPaths)
          選択範囲を paths のパスに設定します。
 void TreeSelectionModel.setSelectionPaths(TreePath[] paths)
          選択範囲をパスに設定します。
 void DefaultTreeModel.valueForPathChanged(TreePath path, Object newValue)
          パスで識別される TreeNode のユーザーオブジェクトを設定し、変更済みのノードを送ります。
 void TreeModel.valueForPathChanged(TreePath path, Object newValue)
          newValue への path によって識別される項目の値をユーザーが変更すると、メッセージとして送信されます。
 

TreePath 型のパラメータを持つ javax.swing.tree のコンストラクタ
TreePath(TreePath parent, Object lastElement)
          新規 TreePath を構築します。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。