Add support for horizontal alignment in the LayoutList columns.
[online-glom:gwt-glom.git] / src / main / java / org / glom / web / shared / ColumnInfo.java
1 package org.glom.web.shared;
2
3 import java.io.Serializable;
4
5 @SuppressWarnings("serial")
6 public class ColumnInfo implements Serializable {
7         public enum HorizontalAlignment {
8                 HORIZONTAL_ALIGNMENT_AUTO, HORIZONTAL_ALIGNMENT_LEFT, HORIZONTAL_ALIGNMENT_RIGHT;
9         }
10
11         private String header;
12         private HorizontalAlignment alignment;
13
14         public ColumnInfo() {
15         }
16
17         public ColumnInfo(String header, HorizontalAlignment alignment) {
18                 this.header = header;
19                 this.alignment = alignment;
20         }
21
22         // @formatter:off
23         public String getHeader() { return header;}
24         public void setHeader(String header) { this.header = header; }
25         public HorizontalAlignment getAlignment() { return alignment;}
26         public void setAlignment(HorizontalAlignment alignment) { this.alignment = alignment; }
27         // @formatter:on
28 }