1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.widget;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
21 import org.kuali.rice.krad.uif.util.ExpressionUtils;
22 import org.kuali.rice.krad.uif.view.View;
23 import org.kuali.rice.krad.uif.component.Component;
24
25 import java.util.ArrayList;
26 import java.util.HashMap;
27 import java.util.List;
28 import java.util.Map;
29
30
31
32
33
34
35
36 @BeanTag(name = "breadcrumbs-bean", parent = "Uif-Breadcrumbs")
37 public class Breadcrumbs extends WidgetBase {
38 private static final long serialVersionUID = -2864287914665842251L;
39
40 private boolean displayBreadcrumbsWhenOne;
41 private boolean usePathBasedBreadcrumbs;
42
43 public Breadcrumbs() {
44 super();
45 }
46
47
48
49
50
51
52
53
54
55
56
57 @Override
58 public void performApplyModel(View view, Object model, Component parent) {
59 super.performApplyModel(view, model, parent);
60 }
61
62
63
64
65
66
67
68 @BeanTagAttribute(name = "displayBreadcrumbsWhenOne")
69 public boolean isDisplayBreadcrumbsWhenOne() {
70 return this.displayBreadcrumbsWhenOne;
71 }
72
73
74
75
76
77
78 public void setDisplayBreadcrumbsWhenOne(boolean displayBreadcrumbsWhenOne) {
79 this.displayBreadcrumbsWhenOne = displayBreadcrumbsWhenOne;
80 }
81
82
83
84
85
86
87 @BeanTagAttribute(name = "usePathBasedBreadcrumbs")
88 public boolean isUsePathBasedBreadcrumbs() {
89 return usePathBasedBreadcrumbs;
90 }
91
92
93
94
95
96
97 public void setUsePathBasedBreadcrumbs(boolean usePathBasedBreadcrumbs) {
98 this.usePathBasedBreadcrumbs = usePathBasedBreadcrumbs;
99 }
100
101
102
103
104 @Override
105 protected <T> void copyProperties(T component) {
106 super.copyProperties(component);
107 Breadcrumbs breadcrumbsCopy = (Breadcrumbs) component;
108 breadcrumbsCopy.setDisplayBreadcrumbsWhenOne(this.displayBreadcrumbsWhenOne);
109 breadcrumbsCopy.setUsePathBasedBreadcrumbs(this.usePathBasedBreadcrumbs);
110 }
111 }