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

Public Member Functions

 ContextItem (ElContext context, boolean loadOnDemand)
 
ContextTree getTree ()
 
ElContext getElContext ()
 
ContextItem addContext (ElContext context, boolean loadOnDemand)
 
void showContents ()
 
void reloadContents ()
 
boolean isLoadOnDemand ()
 
void setLoadOnDemand (boolean loadOnDemand)
 

Detailed Description

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

Definition at line 32 of file ContextItem.java.

Constructor & Destructor Documentation

◆ ContextItem()

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

Definition at line 38 of file ContextItem.java.

38  {
39  this.context = context;
40  this.loadOnDemand = loadOnDemand;
41  initLoadOnDemand();
42  addCells();
43  if(!context.getStaticChildren().isEmpty()) addChildrenSpace();
44  }
TreeSet< ElContext > getStaticChildren()
Definition: ElContext.java:201
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addContext()

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

Definition at line 55 of file ContextItem.java.

55  {
56  ContextItem ci = new ContextItem(context, loadOnDemand);
57  children.appendChild(ci);
58  return ci;
59  }
ContextItem(ElContext context, boolean loadOnDemand)
Here is the call graph for this function:

◆ getElContext()

ElContext org.turro.elephant.web.ContextItem.getElContext ( )

Definition at line 51 of file ContextItem.java.

51  {
52  return context;
53  }
Here is the caller graph for this function:

◆ getTree()

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

Definition at line 47 of file ContextItem.java.

47  {
48  return (ContextTree) super.getTree();
49  }

◆ isLoadOnDemand()

boolean org.turro.elephant.web.ContextItem.isLoadOnDemand ( )

Definition at line 92 of file ContextItem.java.

92  {
93  return loadOnDemand;
94  }

◆ reloadContents()

void org.turro.elephant.web.ContextItem.reloadContents ( )

Definition at line 68 of file ContextItem.java.

68  {
69  if(children != null) {
70  children.getChildren().clear();
71  showContents();
72  }
73  }
Here is the call graph for this function:

◆ setLoadOnDemand()

void org.turro.elephant.web.ContextItem.setLoadOnDemand ( boolean  loadOnDemand)

Definition at line 96 of file ContextItem.java.

96  {
97  this.loadOnDemand = loadOnDemand;
98  }

◆ showContents()

void org.turro.elephant.web.ContextItem.showContents ( )

Definition at line 61 of file ContextItem.java.

61  {
62  if(children != null) {
63  fillFolder();
64  setOpen(true);
65  }
66  }
Here is the caller graph for this function:

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