public class ExternalSystemTasksTreeModel
extends javax.swing.tree.DefaultTreeModel
Constructor and Description |
---|
ExternalSystemTasksTreeModel(ProjectSystemId externalSystemId) |
Modifier and Type | Method and Description |
---|---|
ExternalSystemNode<ExternalProjectPojo> |
ensureProjectNodeExists(ExternalProjectPojo project)
Ensures that current model has a top-level node which corresponds to the given external project info holder
|
void |
ensureSubProjectsStructure(ExternalProjectPojo topLevelProject,
java.util.Collection<? extends ExternalProjectPojo> subProjects) |
void |
ensureTasks(java.lang.String externalProjectConfigPath,
java.util.Collection<? extends ExternalTaskPojo> tasks) |
ExternalSystemNode<?> |
getRoot() |
void |
insertNodeInto(javax.swing.tree.MutableTreeNode child,
javax.swing.tree.MutableTreeNode parent) |
void |
insertNodeInto(javax.swing.tree.MutableTreeNode child,
javax.swing.tree.MutableTreeNode parent,
int i) |
void |
pruneNodes(java.lang.Object payload)
Asks current model to remove all nodes which have given data as a
payload . |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
public ExternalSystemTasksTreeModel(ProjectSystemId externalSystemId)
public ExternalSystemNode<ExternalProjectPojo> ensureProjectNodeExists(ExternalProjectPojo project)
project
- target external project info holderpublic void pruneNodes(java.lang.Object payload)
payload
.payload
- target payloadpublic void ensureSubProjectsStructure(ExternalProjectPojo topLevelProject, java.util.Collection<? extends ExternalProjectPojo> subProjects)
public void ensureTasks(java.lang.String externalProjectConfigPath, java.util.Collection<? extends ExternalTaskPojo> tasks)
public ExternalSystemNode<?> getRoot()
getRoot
in interface javax.swing.tree.TreeModel
getRoot
in class javax.swing.tree.DefaultTreeModel
public void insertNodeInto(javax.swing.tree.MutableTreeNode child, javax.swing.tree.MutableTreeNode parent)
public void insertNodeInto(javax.swing.tree.MutableTreeNode child, javax.swing.tree.MutableTreeNode parent, int i)
insertNodeInto
in class javax.swing.tree.DefaultTreeModel