3 import java
.io
.Serializable
;
5 /** Table column container.
7 * Stores information about a column in a SimpleTable.
9 public class ColumnHeader
implements Serializable
11 private static final long serialVersionUID
= -4526017460513320190L;
14 private boolean visible
;
15 private String valueclass
;
17 /** Create column header.
19 * @param title The column title.
20 * @param name The column name.
21 * @param visible The column visibility.
22 * @param valueclass The column valueclass.
24 public ColumnHeader(String title
, String name
, boolean visible
, String valueclass
)
29 this.visible
= visible
;
30 this.valueclass
= valueclass
;
33 /** Dummy constructor to silence compiler warnings. */
36 this(null, null, false, null);
39 /** Get column header title.
41 * @return The column title. */
42 public String
getTitle()
47 /** Set column header title.
49 * @param title The new column title.
51 public void setTitle(String title
)
56 /** Get column header name.
58 * @return The column name.
60 public String
getName()
65 /** Set column header name.
67 * @param name The new column name.
69 public void setName(String name
)
74 /** Is the column header visible?
76 * @return Whether the column is visible.
78 public boolean isVisible()
83 /** Set column header visibility.
85 * @param visible The new column visibility.
87 public void setVisible(boolean visible
)
89 this.visible
= visible
;
92 /** Get value class of column header.
94 * @return The value class of the column.
96 public String
getValueclass()
101 /** Set the column header value class.
103 * @param valueclass The column's new value class.
105 public void setValueclass(String valueclass
)
107 this.valueclass
= valueclass
;