public class CheckboxTreeHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CheckboxTreeBase.CheckPolicy |
DEFAULT_POLICY |
Constructor and Description |
---|
CheckboxTreeHelper(CheckboxTreeBase.CheckPolicy checkPolicy,
EventDispatcher<CheckboxTreeListener> dispatcher) |
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
getCheckedNodes(java.lang.Class<T> nodeType,
Tree.NodeFilter<? super T> filter,
javax.swing.tree.TreeModel model) |
void |
initTree(Tree tree,
javax.swing.JComponent mainComponent,
CheckboxTreeBase.CheckboxTreeCellRendererBase cellRenderer) |
static boolean |
isToggleEvent(java.awt.event.KeyEvent e,
javax.swing.JComponent mainComponent) |
void |
setNodeState(Tree tree,
CheckedTreeNode node,
boolean checked) |
public static final CheckboxTreeBase.CheckPolicy DEFAULT_POLICY
public CheckboxTreeHelper(CheckboxTreeBase.CheckPolicy checkPolicy, EventDispatcher<CheckboxTreeListener> dispatcher)
public void initTree(Tree tree, javax.swing.JComponent mainComponent, CheckboxTreeBase.CheckboxTreeCellRendererBase cellRenderer)
public void setNodeState(Tree tree, CheckedTreeNode node, boolean checked)
public static boolean isToggleEvent(java.awt.event.KeyEvent e, javax.swing.JComponent mainComponent)
public static <T> T[] getCheckedNodes(java.lang.Class<T> nodeType, Tree.NodeFilter<? super T> filter, javax.swing.tree.TreeModel model)