- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 39 of file CategoryItem.java.
◆ CategoryItem()
org.turro.dossier.dossier.CategoryItem.CategoryItem |
( |
Category |
category, |
|
|
boolean |
loadOnDemand |
|
) |
| |
Definition at line 44 of file CategoryItem.java.
46 this.loadOnDemand = loadOnDemand;
48 setLabel(category ==
null ? I_.get(
"All") : category.getDescription());
49 setTooltiptext(getLabel());
◆ addCategory()
CategoryItem org.turro.dossier.dossier.CategoryItem.addCategory |
( |
Category |
category, |
|
|
boolean |
loadOnDemand |
|
) |
| |
Definition at line 93 of file CategoryItem.java.
95 children.appendChild(cat);
CategoryItem(Category category, boolean loadOnDemand)
◆ afterCompose()
void org.turro.dossier.dossier.CategoryItem.afterCompose |
( |
| ) |
|
◆ getCategory()
Category org.turro.dossier.dossier.CategoryItem.getCategory |
( |
| ) |
|
◆ getCategoryChildren()
Collection<Category> org.turro.dossier.dossier.CategoryItem.getCategoryChildren |
( |
| ) |
|
Definition at line 127 of file CategoryItem.java.
128 boolean all = Application.getApplication().isInRole(
"dossier:all");
129 Dao dao =
new DossierPU();
130 WhereClause wc =
new WhereClause();
131 wc.addClause(
"select category from Category as category");
133 wc.addClause(
"where parent is null");
135 wc.addClause(
"where parent = :category");
139 wc.addClause(
"order by category.description");
140 ArrayList<Category> list =
new ArrayList<Category>();
141 for(Object o : dao.getResultList(wc)) {
142 if(all ||
new CategoryWrapper((Category) (o)).isChildrenParticipant()) {
143 list.add((Category) o);
◆ getTree()
CategoryTree org.turro.dossier.dossier.CategoryItem.getTree |
( |
| ) |
|
◆ isLeaf()
boolean org.turro.dossier.dossier.CategoryItem.isLeaf |
( |
| ) |
|
◆ isLoadOnDemand()
boolean org.turro.dossier.dossier.CategoryItem.isLoadOnDemand |
( |
| ) |
|
◆ reloadContents()
void org.turro.dossier.dossier.CategoryItem.reloadContents |
( |
| ) |
|
Definition at line 66 of file CategoryItem.java.
67 if(children !=
null) {
68 children.getChildren().clear();
◆ setLoadOnDemand()
void org.turro.dossier.dossier.CategoryItem.setLoadOnDemand |
( |
boolean |
loadOnDemand | ) |
|
◆ showContents()
void org.turro.dossier.dossier.CategoryItem.showContents |
( |
| ) |
|
The documentation for this class was generated from the following file: