BrightSide Workbench Full Report + Source Code
org.turro.elephant.web.ContextTree Class Reference
Inheritance diagram for org.turro.elephant.web.ContextTree:
Collaboration diagram for org.turro.elephant.web.ContextTree:

Public Member Functions

 ContextTree ()
 
void reload ()
 
ContextItem addContext (ElContext context, boolean loadOnDemand)
 
void selectPath (String path)
 

Detailed Description

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

Definition at line 31 of file ContextTree.java.

Constructor & Destructor Documentation

◆ ContextTree()

org.turro.elephant.web.ContextTree.ContextTree ( )

Definition at line 35 of file ContextTree.java.

35  {
36  children = new Treechildren();
37  appendChild(children);
38  initiate();
39  }

Member Function Documentation

◆ addContext()

ContextItem org.turro.elephant.web.ContextTree.addContext ( ElContext  context,
boolean  loadOnDemand 
)

Definition at line 55 of file ContextTree.java.

55  {
56  ContextItem ci = new ContextItem(context, loadOnDemand);
57  children.appendChild(ci);
58  return ci;
59  }

◆ reload()

void org.turro.elephant.web.ContextTree.reload ( )

Definition at line 50 of file ContextTree.java.

50  {
51  children.getChildren().clear();
52  addContext(ElContextMap.getRoot(), false).showContents();
53  }
ContextItem addContext(ElContext context, boolean loadOnDemand)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectPath()

void org.turro.elephant.web.ContextTree.selectPath ( String  path)

Definition at line 61 of file ContextTree.java.

61  {
62  for(Treeitem item : getItems()) {
63  ContextItem ci = (ContextItem) item;
64  if(path.equals(ci.getElContext().getPath())) {
65  setSelectedItem(item);
66  break;
67  }
68  }
69  Treeitem parent = getSelectedItem().getParentItem();
70  while(parent != null) {
71  parent.setOpen(true);
72  parent = parent.getParentItem();
73  }
74  }
Here is the call graph for this function:
Here is the caller graph for this function:

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