Class TableDataRow
- All Implemented Interfaces:
GetIdentifier,GetSequence,EntityData,PersistentData,Serializable,Comparable<TableDataCell>
TableDataRow is a row representation optimized for comet output scenarios. It may also be used to represent table data for HTML output.
- Since:
- 4.0.0, 4.0.5 added JPA annotations
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TableDataCell compareObject) Two rows are compared using their sequence property.Identifier of an entity in the entity model where the current object refers to.floatGet the string identifier of the row.getLabel()Display label for the row.floatfloatintGet sequence number for the row as given in the content system.voidsetContentMetaData(List<ContentMetaData> contentMetaData) voidsetContext(Context context) set the context of entity data objectvoidsetCreatedBy(String createdBy) voidsetCreatedOn(Date createdOn) voidsetEntityIdentifier(String entityIdentifier) Identifier of an entity in the entity model where the current object refers to.voidsetHeight(float height) voidsetIdentifier(String identifier) voidvoidsetMaxHeight(float maxHeight) voidsetMetaData(List<KeyValue> metaData) voidsetMinHeight(float minHeight) voidsetObjectEntityId(String objectEntityId) voidsetObjectGroupIdentifier(String objectGroupIdentifier) voidsetObjectIdentifier(String objectIdentifier) voidsetSequence(int sequence) voidsetTableData(TableData tableData) voidsetTableDataCells(List<TableDataCell> tableDataCells) voidsetTableDataId(String tableDataId) voidsetUpdatedBy(String updatedBy) voidsetUpdatedOn(Date updatedOn)
-
Constructor Details
-
TableDataRow
public TableDataRow()
-
-
Method Details
-
getIdentifier
Get the string identifier of the row.- Specified by:
getIdentifierin interfaceEntityData- Specified by:
getIdentifierin interfaceGetIdentifier- Specified by:
getIdentifierin interfacePersistentData- Returns:
- identifier string or
nullif not set
-
setIdentifier
- Specified by:
setIdentifierin interfaceEntityData- Parameters:
identifier- seegetIdentifier()
-
getSequence
public int getSequence()Get sequence number for the row as given in the content system.This should reflect the position of the current row in the sorting of rows of its table.
- Specified by:
getSequencein interfaceGetSequence- Returns:
- ordered position within a list sequenceable objects
-
setSequence
public void setSequence(int sequence) - Parameters:
sequence- seegetSequence()
-
getTableData
- Returns:
- table data this row is part of
-
setTableData
- Parameters:
tableData-getTableData()
-
getTableDataId
- Returns:
- Identifier of parent bucket that this row is related to.
-
setTableDataId
- Parameters:
tableDataId-getTableDataId()
-
getHeight
public float getHeight()- Returns:
- Height of the row.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setHeight
public void setHeight(float height) - Parameters:
height-getHeight()
-
getMaxHeight
public float getMaxHeight()- Returns:
- Maximum height of the row.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setMaxHeight
public void setMaxHeight(float maxHeight) - Parameters:
maxHeight-getMaxHeight()
-
getMinHeight
public float getMinHeight()- Returns:
- Minimum height of the row.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setMinHeight
public void setMinHeight(float minHeight) - Parameters:
minHeight-getMinHeight()
-
getTableDataCells
- Returns:
- List of data cells of this row or empty list.
-
setTableDataCells
- Parameters:
tableDataCells-getTableDataCells()
-
getObjectIdentifier
- Returns:
- Id of the object that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setObjectIdentifier
- Parameters:
objectIdentifier-getObjectIdentifier()
-
getObjectGroupIdentifier
- Returns:
- GroupId of the object that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setObjectGroupIdentifier
- Parameters:
objectGroupIdentifier-getObjectGroupIdentifier()
-
getObjectEntityId
- Returns:
- EntityId of the object that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setObjectEntityId
- Parameters:
objectEntityId-getObjectEntityId()
-
getCreatedBy
- Returns:
- creation user or
nullif not set
-
setCreatedBy
- Parameters:
createdBy- seegetCreatedBy()
-
getCreatedOn
- Returns:
- creation date or
nullif not set
-
setCreatedOn
- Parameters:
createdOn- seegetCreatedOn()
-
getUpdatedBy
- Returns:
- last modified user or
nullif not set
-
setUpdatedBy
- Parameters:
updatedBy- seegetUpdatedBy()
-
getUpdatedOn
- Returns:
- last modified date or
nullif not set
-
setUpdatedOn
- Parameters:
updatedOn- seegetUpdatedOn()
-
getMetaData
- Returns:
- List of meta data related to the bucket or empty list
-
setMetaData
- Parameters:
metaData- seegetMetaData()
-
getLabel
Display label for the row.- Returns:
- label or
nullif not set
-
setLabel
- Parameters:
label- seegetLabel()
-
compareTo
Two rows are compared using their sequence property.- Specified by:
compareToin interfaceComparable<TableDataCell>- See Also:
-
getEntityIdentifier
Description copied from interface:EntityDataIdentifier of an entity in the entity model where the current object refers to.- Specified by:
getEntityIdentifierin interfaceEntityData- Returns:
- entity identifier as string
-
setEntityIdentifier
Description copied from interface:EntityDataIdentifier of an entity in the entity model where the current object refers to.- Specified by:
setEntityIdentifierin interfaceEntityData
-
getContext
- Specified by:
getContextin interfaceEntityData- Returns:
- entity context
-
setContext
Description copied from interface:EntityDataset the context of entity data object- Specified by:
setContextin interfaceEntityData
-
getContentMetaData
- Returns:
- List of ContentMetaData related to Bucket
-
setContentMetaData
- Parameters:
contentMetaData-getContentMetaData()
-