1 package org.kuali.student.lum.common.client.lo;
2
3 import org.kuali.student.common.assembly.data.Data;
4 import org.kuali.student.common.assembly.helper.PropertyEnum;
5
6
7
8
9 public class LoDisplayInfoHelper {
10 private Data data;
11 public enum Properties implements PropertyEnum
12 {
13 LO_INFO ("loInfo"),
14 LO_DISPLAY_INFO_LIST ("loDisplayInfoList"),
15 LO_CATEGORY_INFO_LIST ("loCategoryInfoList");
16
17 private final String key;
18
19 private Properties (final String key)
20 {
21 this.key = key;
22 }
23
24 @Override
25 public String getKey ()
26 {
27 return this.key;
28 }
29 }
30
31 public LoDisplayInfoHelper() {
32 data = new Data();
33 }
34
35 public LoDisplayInfoHelper(Data data) {
36 this.data = data;
37 }
38
39 public Data getData() {
40 return data;
41 }
42
43 public void setData(Data data) {
44 this.data = data;
45 }
46
47 public void setLoInfo(Data loInfoData) {
48 HelperUtil.setDataField(LoDisplayInfoHelper.Properties.LO_INFO, data, loInfoData);
49 }
50
51 public Data getLoInfo() {
52 return HelperUtil.getDataField(LoDisplayInfoHelper.Properties.LO_INFO, data);
53 }
54
55 public void setDisplayInfoList(Data displayInfoListData) {
56 HelperUtil.setDataField(LoDisplayInfoHelper.Properties.LO_DISPLAY_INFO_LIST, data, displayInfoListData);
57 }
58
59 public Data getDisplayInfoList() {
60 return HelperUtil.getDataField(LoDisplayInfoHelper.Properties.LO_DISPLAY_INFO_LIST, data);
61 }
62
63 public void setCategoryInfoList(Data categoryInfoListData) {
64 HelperUtil.setDataField(LoDisplayInfoHelper.Properties.LO_CATEGORY_INFO_LIST, data, categoryInfoListData);
65 }
66
67 public Data getCategoryInfoList() {
68 return HelperUtil.getDataField(LoDisplayInfoHelper.Properties.LO_CATEGORY_INFO_LIST, data);
69 }
70 }