AsyncTreeModel
and StructureTreeModel
instead.@Deprecated public class AbstractTreeBuilder extends java.lang.Object implements Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEFAULT_UPDATE_INACTIVE
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTreeBuilder()
Deprecated.
|
|
AbstractTreeBuilder(javax.swing.JTree tree,
javax.swing.tree.DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
java.util.Comparator<? super NodeDescriptor<?>> comparator)
Deprecated.
|
|
AbstractTreeBuilder(javax.swing.JTree tree,
javax.swing.tree.DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
java.util.Comparator<? super NodeDescriptor<?>> comparator,
boolean updateIfInactive)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T> java.lang.Object |
accept(java.lang.Class<?> nodeClass,
TreeVisitor<T> visitor)
Deprecated.
|
void |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode node)
Deprecated.
|
void |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode node,
java.lang.Runnable afterUpdate)
Deprecated.
|
boolean |
addSubtreeToUpdateByElement(java.lang.Object element)
Deprecated.
|
ActionCallback |
batch(Progressive progressive)
Deprecated.
|
void |
buildNodeForElement(java.lang.Object element)
Deprecated.
|
ActionCallback |
cancelUpdate()
Deprecated.
|
void |
cleanUp()
Deprecated.
|
void |
collapseChildren(java.lang.Object element,
java.lang.Runnable onDone)
Deprecated.
|
protected ProgressIndicator |
createProgressIndicator()
Deprecated.
|
protected AbstractTreeUi |
createUi()
Deprecated.
|
protected AbstractTreeUpdater |
createUpdater()
Deprecated.
|
void |
dispose()
Deprecated.
Usually not invoked directly, see class javadoc.
|
void |
expand(java.lang.Object[] element,
java.lang.Runnable onDone)
Deprecated.
|
void |
expand(java.lang.Object element,
java.lang.Runnable onDone)
Deprecated.
|
void |
expandAll(java.lang.Runnable onDone)
Deprecated.
|
protected void |
expandNodeChildren(javax.swing.tree.DefaultMutableTreeNode node)
Deprecated.
|
protected java.lang.Object |
findNodeByElement(java.lang.Object element)
Deprecated.
|
static AbstractTreeBuilder |
getBuilderFor(javax.swing.JTree tree)
Deprecated.
|
ActionCallback |
getInitialized()
Deprecated.
|
javax.swing.tree.DefaultMutableTreeNode |
getNodeForElement(java.lang.Object element)
Deprecated.
|
ActionCallback |
getReady(java.lang.Object requestor)
Deprecated.
|
java.lang.Object |
getRootElement()
Deprecated.
|
javax.swing.tree.DefaultMutableTreeNode |
getRootNode()
Deprecated.
|
java.util.Set<java.lang.Object> |
getSelectedElements()
Deprecated.
|
<T> java.util.Set<T> |
getSelectedElements(java.lang.Class<T> elementClass)
Deprecated.
|
javax.swing.JTree |
getTree()
Deprecated.
|
javax.swing.tree.DefaultTreeModel |
getTreeModel()
Deprecated.
|
AbstractTreeStructure |
getTreeStructure()
Deprecated.
|
protected java.lang.Object |
getTreeStructureElement(NodeDescriptor nodeDescriptor)
Deprecated.
node descriptor getElement contract is as follows:
1.TreeStructure always returns & receives "treeStructure" element returned by getTreeStructureElement
2.Paths contain "model" element returned by getElement
|
AbstractTreeUi |
getUi()
Deprecated.
|
protected AbstractTreeUpdater |
getUpdater()
Deprecated.
|
protected void |
init(javax.swing.JTree tree,
javax.swing.tree.DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
java.util.Comparator<? super NodeDescriptor<?>> comparator,
boolean updateIfInactive)
Deprecated.
|
void |
initRootNode()
Deprecated.
|
protected boolean |
isAlwaysShowPlus(NodeDescriptor descriptor)
Deprecated.
|
protected boolean |
isAutoExpandNode(NodeDescriptor nodeDescriptor)
Deprecated.
|
boolean |
isConsistent()
Deprecated.
|
boolean |
isDisposed()
Deprecated.
|
protected boolean |
isDisposeOnCollapsing(NodeDescriptor nodeDescriptor)
Deprecated.
|
static boolean |
isLoadingNode(javax.swing.tree.DefaultMutableTreeNode node)
Deprecated.
|
boolean |
isNodeBeingBuilt(javax.swing.tree.TreePath path)
Deprecated.
|
boolean |
isSelectionBeingAdjusted()
Deprecated.
|
protected boolean |
isSmartExpand()
Deprecated.
|
boolean |
isToBuildChildrenInBackground(java.lang.Object element)
Deprecated.
|
boolean |
isToEnsureSelectionOnFocusGained()
Deprecated.
|
static boolean |
isToPaintSelection(javax.swing.JTree tree)
Deprecated.
|
ActionCallback |
queueUpdate()
Deprecated.
|
ActionCallback |
queueUpdate(boolean withStructure)
Deprecated.
|
ActionCallback |
queueUpdateFrom(java.lang.Object element,
boolean forceResort)
Deprecated.
|
ActionCallback |
queueUpdateFrom(java.lang.Object element,
boolean forceResort,
boolean updateStructure)
Deprecated.
|
Promise<java.lang.Object> |
revalidateElement(java.lang.Object element)
Deprecated.
|
protected void |
runBackgroundLoading(java.lang.Runnable runnable)
Deprecated.
|
void |
scrollSelectionToVisible(java.lang.Runnable onDone,
boolean shouldBeCentered)
Deprecated.
|
void |
scrollTo(java.lang.Object element)
Deprecated.
|
void |
scrollTo(java.lang.Object element,
java.lang.Runnable onDone)
Deprecated.
|
<T> boolean |
select(java.lang.Class nodeClass,
TreeVisitor<T> visitor,
java.lang.Runnable onDone,
boolean addToSelection)
Deprecated.
|
void |
select(java.lang.Object element)
Deprecated.
|
void |
select(java.lang.Object[] elements,
java.lang.Runnable onDone)
Deprecated.
|
void |
select(java.lang.Object[] elements,
java.lang.Runnable onDone,
boolean addToSelection)
Deprecated.
|
void |
select(java.lang.Object element,
java.lang.Runnable onDone)
Deprecated.
|
void |
select(java.lang.Object element,
java.lang.Runnable onDone,
boolean addToSelection)
Deprecated.
|
void |
setCanYieldUpdate(boolean yield)
Deprecated.
|
void |
setNodeDescriptorComparator(java.util.Comparator<? super NodeDescriptor<?>> nodeDescriptorComparator)
Deprecated.
|
void |
setPassthroughMode(boolean passthrough)
Deprecated.
|
void |
setTreeStructure(AbstractTreeStructure structure)
Deprecated.
|
protected void |
sortChildren(java.util.Comparator<? super javax.swing.tree.TreeNode> nodeComparator,
javax.swing.tree.DefaultMutableTreeNode node,
java.util.List<? extends javax.swing.tree.TreeNode> children)
Deprecated.
|
protected java.lang.Object |
transformElement(java.lang.Object object)
Deprecated.
|
protected void |
updateAfterLoadedInBackground(java.lang.Runnable runnable)
Deprecated.
|
void |
updateFromRoot()
Deprecated.
use
queueUpdate() |
protected void |
updateNode(javax.swing.tree.DefaultMutableTreeNode node)
Deprecated.
|
protected boolean |
updateNodeDescriptor(NodeDescriptor descriptor)
Deprecated.
|
protected boolean |
validateNode(java.lang.Object child)
Deprecated.
|
protected void |
yieldToEDT(java.lang.Runnable runnable)
Deprecated.
|
protected static final boolean DEFAULT_UPDATE_INACTIVE
public AbstractTreeBuilder(javax.swing.JTree tree, javax.swing.tree.DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, java.util.Comparator<? super NodeDescriptor<?>> comparator)
public AbstractTreeBuilder(javax.swing.JTree tree, javax.swing.tree.DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, java.util.Comparator<? super NodeDescriptor<?>> comparator, boolean updateIfInactive)
protected AbstractTreeBuilder()
protected void init(javax.swing.JTree tree, javax.swing.tree.DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, java.util.Comparator<? super NodeDescriptor<?>> comparator, boolean updateIfInactive)
protected AbstractTreeUi createUi()
public final void scrollTo(java.lang.Object element)
public final void scrollTo(java.lang.Object element, java.lang.Runnable onDone)
public final void select(java.lang.Object element)
public final void select(java.lang.Object element, java.lang.Runnable onDone)
public final void select(java.lang.Object element, java.lang.Runnable onDone, boolean addToSelection)
public final void select(java.lang.Object[] elements, java.lang.Runnable onDone)
public final void select(java.lang.Object[] elements, java.lang.Runnable onDone, boolean addToSelection)
public final void expand(java.lang.Object element, java.lang.Runnable onDone)
public final void expand(java.lang.Object[] element, java.lang.Runnable onDone)
public final void collapseChildren(java.lang.Object element, java.lang.Runnable onDone)
protected AbstractTreeUpdater createUpdater()
protected final AbstractTreeUpdater getUpdater()
public final boolean addSubtreeToUpdateByElement(java.lang.Object element)
public final void addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode node)
public final void addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode node, java.lang.Runnable afterUpdate)
public final javax.swing.tree.DefaultMutableTreeNode getRootNode()
public final void setNodeDescriptorComparator(java.util.Comparator<? super NodeDescriptor<?>> nodeDescriptorComparator)
protected java.lang.Object getTreeStructureElement(NodeDescriptor nodeDescriptor)
protected void updateNode(javax.swing.tree.DefaultMutableTreeNode node)
protected boolean validateNode(java.lang.Object child)
protected boolean isDisposeOnCollapsing(NodeDescriptor nodeDescriptor)
public final javax.swing.JTree getTree()
public final AbstractTreeStructure getTreeStructure()
public final void setTreeStructure(AbstractTreeStructure structure)
public java.lang.Object getRootElement()
@Deprecated public void updateFromRoot()
queueUpdate()
public void initRootNode()
public final ActionCallback queueUpdate()
public final ActionCallback queueUpdate(boolean withStructure)
public final ActionCallback queueUpdateFrom(java.lang.Object element, boolean forceResort)
public ActionCallback queueUpdateFrom(java.lang.Object element, boolean forceResort, boolean updateStructure)
@Deprecated public void buildNodeForElement(java.lang.Object element)
AbstractTreeUi.buildNodeForElement(Object)
@Deprecated public javax.swing.tree.DefaultMutableTreeNode getNodeForElement(java.lang.Object element)
AbstractTreeUi.getNodeForElement(Object, boolean)
public void cleanUp()
protected ProgressIndicator createProgressIndicator()
protected void expandNodeChildren(javax.swing.tree.DefaultMutableTreeNode node)
protected boolean isAutoExpandNode(NodeDescriptor nodeDescriptor)
protected boolean isAlwaysShowPlus(NodeDescriptor descriptor)
protected boolean isSmartExpand()
public final boolean isDisposed()
public final boolean isNodeBeingBuilt(javax.swing.tree.TreePath path)
protected java.lang.Object findNodeByElement(java.lang.Object element)
public static boolean isLoadingNode(javax.swing.tree.DefaultMutableTreeNode node)
protected void yieldToEDT(java.lang.Runnable runnable)
public boolean isToEnsureSelectionOnFocusGained()
protected void runBackgroundLoading(java.lang.Runnable runnable)
protected void updateAfterLoadedInBackground(java.lang.Runnable runnable)
public final ActionCallback getInitialized()
public final ActionCallback getReady(java.lang.Object requestor)
protected void sortChildren(java.util.Comparator<? super javax.swing.tree.TreeNode> nodeComparator, javax.swing.tree.DefaultMutableTreeNode node, java.util.List<? extends javax.swing.tree.TreeNode> children)
public void setPassthroughMode(boolean passthrough)
public void expandAll(java.lang.Runnable onDone)
public ActionCallback cancelUpdate()
public ActionCallback batch(Progressive progressive)
public Promise<java.lang.Object> revalidateElement(java.lang.Object element)
public final AbstractTreeUi getUi()
public void dispose()
Disposable
dispose
in interface Disposable
protected boolean updateNodeDescriptor(NodeDescriptor descriptor)
public final javax.swing.tree.DefaultTreeModel getTreeModel()
public final java.util.Set<java.lang.Object> getSelectedElements()
public final <T> java.util.Set<T> getSelectedElements(java.lang.Class<T> elementClass)
protected java.lang.Object transformElement(java.lang.Object object)
public final void setCanYieldUpdate(boolean yield)
public static AbstractTreeBuilder getBuilderFor(javax.swing.JTree tree)
public final <T> java.lang.Object accept(java.lang.Class<?> nodeClass, TreeVisitor<T> visitor)
public <T> boolean select(java.lang.Class nodeClass, TreeVisitor<T> visitor, java.lang.Runnable onDone, boolean addToSelection)
public void scrollSelectionToVisible(java.lang.Runnable onDone, boolean shouldBeCentered)
public static boolean isToPaintSelection(javax.swing.JTree tree)
public boolean isSelectionBeingAdjusted()
public boolean isToBuildChildrenInBackground(java.lang.Object element)
public final boolean isConsistent()