Interface StyleTemplateLink
- All Superinterfaces:
Comparable<StoreElement>,StoreElement,Workflowable
Definition for defining a link to a style template from a rendering component.
- Since:
- 4.0.120
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe region targeted by this link. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of the column this rule should be used for.
Forregionsdifferent toRegion.CUSTOM-1will be returned.@NotNull StyleTemplateLink.RegionReturns the columnregionset for this rule.intgetRow()Returns the number of the row this rule should be used for.
Forregionsdifferent toRegion.CUSTOM-1will be returned.@NotNull StyleTemplateLink.RegionReturns the rowregionset for this rule.@Nullable StyleTemplateReturns the targettemplatebooleanReturnstrueif the region defined in this link is deletable,falseotherwise.
Note: Can only betruefor row and column rules.booleanReturnstrueif the region defined in this link is editable,falseotherwise.booleanmatches(int rowNumber, boolean lastRow, int columnNumber, boolean lastColumn) Indicates whether the link is applicable for the given region.voidsetColumn(int columnNumber) Provide the number of the column this rule should be used for.
The column region is set toRegion.NUMBERautomatically.voidsetColumnRegion(@NotNull StyleTemplateLink.Region region) Provide the columnregionto be used for this rule.voidsetDeletable(boolean value) Providetrueif the region defined in this link should be deletable,falseotherwise.
Note: This setting takes effect for row and column rules only.voidsetEditable(boolean value) Providetrueif the region defined in this link should be editable,falseotherwise.voidsetRow(int rowNumber) Provide the number of the row this rule should be used for.
The row region is set toRegion.NUMBERautomatically.voidsetRowRegion(@NotNull StyleTemplateLink.Region region) Provide the rowregionto be used for this rule.voidsetTargetTemplate(@NotNull StyleTemplate styleTemplate) Provide theStyleTemplateto be linked to.Methods inherited from interface java.lang.Comparable
compareToMethods 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, getParent, 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.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getTargetTemplate
Returns the targettemplate- Since:
- 4.0.120
-
setTargetTemplate
Provide theStyleTemplateto be linked to.- Since:
- 4.0.120
-
getRowRegion
Returns the rowregionset for this rule.- Since:
- 4.0.120
-
setRowRegion
Provide the rowregionto be used for this rule.- Since:
- 4.0.120
-
getRow
int getRow()Returns the number of the row this rule should be used for.
Forregionsdifferent toRegion.CUSTOM-1will be returned.- Since:
- 4.0.120
-
setRow
void setRow(int rowNumber) Provide the number of the row this rule should be used for.
The row region is set toRegion.NUMBERautomatically.- Since:
- 4.0.120
-
getColumnRegion
Returns the columnregionset for this rule.- Since:
- 4.0.120
-
setColumnRegion
Provide the columnregionto be used for this rule.- Since:
- 4.0.120
-
getColumn
int getColumn()Returns the number of the column this rule should be used for.
Forregionsdifferent toRegion.CUSTOM-1will be returned.- Since:
- 4.0.120
-
setColumn
void setColumn(int columnNumber) Provide the number of the column this rule should be used for.
The column region is set toRegion.NUMBERautomatically.- Since:
- 4.0.120
-
isEditable
boolean isEditable()Returnstrueif the region defined in this link is editable,falseotherwise.- Since:
- 4.1.10
-
setEditable
void setEditable(boolean value) Providetrueif the region defined in this link should be editable,falseotherwise.- Since:
- 4.1.10
-
isDeletable
boolean isDeletable()Returnstrueif the region defined in this link is deletable,falseotherwise.
Note: Can only betruefor row and column rules.- Since:
- 4.1.10
-
setDeletable
void setDeletable(boolean value) Providetrueif the region defined in this link should be deletable,falseotherwise.
Note: This setting takes effect for row and column rules only.- Since:
- 4.1.10
-
matches
boolean matches(int rowNumber, boolean lastRow, int columnNumber, boolean lastColumn) Indicates whether the link is applicable for the given region.- Parameters:
rowNumber- The row.lastRow- The last row.columnNumber- The column.lastColumn- The last column.- Since:
- 4.0.120
-