public class ColumnDescription extends Object implements Serializable, Cloneable
Constructor and Description |
---|
ColumnDescription(String id,
Object name)
Creates a new column description.
|
ColumnDescription(String id,
Object name,
String description,
boolean visible,
boolean editable,
boolean edit)
Creates a new column description.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
int |
getColSpan() |
int |
getColumnSet() |
String |
getDescription()
Returns the description.
|
String |
getField() |
String |
getFormFields() |
String |
getIcon() |
String |
getId()
Returns the id.
|
String |
getJavaScriptClass() |
Object |
getName()
Returns the name.
|
int |
getRow() |
int |
getRowSpan() |
String |
getType() |
boolean |
isEdit()
Return true if this column can be edited, false otherwise.
|
boolean |
isEditable()
Returns true if direct editing is possible for this column, false otherwise.
|
boolean |
isFilterable() |
boolean |
isFiltered()
Returns true if this column is used in a filter.
|
boolean |
isGroupable() |
boolean |
isSortable() |
boolean |
isUnhideable() |
boolean |
isVisible()
Returns true if this column should be visible, false otherwise.
|
boolean |
localizeValue() |
void |
setColSpan(int colSpan) |
void |
setColumnSet(int columnSet) |
void |
setDescription(String description)
Sets the description.
|
void |
setEdit(boolean edit)
Sets if this column can be edited.
|
void |
setEditable(boolean editable)
Sets if direct editing should be possible for this column.
|
void |
setField(String field) |
void |
setFilterable(boolean filterable) |
void |
setFiltered(boolean filtered) |
void |
setFormFields(String formfields) |
void |
setGroupable(boolean groupable) |
void |
setIcon(String icon) |
void |
setId(String id)
Sets the id.
|
void |
setJavaScripClass(String column) |
void |
setLocalizeValue(boolean l) |
void |
setName(Object name)
Sets the name.
|
void |
setRow(int row) |
void |
setRowSpan(int rowSpan) |
void |
setSortable(boolean sortable) |
void |
setType(String type) |
void |
setUnhideable(boolean unhideable) |
void |
setVisible(boolean visible)
Sets if this column will be visible.
|
JSONObject |
toJson() |
JSONObject |
toJson(boolean replaceUnhideable) |
String |
toString() |
public ColumnDescription(String id, Object name)
id
- the id of the column for referencing itname
- the name for showing it in table header and column pickerpublic ColumnDescription(String id, Object name, String description, boolean visible, boolean editable, boolean edit)
id
- the id of the column for referencing itname
- the name for showing it in table header and column pickerdescription
- the description which will be used as tooltip text in the column pickervisible
- if true the column is visible by default, otherwise it is invisibleeditable
- if true the column allows direct editing, otherwise notedit
- if true the column can be edited directly, otherwise notpublic void setId(String id)
id
- the id to setpublic String getId()
public void setName(Object name)
name
- the name to setpublic Object getName()
public void setDescription(String description)
description
- the description to setpublic String getDescription()
public void setVisible(boolean visible)
visible
- pass true if the column should be visible, false otherwisepublic boolean isVisible()
public boolean isFiltered()
public void setFiltered(boolean filtered)
public void setEditable(boolean editable)
editable
- pass ture if editing should be possible, false otherwisepublic boolean isEditable()
public void setEdit(boolean edit)
edit
- pass true if this column can be edited, false otherwisepublic boolean isEdit()
public boolean localizeValue()
public void setLocalizeValue(boolean l)
public int getRowSpan()
public void setRowSpan(int rowSpan)
public int getColSpan()
public void setColSpan(int colSpan)
public boolean isUnhideable()
public void setUnhideable(boolean unhideable)
public boolean isSortable()
public void setSortable(boolean sortable)
public String getJavaScriptClass()
public void setJavaScripClass(String column)
public int getRow()
public void setRow(int row)
public String getFormFields()
public void setFormFields(String formfields)
public int getColumnSet()
public void setColumnSet(int columnSet)
public boolean isFilterable()
public void setFilterable(boolean filterable)
public boolean isGroupable()
public void setGroupable(boolean groupable)
public String getType()
public void setType(String type)
public String getIcon()
public void setIcon(String icon)
public JSONObject toJson()
public JSONObject toJson(boolean replaceUnhideable)
public String getField()
public void setField(String field)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
@enterprise 10.0.38589 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.