BrightSide Workbench Full Report + Source Code
org.turro.jpa.iterator.DaoHtmlTree< E, ID > Class Template Referenceabstract
Inheritance diagram for org.turro.jpa.iterator.DaoHtmlTree< E, ID >:
Collaboration diagram for org.turro.jpa.iterator.DaoHtmlTree< E, ID >:

Public Member Functions

 DaoHtmlTree (Dao dao, ElephantMarker marker)
 
String getTreeTemplate ()
 
void setTreeTemplate (String treeTemplate)
 
String getFullTemplate ()
 
void setFullTemplate (String fullTemplate)
 
void render ()
 
String parse ()
 
VisualElements getVisuals ()
 
void renderSelected ()
 
String parseSelected ()
 
- Public Member Functions inherited from org.turro.jpa.iterator.DaoTree< E, ID >
 DaoTree (Dao dao)
 
Dao getDao ()
 
void fillTree (String path)
 
void fillRoot (Item item)
 

Protected Member Functions

VisualElements loadVisuals ()
 
abstract void renderTree (ElephantMarker marker, List< Item< E, ID >> items)
 
abstract void renderItem (ElephantMarker marker, E item)
 
abstract String parseTree (ElephantMarker marker, List< Item< E, ID >> items)
 
abstract String parseItem (ElephantMarker marker, E item)
 
- Protected Member Functions inherited from org.turro.jpa.iterator.DaoTree< E, ID >
abstract WhereClause getChildrenClause (String currPath)
 
abstract WhereClause getLeafClause (String currPath)
 

Protected Attributes

IConstructor constructor
 
ElephantMarker marker
 
- Protected Attributes inherited from org.turro.jpa.iterator.DaoTree< E, ID >
Dao dao
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Parameters
<E>
<ID>

Definition at line 39 of file DaoHtmlTree.java.

Constructor & Destructor Documentation

◆ DaoHtmlTree()

Definition at line 48 of file DaoHtmlTree.java.

48  {
49  super(dao);
50  this.marker = marker;
52  this.idClass = (Class<ID>) ((ParameterizedType) getClass()
53  .getGenericSuperclass()).getActualTypeArguments()[1];
54  }
Here is the call graph for this function:

Member Function Documentation

◆ getFullTemplate()

String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.getFullTemplate ( )

Definition at line 64 of file DaoHtmlTree.java.

64  {
65  return Strings.isBlank(fullTemplate) ? "full" : fullTemplate;
66  }
Here is the caller graph for this function:

◆ getTreeTemplate()

String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.getTreeTemplate ( )

Definition at line 56 of file DaoHtmlTree.java.

56  {
57  return Strings.isBlank(treeTemplate) ? "tree" : treeTemplate;
58  }
Here is the caller graph for this function:

◆ getVisuals()

VisualElements org.turro.jpa.iterator.DaoHtmlTree< E, ID >.getVisuals ( )

Definition at line 99 of file DaoHtmlTree.java.

99  {
100  if(_visuals == null) {
101  _visuals = loadVisuals();
102  }
103  return _visuals;
104  }
Here is the call graph for this function:

◆ loadVisuals()

VisualElements org.turro.jpa.iterator.DaoHtmlTree< E, ID >.loadVisuals ( )
protected

Reimplemented in org.turro.alliance.www.CategoriesTree, and org.turro.dossier.www.CategoriesTree.

Definition at line 108 of file DaoHtmlTree.java.

108  {
109  return new EmptyVisualElements();
110  }
Here is the caller graph for this function:

◆ parse()

String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.parse ( )

Definition at line 84 of file DaoHtmlTree.java.

84  {
85  marker.put("iterator", this);
86  itemID = (ID) ObjectString.parseString(constructor.getParameter("item"), idClass, false);
87  if(itemID != null) {
88  return parseItem(marker, getEntity(itemID));
89  } else {
90  if(!isEmpty()) {
91  return parseTree(marker, getItems());
92  }
93  }
94  return "";
95  }
abstract String parseItem(ElephantMarker marker, E item)
abstract String parseTree(ElephantMarker marker, List< Item< E, ID >> items)
Object put(Object key, Object value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseItem()

abstract String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.parseItem ( ElephantMarker  marker,
item 
)
abstractprotected

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Here is the caller graph for this function:

◆ parseSelected()

String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.parseSelected ( )

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Definition at line 115 of file DaoHtmlTree.java.

115 { return ""; }
Here is the caller graph for this function:

◆ parseTree()

abstract String org.turro.jpa.iterator.DaoHtmlTree< E, ID >.parseTree ( ElephantMarker  marker,
List< Item< E, ID >>  items 
)
abstractprotected

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Here is the caller graph for this function:

◆ render()

void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.render ( )

Definition at line 72 of file DaoHtmlTree.java.

72  {
73  marker.put("iterator", this);
74  itemID = (ID) ObjectString.parseString(constructor.getParameter("item"), idClass, false);
75  if(itemID != null) {
76  renderItem(marker, getEntity(itemID));
77  } else {
78  if(!isEmpty()) {
79  renderTree(marker, getItems());
80  }
81  }
82  }
abstract void renderItem(ElephantMarker marker, E item)
abstract void renderTree(ElephantMarker marker, List< Item< E, ID >> items)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderItem()

abstract void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.renderItem ( ElephantMarker  marker,
item 
)
abstractprotected

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Here is the caller graph for this function:

◆ renderSelected()

void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.renderSelected ( )

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Definition at line 114 of file DaoHtmlTree.java.

114 {}

◆ renderTree()

abstract void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.renderTree ( ElephantMarker  marker,
List< Item< E, ID >>  items 
)
abstractprotected

Reimplemented in org.turro.jpa.content.TreeDaoContentIterator< E, ID >.

Here is the caller graph for this function:

◆ setFullTemplate()

void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.setFullTemplate ( String  fullTemplate)

Definition at line 68 of file DaoHtmlTree.java.

68  {
69  this.fullTemplate = fullTemplate;
70  }
Here is the caller graph for this function:

◆ setTreeTemplate()

void org.turro.jpa.iterator.DaoHtmlTree< E, ID >.setTreeTemplate ( String  treeTemplate)

Definition at line 60 of file DaoHtmlTree.java.

60  {
61  this.treeTemplate = treeTemplate;
62  }
Here is the caller graph for this function:

Member Data Documentation

◆ constructor

IConstructor org.turro.jpa.iterator.DaoHtmlTree< E, ID >.constructor
protected

Definition at line 41 of file DaoHtmlTree.java.

◆ marker

Definition at line 42 of file DaoHtmlTree.java.


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