public class ColumnDraftImpl extends Object implements ColumnDraft
| Constructor and Description |
|---|
ColumnDraftImpl(String id,
int index,
boolean dynamic,
Class typeClass) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue()
Gets the column's default value.
|
String |
getId()
Gets the column's identifier.
|
Object |
getResolvedDefaultValue(ContainerUnloader container)
Gets the column's resolved (final) default value taking into account the container settings and whether the column is dynamic or not.
|
Class |
getResolvedTypeClass(ContainerUnloader container)
Gets the column's resolved (final) type taking into account the container settings and whether the column is dynamic or not.
|
String |
getTitle()
Gets the column's title.
|
Class |
getTypeClass()
Gets the column's type.
|
boolean |
isDynamic()
Returns true if this column is dynamic.
|
void |
setDefaultValue(Object value)
Sets the column's default value.
|
void |
setDefaultValueString(String value)
Sets the column's default value as a string.
|
void |
setTitle(String title)
Sets the column's title.
|
public String getId()
ColumnDraftThis identifier is unique across all columns.
getId in interface ColumnDraftpublic String getTitle()
ColumnDraftgetTitle in interface ColumnDraftpublic Class getTypeClass()
ColumnDraftgetTypeClass in interface ColumnDraftpublic Object getDefaultValue()
ColumnDraftgetDefaultValue in interface ColumnDraftpublic void setTitle(String title)
ColumnDraftsetTitle in interface ColumnDrafttitle - column titlepublic void setDefaultValue(Object value)
ColumnDraft
The default default value is null.
setDefaultValue in interface ColumnDraftvalue - default valuepublic void setDefaultValueString(String value)
ColumnDraft
The value will be parsed according to the column's type.
setDefaultValueString in interface ColumnDraftvalue - value to parse and to be set as defaultpublic Class getResolvedTypeClass(ContainerUnloader container)
ColumnDraftgetResolvedTypeClass in interface ColumnDraftcontainer - Containerpublic Object getResolvedDefaultValue(ContainerUnloader container)
ColumnDraftgetResolvedDefaultValue in interface ColumnDraftcontainer - Containerpublic boolean isDynamic()
ColumnDraftisDynamic in interface ColumnDraftCopyright © 2007–2017. All rights reserved.