BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.relation.IssueRelationTree Class Reference
Inheritance diagram for org.turro.dossier.zul.relation.IssueRelationTree:
Collaboration diagram for org.turro.dossier.zul.relation.IssueRelationTree:

Public Member Functions

 IssueRelationTree ()
 
Changes getChanges ()
 
void setChanges (Changes changes)
 
Issue getIssue ()
 
void setIssue (Issue issue)
 
int getMode ()
 
void setMode (int mode)
 
IssueRelation getSelectedRelation ()
 
void addRelation ()
 
void editRelation ()
 
void deleteRelation ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file IssueRelationTree.java.

Constructor & Destructor Documentation

◆ IssueRelationTree()

org.turro.dossier.zul.relation.IssueRelationTree.IssueRelationTree ( )

Definition at line 48 of file IssueRelationTree.java.

48  {
49  super();
50  addColumns();
51  addChildrenSpace();
52  mode = 0;
53  }

Member Function Documentation

◆ addRelation()

void org.turro.dossier.zul.relation.IssueRelationTree.addRelation ( )

Definition at line 131 of file IssueRelationTree.java.

131  {
132  if(IssueRelationTree.this.getSelectedItem() instanceof IssueRelation) {
133  try {
134  IssueRelation ir = (IssueRelation) IssueRelationTree.this.getSelectedItem();
135  ir.doAddRelation(changes);
136  } catch (InterruptedException ex) {
137  Logger.getLogger(IssueRelationTree.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
138  }
139  }
140  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteRelation()

void org.turro.dossier.zul.relation.IssueRelationTree.deleteRelation ( )

Definition at line 153 of file IssueRelationTree.java.

153  {
154  if(IssueRelationTree.this.getSelectedItem() instanceof IssueRelation) {
155  try {
156  IssueRelation ir = (IssueRelation) IssueRelationTree.this.getSelectedItem();
157  if(changes != null) {
158  ChangeCategory cc = new ChangeCategory(3, I_.get("Relations"));
159  changes.addChange(new UniqueString(cc, "", "-" + ir.getPredecessor().getFullDescription()));
160  }
161  ir.doDeleteRelation();
162  } catch (InterruptedException ex) {
163  Logger.getLogger(IssueRelationTree.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
164  }
165  }
166  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editRelation()

void org.turro.dossier.zul.relation.IssueRelationTree.editRelation ( )

Definition at line 142 of file IssueRelationTree.java.

142  {
143  if(IssueRelationTree.this.getSelectedItem() instanceof IssueRelation) {
144  try {
145  IssueRelation ir = (IssueRelation) IssueRelationTree.this.getSelectedItem();
146  ir.doEditRelation(changes);
147  } catch (InterruptedException ex) {
148  Logger.getLogger(IssueRelationTree.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
149  }
150  }
151  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChanges()

Changes org.turro.dossier.zul.relation.IssueRelationTree.getChanges ( )

Definition at line 55 of file IssueRelationTree.java.

55  {
56  return changes;
57  }

◆ getIssue()

Issue org.turro.dossier.zul.relation.IssueRelationTree.getIssue ( )

Definition at line 63 of file IssueRelationTree.java.

63  {
64  return issue;
65  }

◆ getMode()

int org.turro.dossier.zul.relation.IssueRelationTree.getMode ( )

Definition at line 77 of file IssueRelationTree.java.

77  {
78  return mode;
79  }

◆ getSelectedRelation()

IssueRelation org.turro.dossier.zul.relation.IssueRelationTree.getSelectedRelation ( )

Definition at line 85 of file IssueRelationTree.java.

85  {
86  if(IssueRelationTree.this.getSelectedItem() instanceof IssueRelation) {
87  return (IssueRelation) IssueRelationTree.this.getSelectedItem();
88  }
89  return null;
90  }
Here is the caller graph for this function:

◆ setChanges()

void org.turro.dossier.zul.relation.IssueRelationTree.setChanges ( Changes  changes)

Definition at line 59 of file IssueRelationTree.java.

59  {
60  this.changes = changes;
61  }

◆ setIssue()

void org.turro.dossier.zul.relation.IssueRelationTree.setIssue ( Issue  issue)

Definition at line 67 of file IssueRelationTree.java.

67  {
68  if(issue != null) {
69  this.issue = issue;
70  removeChild(children);
71  addChildrenSpace();
72  addRoots(new IssueRelation(null, issue), mode == 0 ? 1 : 999);
73  openChildrenWithIssue(children.getChildren());
74  }
75  }
Here is the caller graph for this function:

◆ setMode()

void org.turro.dossier.zul.relation.IssueRelationTree.setMode ( int  mode)

Definition at line 81 of file IssueRelationTree.java.

81  {
82  this.mode = mode;
83  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: