MoteData: no need to import classes from the same package
[remote/remote-ws.git] / src / motedata / ColumnHeader.java
blobfb7f09dcda4b88a7dac2784c80c39086c1307f3a
1 package motedata;
3 import java.io.Serializable;
5 /** Table column header.
7 * Stores information about the information available in the
8 * entire SimpleTable column.
9 */
10 public class ColumnHeader implements Serializable
12 private static final long serialVersionUID = -4526017460513320190L;
13 private String title;
14 private String name;
15 private boolean visible;
16 private String valueclass;
18 /** Create column header.
20 * @param title The column title.
21 * @param name The column name.
22 * @param visible The column visibility.
23 * @param valueclass The column valueclass.
25 public ColumnHeader(String title, String name, boolean visible, String valueclass)
27 super();
28 this.title = title;
29 this.name = name;
30 this.visible = visible;
31 this.valueclass = valueclass;
34 /** Dummy constructor to silence compiler warnings. */
35 public ColumnHeader()
37 this(null, null, false, null);
40 /** Get column header title.
42 * @return The column title. */
43 public String getTitle()
45 return title;
48 /** Set column header title.
50 * @param title The new column title.
52 public void setTitle(String title)
54 this.title = title;
57 /** Get column header name.
59 * @return The column name.
61 public String getName()
63 return name;
66 /** Set column header name.
68 * @param name The new column name.
70 public void setName(String name)
72 this.name = name;
75 /** Is the column header visible?
77 * @return Whether the column is visible.
79 public boolean isVisible()
81 return visible;
84 /** Set column header visibility.
86 * @param visible The new column visibility.
88 public void setVisible(boolean visible)
90 this.visible = visible;
93 /** Get value class of column header.
95 * @return The value class of the column.
97 public String getValueclass()
99 return valueclass;
102 /** Set the column header value class.
104 * @param valueclass The column's new value class.
106 public void setValueclass(String valueclass)
108 this.valueclass = valueclass;