Interface StyleTemplateLink

All Superinterfaces:
Comparable<StoreElement>, StoreElement, Workflowable

public interface StyleTemplateLink extends StoreElement
Definition for defining a link to a style template from a rendering component.
Since:
4.0.120
  • Method Details

    • getTargetTemplate

      @Nullable @Nullable StyleTemplate getTargetTemplate()
      Returns the target template
      Since:
      4.0.120
    • setTargetTemplate

      void setTargetTemplate(@NotNull @NotNull StyleTemplate styleTemplate)
      Provide the StyleTemplate to be linked to.
      Since:
      4.0.120
    • getRowRegion

      @NotNull @NotNull StyleTemplateLink.Region getRowRegion()
      Returns the row region set for this rule.
      Since:
      4.0.120
    • setRowRegion

      void setRowRegion(@NotNull @NotNull StyleTemplateLink.Region region)
      Provide the row region to be used for this rule.
      Since:
      4.0.120
    • getRow

      int getRow()
      Returns the number of the row this rule should be used for.
      For regions different to Region.CUSTOM -1 will 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 to Region.NUMBER automatically.
      Since:
      4.0.120
    • getColumnRegion

      @NotNull @NotNull StyleTemplateLink.Region getColumnRegion()
      Returns the column region set for this rule.
      Since:
      4.0.120
    • setColumnRegion

      void setColumnRegion(@NotNull @NotNull StyleTemplateLink.Region region)
      Provide the column region to be used for this rule.
      Since:
      4.0.120
    • getColumn

      int getColumn()
      Returns the number of the column this rule should be used for.
      For regions different to Region.CUSTOM -1 will 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 to Region.NUMBER automatically.
      Since:
      4.0.120
    • isEditable

      boolean isEditable()
      Returns true if the region defined in this link is editable, false otherwise.
      Since:
      4.1.10
    • setEditable

      void setEditable(boolean value)
      Provide true if the region defined in this link should be editable, false otherwise.
      Since:
      4.1.10
    • isDeletable

      boolean isDeletable()
      Returns true if the region defined in this link is deletable, false otherwise.
      Note: Can only be true for row and column rules.
      Since:
      4.1.10
    • setDeletable

      void setDeletable(boolean value)
      Provide true if the region defined in this link should be deletable, false otherwise.
      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