public class ColumnDefinition extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
editable |
protected String |
id |
protected ColumnKey |
key |
protected String |
label |
protected int |
position |
protected ColumnType |
type |
protected ValueType |
valueType |
protected boolean |
visible |
protected int |
width |
| Constructor and Description |
|---|
ColumnDefinition() |
ColumnDefinition(String id,
String label)
Creates a new column definition with type
ColumnType USER. |
ColumnDefinition(String id,
String label,
ValueType valueType,
int width,
boolean editable,
boolean visible,
ColumnType type)
Creates a new column definition.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
ColumnKey |
getKey() |
String |
getLabel() |
int |
getPosition() |
ColumnType |
getType() |
ValueType |
getValueType() |
int |
getWidth() |
boolean |
isEditable() |
boolean |
isVisible() |
void |
setEditable(boolean editable) |
void |
setIndex(int index) |
void |
setPosition(int position) |
void |
setType(ColumnType type) |
void |
setValueType(ValueType valueType) |
void |
setVisible(boolean visible) |
void |
setWidth(int width) |
String |
toString() |
protected String id
protected String label
protected ValueType valueType
protected int width
protected boolean editable
protected boolean visible
protected ColumnType type
protected int position
protected ColumnKey key
public ColumnDefinition()
public ColumnDefinition(String id, String label)
ColumnType USER.id - the column id.label - the column label.public ColumnDefinition(String id, String label, ValueType valueType, int width, boolean editable, boolean visible, ColumnType type)
id - the column id.label - the column label.valueType - the type of column values.width - the column width.editable - flag for editability.visible - flag for visibility.type - the column type.public String getId()
public String getLabel()
public ValueType getValueType()
public void setValueType(ValueType valueType)
valueType - the valueType to setpublic int getPosition()
public void setPosition(int position)
position - the position to setpublic boolean isEditable()
public void setEditable(boolean editable)
editable - the editable to setpublic int getWidth()
public void setWidth(int width)
width - the width to setpublic boolean isVisible()
public void setVisible(boolean visible)
visible - the visible to setpublic ColumnType getType()
public void setType(ColumnType type)
type - the type to setpublic ColumnKey getKey()
public void setIndex(int index)
index - to setCopyright © 2019. All Rights Reserved.