BrightSide Workbench Full Report + Source Code
org.turro.dashboard.AbstractDashboard Class Referenceabstract
Inheritance diagram for org.turro.dashboard.AbstractDashboard:
Collaboration diagram for org.turro.dashboard.AbstractDashboard:

Public Member Functions

void loadData () throws ServletException, IOException
 
CollectionHtmlIterator getIterator ()
 
String getFullTemplate ()
 
String getSummaryTemplate ()
 
int getCount ()
 
String getSclass ()
 
String getStart ()
 
String getEnd ()
 
void startConstruction () throws ServletException, IOException
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractElement
 AbstractElement ()
 
String getId ()
 
String getType ()
 
String getTitle ()
 
void setTitle (String title)
 
Collection< String > getMetas ()
 
void setMetas (Collection< String > metas)
 
ElContext getContext ()
 
IConstructor getConstructor ()
 
void setConfiguration (IConstructor constructor, ElContext context)
 
String getStartTitle ()
 
String getEndTitle ()
 
String getStartBody ()
 
String getEndBody ()
 
String getStartFooter ()
 
String getEndFooter ()
 
String getStartOption ()
 
String getEndOption ()
 
boolean canDisplay ()
 
boolean isSelectable ()
 
boolean isInRole ()
 
boolean canPrint ()
 
String getElementFolder ()
 
boolean isOriginalContext ()
 
void setRootCategories (ElContext root)
 
String getTypeName ()
 
AttributeSupport getAttributes ()
 
void applyChanges ()
 
void populateFromParent ()
 
void setDefaultMetas ()
 
void setConfiguration (Element conf, Element factory)
 

Protected Member Functions

abstract CollectionHtmlIterator initIterator ()
 
abstract void initSearchEngine ()
 
DashboardContext getDashboardContext ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractElement
IConstructor constructor
 
ElContext context
 
AttributeSupport attrSupport
 
Element conf = null
 
String[] types
 
String title
 
Collection< String > metas
 

Detailed Description

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

Definition at line 31 of file AbstractDashboard.java.

Member Function Documentation

◆ getCount()

int org.turro.dashboard.AbstractDashboard.getCount ( )

Definition at line 73 of file AbstractDashboard.java.

73  {
74  return count;
75  }

◆ getDashboardContext()

DashboardContext org.turro.dashboard.AbstractDashboard.getDashboardContext ( )
protected

Definition at line 117 of file AbstractDashboard.java.

117  {
118  return DashboardContext.getInstance(constructor);
119  }
Here is the call graph for this function:

◆ getEnd()

String org.turro.dashboard.AbstractDashboard.getEnd ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 87 of file AbstractDashboard.java.

87  {
88  return "</div>";
89  }
Here is the caller graph for this function:

◆ getFullTemplate()

String org.turro.dashboard.AbstractDashboard.getFullTemplate ( )

Definition at line 65 of file AbstractDashboard.java.

65  {
66  return fullTemplate;
67  }

◆ getIterator()

CollectionHtmlIterator org.turro.dashboard.AbstractDashboard.getIterator ( )

Definition at line 61 of file AbstractDashboard.java.

61  {
62  return iterator;
63  }
Here is the caller graph for this function:

◆ getSclass()

String org.turro.dashboard.AbstractDashboard.getSclass ( )

Definition at line 77 of file AbstractDashboard.java.

77  {
78  return sclass;
79  }
Here is the caller graph for this function:

◆ getStart()

String org.turro.dashboard.AbstractDashboard.getStart ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 82 of file AbstractDashboard.java.

82  {
83  return "<div class='dashboard " + getSclass() + "'>";
84  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSummaryTemplate()

String org.turro.dashboard.AbstractDashboard.getSummaryTemplate ( )

Definition at line 69 of file AbstractDashboard.java.

69  {
70  return summaryTemplate;
71  }

◆ initIterator()

abstract CollectionHtmlIterator org.turro.dashboard.AbstractDashboard.initIterator ( )
abstractprotected

Reimplemented in org.turro.alliance.client.ProjectGrantDashboard.

Here is the caller graph for this function:

◆ initSearchEngine()

abstract void org.turro.dashboard.AbstractDashboard.initSearchEngine ( )
abstractprotected

◆ loadData()

void org.turro.dashboard.AbstractDashboard.loadData ( ) throws ServletException, IOException

This method loads element's data. It gets called within IConstructor.startConstruction() and before element's startConstruction() method.

Exceptions
javax.servlet.ServletException
java.io.IOException

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 38 of file AbstractDashboard.java.

38  {
39  sclass = getAttributes().getAttributeValue("attrib:sclass", "");
40  count = getAttributes().getAttributeIntegerValue("attrib:count", 10);
41  fullTemplate = getAttributes().getAttributeValue("attrib:fullTemplate", "");
42  summaryTemplate = getAttributes().getAttributeValue("attrib:summaryTemplate", "");
43  iterator = initIterator();
44 // HtmlSearch dhs = getSearchEngine();
45 // if(dhs != null) {
46 // iterator.setSearchEngine(dhs);
47 // initSearchEngine();
48 // }
49  iterator.setPage(count);
50  iterator.setFullTemplate(fullTemplate);
51  iterator.setSummaryTemplate(summaryTemplate);
52  iterator.load();
53  setTitle(iterator.getTitle());
54  if(iterator.isItem()) {
55  setMetas(iterator.getMetas());
56  } else {
58  }
59  }
abstract CollectionHtmlIterator initIterator()
Here is the call graph for this function:

◆ startConstruction()

void org.turro.dashboard.AbstractDashboard.startConstruction ( ) throws ServletException, IOException

This method start element's construction. It gets called within IConstructor.startConstruction().

Exceptions
javax.servlet.ServletException
java.io.IOException

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 92 of file AbstractDashboard.java.

92  {
93  PrintWriter out = getConstructor().getOut();
94  out.print(getStart());
95  out.print(getStartBody());
96 
97 // if(!getIterator().isItem()) {
98 // DaoHtmlSearch dhs = getSearchEngine();
99 // if(dhs != null) {
100 // getIterator().setSearchEngine(dhs);
101 // }
102 // }
103 
104  getIterator().render();
105 
106  out.print(getEndBody());
107  out.print(getEnd());
108  }
Here is the call graph for this function:

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