public class TaskTreeComponent extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TaskTreeComponent.Interaction |
class |
TaskTreeComponent.MultipleSelection
Object to hold onto mutliple selections, but not just multiples of the same type of node.
|
class |
TaskTreeComponent.ProjectTreeNode
This represents a project.
|
class |
TaskTreeComponent.TaskTreeBaseNode
This is a basic tree node.
|
class |
TaskTreeComponent.TaskTreeNode
This represents a single task.
|
| Constructor and Description |
|---|
TaskTreeComponent(GradlePluginLord gradlePluginLord,
TaskTreeComponent.Interaction interaction) |
| Modifier and Type | Method and Description |
|---|---|
TaskTreeComponent.TaskTreeBaseNode |
getFirstSelectedNode() |
TaskTreeComponent.TaskTreeBaseNode |
getNodeAtPoint(Point point)
Returns the node at the specified point.
|
List<TaskTreeComponent.TaskTreeBaseNode> |
getSelectedNodes() |
TaskTreeComponent.MultipleSelection |
getSelectedProjectsAndTasks()
This returns the current selection broken up into projects and tasks.
|
List<TaskView> |
getSelectedTasks()
This returns a list of selected tasks.
|
JTree |
getTree() |
boolean |
hasProjectsSelected()
Determines if we have any projects selected.
|
boolean |
hasTasksSelected()
Determines if we have any tasks selected.
|
boolean |
isPopulated() |
void |
populate(ProjectAndTaskFilter filter)
This populates (and repopulates) the tree.
|
void |
setShowDescription(boolean showDescription) |
void |
setTreeCellRenderer(TreeCellRenderer renderer) |
boolean |
showDescription() |
public TaskTreeComponent(GradlePluginLord gradlePluginLord, TaskTreeComponent.Interaction interaction)
public JTree getTree()
public void setTreeCellRenderer(TreeCellRenderer renderer)
public void populate(ProjectAndTaskFilter filter)
public boolean isPopulated()
public TaskTreeComponent.TaskTreeBaseNode getNodeAtPoint(Point point)
public TaskTreeComponent.TaskTreeBaseNode getFirstSelectedNode()
public List<TaskTreeComponent.TaskTreeBaseNode> getSelectedNodes()
public boolean hasProjectsSelected()
public boolean hasTasksSelected()
public List<TaskView> getSelectedTasks()
public TaskTreeComponent.MultipleSelection getSelectedProjectsAndTasks()
public boolean showDescription()
public void setShowDescription(boolean showDescription)
Copyright © 2013. All rights reserved