public class TableBlock extends GeneratedTableBlock
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
TABLE_INIT_PARAMETERS
Session attribute name.
|
ALLTABLETEMPLATES, CELLS, CELLSHANDLER, COLUMNS, COLUMNSHANDLER, DEFAULT_INITIAL_ATTRIBUTES, FOOTERROWCOUNT, HEADERROWCOUNT, ISTEMPLATE, LOCKED, ROWS, ROWSHANDLER, TABLEDATAHOLDERS, TABLEDATAHOLDERSHANDLER, TABLESTYLE, TABLETEMPLATE, WIDTH, WIDTHTYPECATALOGVERSION, CATEGORIES, CATEGORY2CONTENTBLOCKRELATION_MARKMODIFIED, CATEGORY2CONTENTBLOCKRELATION_SRC_ORDERED, CATEGORY2CONTENTBLOCKRELATION_TGT_ORDERED, CODE, NAME, RENDEREDCONTENTLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
TableBlock() |
| Modifier and Type | Method and Description |
|---|---|
Object |
computeCellRawValue(CellEntry cell,
Object rowData,
Object columnData) |
CellStyle |
computeCellStyle(CellEntry cell,
RowEntry row,
Object rowData,
int rowDataIndex,
int rowDataCount,
ColumnEntry column,
Object columnData,
int colDataIndex,
int colDataCount,
ExpressionContext initialContext) |
String |
computeCellValue(CellEntry cell,
Object rawValue,
Object rowData,
int rowDataIndex,
int rowDataCount,
Object columnData,
int colDataIndex,
int colDataCount,
ExpressionContext initialContext) |
double |
computeColWidth(ColumnEntry column,
int colDataIndex,
int colDataCount,
ExpressionContext initialContext) |
String |
computeExtendedStyle(CellEntry cell,
RowEntry row,
Object rowData,
int rowDataIndex,
int rowDataCount,
ColumnEntry column,
Object columnData,
int colDataIndex,
int colDataCount,
ExpressionContext initialContext) |
PrintTable |
computePrintTable() |
List<Object> |
getAllAxisData(AxisEntry axis) |
Collection<TableBlock> |
getAllTableTemplates(SessionContext ctx)
Generated method - Getter of the
TableBlock.allTableTemplates attribute. |
Object |
getAxisData(AxisEntry axis,
int index) |
PrintTable |
getCachedPrintTable()
Returns cached
PrintTable. |
static CellEntry |
getCellEntry(ColumnEntry column,
RowEntry row) |
List<ColumnEntry> |
getColumnsConsideringTemplate() |
TableDataHolder |
getDataHolderConsideringTemplate() |
AxisDataHolder |
getDataHolderConsideringTemplate(AxisEntry axis) |
CellDataHolder |
getDataHolderConsideringTemplate(CellEntry cell) |
Map<String,Object> |
getGlobalParameterValues() |
String |
getRenderedContent(SessionContext ctx)
Generated method - Getter of the
ContentBlock.renderedContent attribute. |
List<RowEntry> |
getRowsConsideringTemplate() |
TableBlock |
getTableOrTemplate() |
boolean |
isUsedAsTemplate() |
void |
remove(SessionContext ctx)
Removes this item.
|
String |
renderHTML() |
String |
renderHTML(SessionContext ctx) |
String |
renderInDesign() |
String |
renderInDesign(SessionContext ctx) |
void |
setCatalogVersion(SessionContext ctx,
CatalogVersion catalogVersion)
Generated method - Setter of the
ContentBlock.catalogVersion attribute. |
void |
setIsTemplate(SessionContext ctx,
Boolean isTemplate)
Generated method - Setter of the
TableBlock.isTemplate attribute. |
void |
setTableTemplate(SessionContext ctx,
TableBlock value)
Generated method - Setter of the
TableBlock.tableTemplate attribute. |
void |
setTableTemplate(TableBlock value)
Generated method - Setter of the
TableBlock.tableTemplate attribute. |
addToCells, addToCells, addToColumns, addToColumns, addToRows, addToRows, addToTableDataHolders, addToTableDataHolders, getAllTableTemplates, getCells, getCells, getColumns, getColumns, getDefaultAttributeModes, getFooterRowCount, getFooterRowCount, getFooterRowCountAsPrimitive, getFooterRowCountAsPrimitive, getHeaderRowCount, getHeaderRowCount, getHeaderRowCountAsPrimitive, getHeaderRowCountAsPrimitive, getRows, getRows, getTableDataHolders, getTableDataHolders, getTableStyle, getTableStyle, getTableTemplate, getTableTemplate, getWidth, getWidth, getWidthAsPrimitive, getWidthAsPrimitive, getWidthType, getWidthType, isIsTemplate, isIsTemplate, isIsTemplateAsPrimitive, isIsTemplateAsPrimitive, isLocked, isLocked, isLockedAsPrimitive, isLockedAsPrimitive, removeFromCells, removeFromCells, removeFromColumns, removeFromColumns, removeFromRows, removeFromRows, removeFromTableDataHolders, removeFromTableDataHolders, setCells, setCells, setColumns, setColumns, setFooterRowCount, setFooterRowCount, setFooterRowCount, setFooterRowCount, setHeaderRowCount, setHeaderRowCount, setHeaderRowCount, setHeaderRowCount, setIsTemplate, setIsTemplate, setIsTemplate, setLocked, setLocked, setLocked, setLocked, setRows, setRows, setTableDataHolders, setTableDataHolders, setTableStyle, setTableStyle, setWidth, setWidth, setWidth, setWidth, setWidthType, setWidthTypeaddToCategories, addToCategories, getAllName, getAllName, getCatalogVersion, getCatalogVersion, getCategories, getCategories, getCategoriesCount, getCategoriesCount, getCode, getCode, getName, getName, getRenderedContent, removeFromCategories, removeFromCategories, setAllName, setAllName, setCatalogVersion, setCategories, setCategories, setCode, setCode, setName, setNamecreateItem, getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String TABLE_INIT_PARAMETERS
public static CellEntry getCellEntry(ColumnEntry column, RowEntry row)
public void remove(SessionContext ctx) throws ConsistencyCheckException
Item
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| n/a (this is a setter method) | no, language doesn't matter for removal | yes if called on a StageableItem, no otherwise |
remove in class Itemctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonpublic void setCatalogVersion(SessionContext ctx, CatalogVersion catalogVersion)
GeneratedContentBlockContentBlock.catalogVersion attribute.setCatalogVersion in class GeneratedContentBlockcatalogVersion - the catalogVersionpublic void setIsTemplate(SessionContext ctx, Boolean isTemplate)
GeneratedTableBlockTableBlock.isTemplate attribute.setIsTemplate in class GeneratedTableBlockisTemplate - the isTemplatepublic boolean isUsedAsTemplate()
public Collection<TableBlock> getAllTableTemplates(SessionContext ctx)
GeneratedTableBlockTableBlock.allTableTemplates attribute.getAllTableTemplates in class GeneratedTableBlockpublic TableBlock getTableOrTemplate()
public List<ColumnEntry> getColumnsConsideringTemplate()
public TableDataHolder getDataHolderConsideringTemplate()
public AxisDataHolder getDataHolderConsideringTemplate(AxisEntry axis)
public CellDataHolder getDataHolderConsideringTemplate(CellEntry cell)
public String renderHTML()
public String renderHTML(SessionContext ctx)
public String renderInDesign()
public String renderInDesign(SessionContext ctx)
public PrintTable computePrintTable()
public PrintTable getCachedPrintTable()
PrintTable. If no PrintTable is in the cache, it returns null.
Computed
PrintTable is put in the cache each time the computePrintTable() is called. null
each
time.PrintTable or null if no table in cachepublic Object computeCellRawValue(CellEntry cell, Object rowData, Object columnData) throws DataResolverException
DataResolverExceptionpublic final String computeCellValue(CellEntry cell, Object rawValue, Object rowData, int rowDataIndex, int rowDataCount, Object columnData, int colDataIndex, int colDataCount, ExpressionContext initialContext)
public CellStyle computeCellStyle(CellEntry cell, RowEntry row, Object rowData, int rowDataIndex, int rowDataCount, ColumnEntry column, Object columnData, int colDataIndex, int colDataCount, ExpressionContext initialContext)
public String computeExtendedStyle(CellEntry cell, RowEntry row, Object rowData, int rowDataIndex, int rowDataCount, ColumnEntry column, Object columnData, int colDataIndex, int colDataCount, ExpressionContext initialContext)
public double computeColWidth(ColumnEntry column, int colDataIndex, int colDataCount, ExpressionContext initialContext)
public void setTableTemplate(SessionContext ctx, TableBlock value)
GeneratedTableBlockTableBlock.tableTemplate attribute.setTableTemplate in class GeneratedTableBlockvalue - the tableTemplatepublic void setTableTemplate(TableBlock value)
GeneratedTableBlockTableBlock.tableTemplate attribute.setTableTemplate in class GeneratedTableBlockvalue - the tableTemplatepublic String getRenderedContent(SessionContext ctx)
GeneratedContentBlockContentBlock.renderedContent attribute.getRenderedContent in class GeneratedContentBlockCopyright © 2017 SAP SE. All Rights Reserved.