Remove use of unsupported features from client code.
[online-glom:gwt-glom.git] / src / main / java / org / glom / web / shared / libglom / layout / reportparts / LayoutItemGroupBy.java
1 package org.glom.web.shared.libglom.layout.reportparts;
2
3 import org.glom.web.client.StringUtils;
4 import org.glom.web.shared.libglom.layout.LayoutGroup;
5 import org.glom.web.shared.libglom.layout.LayoutItemField;
6
7 public class LayoutItemGroupBy extends LayoutGroup {
8
9         private static final long serialVersionUID = -672753948682122432L;
10         private LayoutItemField fieldGroupBy = null;
11         private LayoutGroup secondaryFields = null;
12
13         /**
14          * @return
15          */
16         public boolean getHasFieldGroupBy() {
17                 if (fieldGroupBy == null) {
18                         return false;
19                 }
20
21                 return !StringUtils.isEmpty(fieldGroupBy.getName());
22         }
23
24         /**
25          * @return
26          */
27         public LayoutItemField getFieldGroupBy() {
28                 return fieldGroupBy;
29         }
30
31         /**
32          * @param fieldGroupBy
33          */
34         public void setFieldGroupBy(final LayoutItemField fieldGroupBy) {
35                 this.fieldGroupBy = fieldGroupBy;
36         }
37
38         /**
39          * @return
40          */
41         public LayoutGroup getSecondaryFields() {
42                 return secondaryFields;
43         }
44
45         /**
46          * @param secondaryFields
47          */
48         public void setSecondaryFields(final LayoutGroup secondaryFields) {
49                 this.secondaryFields = secondaryFields;
50         }
51 }