public class CmsDataViewColumn extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CmsDataViewColumn.Type
The column type.
|
Constructor and Description |
---|
CmsDataViewColumn(java.lang.String id,
CmsDataViewColumn.Type type,
java.lang.String niceName,
boolean sortable,
int preferredWidth)
Creates a new column definition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Gets the column id.
|
java.lang.String |
getNiceName()
Gets the 'nice name' to display for this column in the table header.
|
int |
getPreferredWidth()
Gets the preferred width of the column in pixels.
|
CmsDataViewColumn.Type |
getType()
Gets the column type.
|
boolean |
isSortable()
Returns true if this column should be sortable.
|
public CmsDataViewColumn(java.lang.String id, CmsDataViewColumn.Type type, java.lang.String niceName, boolean sortable, int preferredWidth)
id
- the column id (should be unique among the list of columns for an I_CmsDataView implementation)type
- the column typeniceName
- the user-readable name of the columnsortable
- true if the column should be sortablepreferredWidth
- the preferred width of the columnpublic java.lang.String getId()
The column id is not directly shown to the user; it is used as an internal identifier for the column and should be unique.
public java.lang.String getNiceName()
public int getPreferredWidth()
public CmsDataViewColumn.Type getType()
public boolean isSortable()