Interface TableFormatTemplate
- All Superinterfaces:
Comparable<StoreElement>,GomSourceProvider,HistoryProvider,IDProvider,PackagePoolItem,PreviewImageProvider,StoreElement,TemplateStoreElement,Workflowable
public interface TableFormatTemplate
extends IDProvider, PackagePoolItem, TemplateStoreElement, PreviewImageProvider, GomSourceProvider
Interface providing means to operate on table format templates.
- Since:
- 4.0.120
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDProvider.UidTypeUid type as returned byIDProvider.getUidType().Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED -
Method Summary
Modifier and TypeMethodDescriptionaddLink(@NotNull StyleTemplate template) Provide aStyleTemplatewhich should be used for table cells defined in the returnedStyleTemplateLink@Nullable StyleTemplateReturns theStyleTemplateused for any table cell if not explicitly overridden using aStyleTemplateLink.intReturns the maximum column count.
Hint: In case of a value lower thanminimum column countis returned.Integer.MAX_VALUEintReturns the maximum row count.
Hint: In case of a value lower thanminimum row countis returned.Integer.MAX_VALUEintReturns the minimum column count.intReturns the minimum row count.@Nullable StyleTemplateLinkgetStyleTemplate(int row, boolean lastRow, int column, boolean lastColumn) Get the first matching style template link for a specific row and column.voidsetDefaultStyleTemplate(@Nullable StyleTemplate template) Provide theStyleTemplatethat should be used for any table cell which style isn't explicitly overriden using aStyleTemplateLinkdefinitionvoidsetMaximumColumnCount(int value) Set the maximum column count.voidsetMaximumRowCount(int value) Set the maximum row count.voidsetMinimumColumnCount(int value) Set the minimum column count.voidsetMinimumRowCount(int value) Set the minimum row count.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSourceMethods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistoryMethods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReachableInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUidMethods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImageMethods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXmlMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
Uid type as returned byIDProvider.getUidType().- Since:
- 4.0.120
-
-
Method Details
-
getDefaultStyleTemplate
Returns theStyleTemplateused for any table cell if not explicitly overridden using aStyleTemplateLink.- Since:
- 4.0.120
-
setDefaultStyleTemplate
Provide theStyleTemplatethat should be used for any table cell which style isn't explicitly overriden using aStyleTemplateLinkdefinition- Since:
- 4.0.120
-
addLink
Provide aStyleTemplatewhich should be used for table cells defined in the returnedStyleTemplateLink- Since:
- 4.0.120
-
getMinimumRowCount
int getMinimumRowCount()Returns the minimum row count.- Since:
- 4.0.120
-
setMinimumRowCount
void setMinimumRowCount(int value) Set the minimum row count.- Since:
- 4.0.120
-
getMinimumColumnCount
int getMinimumColumnCount()Returns the minimum column count.- Since:
- 4.0.120
-
setMinimumColumnCount
void setMinimumColumnCount(int value) Set the minimum column count.- Since:
- 4.0.120
-
getMaximumRowCount
int getMaximumRowCount()Returns the maximum row count.
Hint: In case of a value lower thanminimum row countis returned.Integer.MAX_VALUE- Since:
- 4.0.120
-
setMaximumRowCount
void setMaximumRowCount(int value) Set the maximum row count.- Since:
- 4.0.120
-
getMaximumColumnCount
int getMaximumColumnCount()Returns the maximum column count.
Hint: In case of a value lower thanminimum column countis returned.Integer.MAX_VALUE- Since:
- 4.0.120
-
setMaximumColumnCount
void setMaximumColumnCount(int value) Set the maximum column count.- Since:
- 4.0.120
-
getStyleTemplate
@Nullable @Nullable StyleTemplateLink getStyleTemplate(int row, boolean lastRow, int column, boolean lastColumn) Get the first matching style template link for a specific row and column. If there is no matching template thedefault template linkis returned.- Parameters:
row- a row number, starting with 0lastRow- providetrueif the row is the last rowcolumn- a column number, starting with 0, or -1 to get the row templatelastColumn- providetrueif the column is the last column- Returns:
- a matching style template link or the
default template link - Since:
- 4.0.122
-