AsyncTreeModel
and StructureTreeModel
instead.@Deprecated
public class AbstractTreeUi
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JTree |
myTree
Deprecated.
|
Constructor and Description |
---|
AbstractTreeUi()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
activate(boolean byShowing)
Deprecated.
|
void |
addActivity()
Deprecated.
|
boolean |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root)
Deprecated.
|
boolean |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root,
boolean updateStructure)
Deprecated.
|
boolean |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root,
java.lang.Runnable runAfterUpdate)
Deprecated.
|
boolean |
addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root,
java.lang.Runnable runAfterUpdate,
boolean updateStructure)
Deprecated.
|
void |
assertIsDispatchThread()
Deprecated.
|
ActionCallback |
batch(Progressive progressive)
Deprecated.
|
void |
buildNodeForPath(java.lang.Object [] path)
Deprecated.
|
static <T> T |
calculateYieldingToWriteAction(java.util.function.Supplier<? extends T> producer)
Deprecated.
|
ActionCallback |
cancelUpdate()
Deprecated.
|
protected boolean |
canYield()
Deprecated.
|
void |
collapseChildren(java.lang.Object element,
java.lang.Runnable onDone)
Deprecated.
|
protected javax.swing.tree.DefaultMutableTreeNode |
createChildNode(NodeDescriptor descriptor)
Deprecated.
|
void |
doUpdateFromRoot()
Deprecated.
|
void |
executeUserRunnable(java.lang.Runnable runnable)
Deprecated.
|
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 AbstractTreeBuilder |
getBuilder()
Deprecated.
|
java.lang.Object |
getElementFor(java.lang.Object node)
Deprecated.
|
java.lang.Object |
getElementFromDescriptor(NodeDescriptor descriptor)
Deprecated.
|
java.util.List<java.lang.Object> |
getExpandedElements()
Deprecated.
|
ActionCallback |
getInitialized()
Deprecated.
|
javax.swing.tree.DefaultMutableTreeNode |
getNodeForElement(java.lang.Object element,
boolean validateAgainstStructure)
Deprecated.
|
javax.swing.tree.DefaultMutableTreeNode |
getNodeForPath(java.lang.Object [] path)
Deprecated.
|
ProgressIndicator |
getProgress()
Deprecated.
|
ActionCallback |
getReady(java.lang.Object requestor)
Deprecated.
|
javax.swing.tree.DefaultMutableTreeNode |
getRootNode()
Deprecated.
|
java.lang.String |
getStatus()
Deprecated.
|
javax.swing.JTree |
getTree()
Deprecated.
|
javax.swing.tree.DefaultTreeModel |
getTreeModel()
Deprecated.
|
AbstractTreeStructure |
getTreeStructure()
Deprecated.
|
AbstractTreeUpdater |
getUpdater()
Deprecated.
|
boolean |
hasPendingWork()
Deprecated.
|
protected void |
init(AbstractTreeBuilder builder,
javax.swing.JTree tree,
javax.swing.tree.DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
java.util.Comparator<? super NodeDescriptor<?>> comparator,
boolean updateIfInactive)
Deprecated.
|
protected void |
initRootNode()
Deprecated.
|
boolean |
isCancelled(java.lang.Object node)
Deprecated.
|
boolean |
isConsistent()
Deprecated.
|
boolean |
isIdle()
Deprecated.
|
static boolean |
isLoadingChildrenFor(java.lang.Object nodeObject)
Deprecated.
|
static boolean |
isLoadingNode(java.lang.Object node)
Deprecated.
|
boolean |
isReady()
Deprecated.
|
boolean |
isReady(boolean attempt)
Deprecated.
|
boolean |
isReleased()
Deprecated.
|
ActionCallback |
queueUpdate(java.lang.Object element)
Deprecated.
|
ActionCallback |
queueUpdate(java.lang.Object fromElement,
boolean updateStructure)
Deprecated.
|
protected void |
runOnYieldingDone(java.lang.Runnable onDone)
Deprecated.
|
void |
scrollSelectionToVisible(java.lang.Runnable onDone,
boolean shouldBeCentered)
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 [] elements,
java.lang.Runnable onDone,
boolean addToSelection,
boolean deferred)
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 |
setClearOnHideDelay(long clearOnHideDelay)
Deprecated.
|
void |
setNodeDescriptorComparator(java.util.Comparator<? super NodeDescriptor<?>> nodeDescriptorComparator)
Deprecated.
|
void |
setRootNode(javax.swing.tree.DefaultMutableTreeNode rootNode)
Deprecated.
|
void |
setTreeStructure(AbstractTreeStructure treeStructure)
Deprecated.
|
void |
setUpdater(AbstractTreeUpdater updater)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
void |
updateSubtree(javax.swing.tree.DefaultMutableTreeNode node,
boolean canSmartExpand)
Deprecated.
|
void |
userSelect(java.lang.Object [] elements,
java.lang.Runnable onDone,
boolean addToSelection,
boolean scroll)
Deprecated.
|
protected void |
yieldToEDT(java.lang.Runnable runnable)
Deprecated.
|
public java.lang.String toString()
toString
in class java.lang.Object
protected void init(AbstractTreeBuilder builder, javax.swing.JTree tree, javax.swing.tree.DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, java.util.Comparator<? super NodeDescriptor<?>> comparator, boolean updateIfInactive)
public void activate(boolean byShowing)
public ProgressIndicator getProgress()
public boolean isReleased()
public final AbstractTreeStructure getTreeStructure()
public final javax.swing.JTree getTree()
public final javax.swing.tree.DefaultMutableTreeNode getNodeForElement(java.lang.Object element, boolean validateAgainstStructure)
public final javax.swing.tree.DefaultMutableTreeNode getNodeForPath(java.lang.Object [] path)
public final void buildNodeForPath(java.lang.Object [] path)
public final void setNodeDescriptorComparator(java.util.Comparator<? super NodeDescriptor<?>> nodeDescriptorComparator)
protected AbstractTreeBuilder getBuilder()
protected final void initRootNode()
public void assertIsDispatchThread()
public ActionCallback queueUpdate(java.lang.Object element)
public ActionCallback queueUpdate(java.lang.Object fromElement, boolean updateStructure)
public void doUpdateFromRoot()
public final void updateSubtree(javax.swing.tree.DefaultMutableTreeNode node, boolean canSmartExpand)
public java.lang.Object getElementFromDescriptor(NodeDescriptor descriptor)
public static <T> T calculateYieldingToWriteAction(java.util.function.Supplier<? extends T> producer) throws ProcessCanceledException
ProcessCanceledException
public boolean isCancelled(java.lang.Object node)
public boolean isReady()
public boolean isReady(boolean attempt)
public java.lang.String getStatus()
public boolean hasPendingWork()
public boolean isIdle()
protected void runOnYieldingDone(java.lang.Runnable onDone)
protected void yieldToEDT(java.lang.Runnable runnable)
public static boolean isLoadingNode(java.lang.Object node)
protected javax.swing.tree.DefaultMutableTreeNode createChildNode(NodeDescriptor descriptor)
protected boolean canYield()
public ActionCallback getInitialized()
public ActionCallback getReady(java.lang.Object requestor)
public java.util.List<java.lang.Object> getExpandedElements()
public ActionCallback cancelUpdate()
public ActionCallback batch(Progressive progressive)
public void executeUserRunnable(java.lang.Runnable runnable)
public static boolean isLoadingChildrenFor(java.lang.Object nodeObject)
public javax.swing.tree.DefaultTreeModel getTreeModel()
public boolean addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root)
public boolean addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root, boolean updateStructure)
public boolean addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root, java.lang.Runnable runAfterUpdate)
public boolean addSubtreeToUpdate(javax.swing.tree.DefaultMutableTreeNode root, java.lang.Runnable runAfterUpdate, boolean updateStructure)
public void select(java.lang.Object [] elements, java.lang.Runnable onDone)
public void select(java.lang.Object [] elements, java.lang.Runnable onDone, boolean addToSelection)
public void select(java.lang.Object [] elements, java.lang.Runnable onDone, boolean addToSelection, boolean deferred)
public void userSelect(java.lang.Object [] elements, java.lang.Runnable onDone, boolean addToSelection, boolean scroll)
public void select(java.lang.Object element, java.lang.Runnable onDone)
public void select(java.lang.Object element, java.lang.Runnable onDone, boolean addToSelection)
public void scrollSelectionToVisible(java.lang.Runnable onDone, boolean shouldBeCentered)
public void expandAll(java.lang.Runnable onDone)
public void expand(java.lang.Object element, java.lang.Runnable onDone)
public void expand(java.lang.Object [] element, java.lang.Runnable onDone)
public void collapseChildren(java.lang.Object element, java.lang.Runnable onDone)
public java.lang.Object getElementFor(java.lang.Object node)
public void setTreeStructure(AbstractTreeStructure treeStructure)
public AbstractTreeUpdater getUpdater()
public void setUpdater(AbstractTreeUpdater updater)
public javax.swing.tree.DefaultMutableTreeNode getRootNode()
public void setRootNode(javax.swing.tree.DefaultMutableTreeNode rootNode)
public void addActivity()
public void setClearOnHideDelay(long clearOnHideDelay)
public final boolean isConsistent()