Class TableDataCell
- All Implemented Interfaces:
GetIdentifier,GetSequence,EntityData,PersistentData,Serializable,Comparable<TableDataCell>
TableDataCell is a cell 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of placeholders uses in comet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TableDataCell compareObject) Two cells are compared using their sequence property.intIdentifier of an entity in the entity model where the current object refers to.floatGet the string identifier of the cell.getLabel()Display label for the cell.floatintDeprecated.floatintfloatintintGet sequence number for the cell as given in the content system.getValue()floatgetWidth()voidsetCellStyle(String cellStyle) voidsetCharacterStyle(String characterStyle) voidsetColspan(int colspan) 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) voidsetObjectEntityClass(String objectEntityClass) voidsetObjectEntityId(String objectEntityId) voidsetObjectGroupIdentifier(String objectGroupIdentifier) voidsetObjectIdentifier(String objectIdentifier) voidsetParagraphStyle(String paragraphStyle) voidsetParentEntityClass(String parentEntityClass) voidsetParentEntityId(String parentEntityId) voidsetParentGroupIdentifier(String parentGroupIdentifier) voidsetParentIdentifier(String parentIdentifier) voidsetPlaceholder(String placeholder) voidsetPlaceholderAutoLoad(int placeholderAutoLoad) Deprecated.voidsetPlaceholderInfo1(String placeholderInfo1) voidsetPlaceholderInfo2(String placeholderInfo2) voidsetPlaceholderInlineHeight(float placeholderInlineHeight) voidsetPlaceholderInlinePlacement(int placeholderInlinePlacement) voidsetPlaceholderInlineWidth(float placeholderInlineWidth) voidsetPlaceholderType(String placeholderType) voidsetRowspan(int rowspan) voidsetSequence(int sequence) voidsetTableData(TableData tableData) voidsetTableDataId(String tableDataId) voidsetTableRow(TableDataRow tableRow) voidsetUpdatedBy(String updatedBy) voidsetUpdatedOn(Date updatedOn) voidvoidsetWidth(float width)
-
Constructor Details
-
TableDataCell
public TableDataCell()Default constructor -
TableDataCell
public TableDataCell(String identifier, String createdBy, Date createdOn, String updatedBy, Date updatedOn) - Parameters:
identifier-getIdentifier()createdBy-getCreatedBy()createdOn-getCreatedOn()updatedBy-getUpdatedBy()updatedOn-getUpdatedOn()
-
-
Method Details
-
getIdentifier
Get the string identifier of the cell.- 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()
-
getTableRow
-
setTableRow
-
getColspan
public int getColspan()- Returns:
- Number of columns that this cell spans.
-
setColspan
public void setColspan(int colspan) - Parameters:
colspan-getColspan()
-
getRowspan
public int getRowspan()- Returns:
- Number of rows that this cell spans.
-
setRowspan
public void setRowspan(int rowspan) - Parameters:
rowspan-getRowspan()
-
getCellStyle
- Returns:
- name of cell style or an empty string
-
setCellStyle
- Parameters:
cellStyle-getCellStyle()
-
getWidth
public float getWidth()- Returns:
- Width of the cell.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setWidth
public void setWidth(float width) - Parameters:
width-getWidth()
-
getHeight
public float getHeight()- Returns:
- Height of the cell.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setHeight
public void setHeight(float height) - Parameters:
height-getHeight()
-
getValue
- Returns:
- Initial content of the cell.
Might be overwritten by placeholder.
-
setValue
- Parameters:
value-getValue()
-
getPlaceholder
- Returns:
- Placeholder for reloading the content of the cell.
-
setPlaceholder
- Parameters:
placeholder-getPlaceholder()
-
getPlaceholderType
- Returns:
- placeholderType is one of
TableDataCell.PlaceholderType
-
setPlaceholderType
- Parameters:
placeholderType-getPlaceholderType()
-
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()
-
getObjectEntityClass
- Returns:
- EntityClass of the object that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setObjectEntityClass
- Parameters:
objectEntityClass-getObjectEntityClass()
-
getParentIdentifier
- Returns:
- Id of the parent that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setParentIdentifier
- Parameters:
parentIdentifier-getParentIdentifier()
-
getParentGroupIdentifier
- Returns:
- GroupId of the parent that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setParentGroupIdentifier
- Parameters:
parentGroupIdentifier-getParentGroupIdentifier()
-
getParentEntityId
- Returns:
- EntityId of the parent that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setParentEntityId
- Parameters:
parentEntityId-getParentEntityId()
-
getParentEntityClass
- Returns:
- EntityClass of the parent that is linked to the cell.
In comet the placeholder needs this to create a comet StringID.
-
setParentEntityClass
- Parameters:
parentEntityClass-getParentEntityClass()
-
getPlaceholderAutoLoad
Deprecated.the "placeholderAutoload" flag is never evaluated. it stays here for backward compatibility.- Returns:
- autoload flag of placeholder
-
setPlaceholderAutoLoad
Deprecated.the "placeholderAutoload" flag is never evaluated. it stays here for backward compatibility.- Parameters:
placeholderAutoLoad-getPlaceholderAutoLoad()
-
getPlaceholderInlineHeight
public float getPlaceholderInlineHeight()- Returns:
- placeholderInlineHeight
-
setPlaceholderInlineHeight
public void setPlaceholderInlineHeight(float placeholderInlineHeight) - Parameters:
placeholderInlineHeight-getPlaceholderInlineHeight()
-
getPlaceholderInlineWidth
public float getPlaceholderInlineWidth()- Returns:
- placeholderInlineWidth
-
setPlaceholderInlineWidth
public void setPlaceholderInlineWidth(float placeholderInlineWidth) - Parameters:
placeholderInlineWidth-getPlaceholderInlineWidth()
-
getPlaceholderInlinePlacement
public int getPlaceholderInlinePlacement()- Returns:
- placeholderInlinePlacement
-
setPlaceholderInlinePlacement
public void setPlaceholderInlinePlacement(int placeholderInlinePlacement) - Parameters:
placeholderInlinePlacement-getPlaceholderInlinePlacement()
-
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()
-
getMaxHeight
public float getMaxHeight()- Returns:
- Maximum height of the cell.
Comet: millimeter, HTML: pixel.
Default is "0" meaning not explicitly set.
-
setMaxHeight
public void setMaxHeight(float maxHeight) - Parameters:
maxHeight-getMaxHeight()
-
getMetaData
- Returns:
- List of meta data related to the cell or empty list
-
setMetaData
- Parameters:
metaData- seegetMetaData()
-
getTableData
- Returns:
- table data this cell is part of
-
setTableData
- Parameters:
tableData-getTableData()
-
getTableDataId
- Returns:
- Identifier of the table this cell is part of.
-
setTableDataId
- Parameters:
tableDataId-getTableDataId()
-
getParagraphStyle
- Returns:
- name of paragraph style for the cell or an empty string
-
setParagraphStyle
- Parameters:
paragraphStyle-getParagraphStyle()
-
getCharacterStyle
- Returns:
- name of character style for the cell or an empty string
-
setCharacterStyle
- Parameters:
characterStyle-getCharacterStyle()
-
getSequence
public int getSequence()Get sequence number for the cell as given in the content system.This should reflect the position of the current cell in the sorting of cells of its row.
- Specified by:
getSequencein interfaceGetSequence- Returns:
- ordered position within a list sequenceable objects
-
setSequence
public void setSequence(int sequence) - Parameters:
sequence- seegetSequence()
-
getLabel
Display label for the cell.- Returns:
- label or
nullif not set
-
setLabel
- Parameters:
label- seegetLabel()
-
getPlaceholderInfo1
-
setPlaceholderInfo1
-
getPlaceholderInfo2
-
setPlaceholderInfo2
-
compareTo
Two cells 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()
-