public class ProjectNode extends java.lang.Object implements TreeFormatter.TreeNode, java.lang.Comparable<ProjectNode>
ListProjects.| Modifier and Type | Class and Description |
|---|---|
static interface |
ProjectNode.Factory |
| Modifier | Constructor and Description |
|---|---|
protected |
ProjectNode(AllProjectsName allProjectsName,
com.google.gerrit.reviewdb.client.Project project,
boolean isVisible) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ProjectNode child) |
int |
compareTo(ProjectNode o) |
java.util.SortedSet<? extends ProjectNode> |
getChildren() |
java.lang.String |
getDisplayName() |
com.google.gerrit.reviewdb.client.Project.NameKey |
getParentName()
Returns the project parent name.
|
com.google.gerrit.reviewdb.client.Project |
getProject() |
boolean |
isAllProjects() |
boolean |
isVisible() |
@Inject protected ProjectNode(AllProjectsName allProjectsName, com.google.gerrit.reviewdb.client.Project project, boolean isVisible)
public com.google.gerrit.reviewdb.client.Project.NameKey getParentName()
null for the 'All-Projects' root
projectpublic boolean isAllProjects()
public com.google.gerrit.reviewdb.client.Project getProject()
public java.lang.String getDisplayName()
getDisplayName in interface TreeFormatter.TreeNodepublic boolean isVisible()
isVisible in interface TreeFormatter.TreeNodepublic java.util.SortedSet<? extends ProjectNode> getChildren()
getChildren in interface TreeFormatter.TreeNodepublic void addChild(ProjectNode child)
public int compareTo(ProjectNode o)
compareTo in interface java.lang.Comparable<ProjectNode>