BrightSide Workbench Full Report + Source Code
org.turro.attach.zul.navigator.AttachTree Class Reference
Inheritance diagram for org.turro.attach.zul.navigator.AttachTree:
Collaboration diagram for org.turro.attach.zul.navigator.AttachTree:

Public Member Functions

 AttachTree ()
 
AttachNavigatorListener getAttachListener ()
 
void setAttachListener (AttachNavigatorListener listener)
 
void setDoProcessors (boolean doProcessors)
 
AttachFolder addFolder (String label, String path, boolean loadOnDemand)
 
AttachFolder getSelectedFolder ()
 
void setSelectedFolder (AttachFolder folder)
 
AttachFolder selectFirst ()
 
AttachResults getResults ()
 
void setResults (AttachResults results)
 
void resetTree ()
 
void reloadContents ()
 
boolean getCanDelete ()
 
boolean getCanNew ()
 
boolean getCanEdit ()
 
void afterCompose ()
 

Detailed Description

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

Definition at line 30 of file zul/navigator/AttachTree.java.

Constructor & Destructor Documentation

◆ AttachTree()

org.turro.attach.zul.navigator.AttachTree.AttachTree ( )

Definition at line 37 of file zul/navigator/AttachTree.java.

37  {
38  super();
39  addChildrenSpace();
40  }

Member Function Documentation

◆ addFolder()

AttachFolder org.turro.attach.zul.navigator.AttachTree.addFolder ( String  label,
String  path,
boolean  loadOnDemand 
)

Definition at line 55 of file zul/navigator/AttachTree.java.

55  {
56  AttachFolder af = new AttachFolder(label, path, loadOnDemand);
57  children.appendChild(af);
58  af.afterCompose();
59  if(doProcessors) af.doProcessors();
60  return af;
61  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ afterCompose()

void org.turro.attach.zul.navigator.AttachTree.afterCompose ( )

Definition at line 131 of file zul/navigator/AttachTree.java.

131  {
132  }

◆ getAttachListener()

AttachNavigatorListener org.turro.attach.zul.navigator.AttachTree.getAttachListener ( )

Definition at line 42 of file zul/navigator/AttachTree.java.

42  {
43  return attachListener;
44  }
Here is the caller graph for this function:

◆ getCanDelete()

boolean org.turro.attach.zul.navigator.AttachTree.getCanDelete ( )

Definition at line 118 of file zul/navigator/AttachTree.java.

118  {
119  return Application.getApplication().isInRole("attach:delete");
120  }
Here is the call graph for this function:

◆ getCanEdit()

boolean org.turro.attach.zul.navigator.AttachTree.getCanEdit ( )

Definition at line 126 of file zul/navigator/AttachTree.java.

126  {
127  return Application.getApplication().isInRole("attach:edit");
128  }
Here is the call graph for this function:

◆ getCanNew()

boolean org.turro.attach.zul.navigator.AttachTree.getCanNew ( )

Definition at line 122 of file zul/navigator/AttachTree.java.

122  {
123  return Application.getApplication().isInRole("attach:new");
124  }
Here is the call graph for this function:

◆ getResults()

AttachResults org.turro.attach.zul.navigator.AttachTree.getResults ( )

Definition at line 93 of file zul/navigator/AttachTree.java.

93  {
94  return results;
95  }

◆ getSelectedFolder()

AttachFolder org.turro.attach.zul.navigator.AttachTree.getSelectedFolder ( )

Definition at line 63 of file zul/navigator/AttachTree.java.

63  {
64  if(getSelectedItem() instanceof AttachFolder) {
65  return (AttachFolder) getSelectedItem();
66  }
67  return null;
68  }
Here is the caller graph for this function:

◆ reloadContents()

void org.turro.attach.zul.navigator.AttachTree.reloadContents ( )

Definition at line 110 of file zul/navigator/AttachTree.java.

110  {
111  for(Object o : children.getChildren()) {
112  if(o instanceof AttachFolder) {
113  ((AttachFolder) o).reloadContents();
114  }
115  }
116  }
Here is the caller graph for this function:

◆ resetTree()

void org.turro.attach.zul.navigator.AttachTree.resetTree ( )

Definition at line 101 of file zul/navigator/AttachTree.java.

101  {
102  children.getChildren().clear();
103  }

◆ selectFirst()

AttachFolder org.turro.attach.zul.navigator.AttachTree.selectFirst ( )

Definition at line 82 of file zul/navigator/AttachTree.java.

82  {
83  for(Object o : getItems()) {
84  if(o instanceof AttachFolder) {
85  AttachFolder af = (AttachFolder) o;
86  setSelectedItem(af);
87  return af;
88  }
89  }
90  return null;
91  }
Here is the caller graph for this function:

◆ setAttachListener()

void org.turro.attach.zul.navigator.AttachTree.setAttachListener ( AttachNavigatorListener  listener)

Definition at line 46 of file zul/navigator/AttachTree.java.

46  {
47  this.attachListener = listener;
48  }

◆ setDoProcessors()

void org.turro.attach.zul.navigator.AttachTree.setDoProcessors ( boolean  doProcessors)

Definition at line 50 of file zul/navigator/AttachTree.java.

50  {
51  this.doProcessors = doProcessors;
52  }

◆ setResults()

void org.turro.attach.zul.navigator.AttachTree.setResults ( AttachResults  results)

Definition at line 97 of file zul/navigator/AttachTree.java.

97  {
98  this.results = results;
99  }

◆ setSelectedFolder()

void org.turro.attach.zul.navigator.AttachTree.setSelectedFolder ( AttachFolder  folder)

Definition at line 70 of file zul/navigator/AttachTree.java.

70  {
71  for(Object o : getItems()) {
72  if(o instanceof AttachFolder) {
73  AttachFolder af = (AttachFolder) o;
74  if(af.getPath().equals(folder.getPath())) {
75  setSelectedItem(af);
76  break;
77  }
78  }
79  }
80  }
Here is the call graph for this function:

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