2024-06-12
This commit is contained in:
54
Writerside2/topics/Tree.md
Normal file
54
Writerside2/topics/Tree.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# Tree
|
||||
|
||||
|
||||
## JTree
|
||||
|
||||
* `setCellRenderer(TreeCellRenderer)`
|
||||
* `setCellEditor(TreeCellEditor)`
|
||||
* `setEditable(boolean)`
|
||||
* `setRootVisible(boolean)`
|
||||
* `setShowsRootHandles(boolean)`
|
||||
* `getDragEnabled()` / `setDragEnabled(boolean)`
|
||||
|
||||
* `addTreeSelectionListener()`
|
||||
* `getSelectionModel()` / `setSelectionModel()` : TreeSelectionModel.CONTIGUOUS_TREE_SELECTION | DISCONTIGUOUS_TREE_SELECTION | SINGLE_TREE_SELECTION
|
||||
* `getLastSelectedPathComponent()`
|
||||
* `getSelectionPath()` / `setSelectionPath(TreePath)` / `getSelectionPaths()` / `setSelectionPaths(TreePath[])`
|
||||
|
||||
* `addTreeExpansionListener()`
|
||||
* `addTreeWillExpandListener()`
|
||||
* `expandPath(TreePath)`
|
||||
* `collapsePath(TreePath)`
|
||||
* `scrollPathToVisible(TreePath)`
|
||||
* `makeVisible(TreePath)`
|
||||
* `getScrollsOnExpand()` / `setScrollsOnExpand(boolean)`
|
||||
* `getToggleClickCount()` / `setToggleClickCount(int)` : 기본값은 더블 클릭.
|
||||
* `TreePath getNextMatch(String,int,Position.Bias)`
|
||||
|
||||
|
||||
|
||||
## TreePath
|
||||
|
||||
## TreeNode
|
||||
### MutableTreeNode
|
||||
### DefaultMutableTreeNode
|
||||
|
||||
## TreeModel
|
||||
### DefaultTreeModel
|
||||
|
||||
## TreeCellRenderer
|
||||
### DefaultTreeCellRenderer
|
||||
|
||||
## TreeCellEditor
|
||||
### DefaultTreeCellEditor
|
||||
|
||||
## TreeSelectionListener
|
||||
### TreeSelectionEvent
|
||||
|
||||
## TreeModelListener
|
||||
### TreeModelEvent
|
||||
|
||||
## TreeExpansionListener
|
||||
### TreeExpansionEvent
|
||||
|
||||
## TreeWillExpandListener
|
||||
Reference in New Issue
Block a user