3 import java
.io
.Serializable
;
5 /** Table column header.
7 * Stores information about the information available in the
8 * entire SimpleTable column.
10 public class ColumnHeader
implements Serializable
12 private static final long serialVersionUID
= -4526017460513320190L;
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
)
30 this.visible
= visible
;
31 this.valueclass
= valueclass
;
34 /** Dummy constructor to silence compiler warnings. */
37 this(null, null, false, null);
40 /** Get column header title.
42 * @return The column title. */
43 public String
getTitle()
48 /** Set column header title.
50 * @param title The new column title.
52 public void setTitle(String title
)
57 /** Get column header name.
59 * @return The column name.
61 public String
getName()
66 /** Set column header name.
68 * @param name The new column name.
70 public void setName(String name
)
75 /** Is the column header visible?
77 * @return Whether the column is visible.
79 public boolean isVisible()
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()
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
;