- すべてのスーパー・インタフェース:
CellEditor
- 既知のすべての実装クラス:
DefaultCellEditor
,DefaultTreeCellEditor
public interface TreeCellEditor extends CellEditor
ツリーでエディタを設定するのに必要な拡張機能をCellEditorに追加します。
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) エディタの初期valueを設定します。インタフェースjavax.swing.CellEditorで宣言されたメソッド
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
メソッドの詳細
-
getTreeCellEditorComponent
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) エディタの初期valueを設定します。 これによりエディタでstopEditingが呼び出され、そのときにエディタが編集中の場合は、編集された値が一部消失することがあります。クライアントのComponent階層に追加する必要のあるコンポーネントを返します。 このコンポーネントがクライアントの階層に組み込まれると、ユーザー入力を描画および受信できます。
- パラメータ:
tree
- エディタに編集を要求しているJTree。このパラメータはnullも可value
- 編集されるセル値isSelected
- セルをハイライトで描画する場合はtrueexpanded
- ノードが展開されている場合はtrueleaf
- ノードが葉ノードの場合はtruerow
- 編集中のノードの行インデックス- 戻り値:
- 編集のためのコンポーネント
-