Class Footer.Row.Cell

    • Constructor Detail

      • Cell

        protected Cell()
        Creates a new footer cell.
    • Method Detail

      • getColumnId

        public String getColumnId()
      • getCellState

        protected SectionState.CellState getCellState()
        Returns the shared state of this cell.
        Returns:
        the cell state
      • setText

        public void setText​(String text)
        Sets the textual caption of this cell.
        Parameters:
        text - a plain text caption, not null
      • getText

        public String getText()
        Returns the textual caption of this cell.
        Returns:
        the plain text caption
      • getHtml

        public String getHtml()
        Returns the HTML content displayed in this cell.
        Returns:
        the html
      • setHtml

        public void setHtml​(String html)
        Sets the HTML content displayed in this cell.
        Parameters:
        html - the html to set, not null
      • getComponent

        public Component getComponent()
        Returns the component displayed in this cell.
        Returns:
        the component
      • setComponent

        public void setComponent​(Component component)
        Sets the component displayed in this cell.
        Parameters:
        component - the component to set, not null
      • getCellType

        public GridStaticCellType getCellType()
        Returns the type of content stored in this cell.
        Returns:
        cell content type
      • getStyleName

        public String getStyleName()
        Returns the custom style name for this cell.
        Returns:
        the style name or null if no style name has been set
      • setStyleName

        public void setStyleName​(String styleName)
        Sets a custom style name for this cell.
        Parameters:
        styleName - the style name to set or null to not use any style name
      • readDesign

        protected void readDesign​(org.jsoup.nodes.Element cellElement,
                                  DesignContext designContext)
        Reads the declarative design from the given table cell element.
        Parameters:
        cellElement - Element to read design from
        designContext - the design context
        Since:
        7.5.0
      • getDescription

        public String getDescription()
        Gets the tooltip for the cell.

        The tooltip is shown in the mode returned by getDescriptionContentMode().

        Since:
        8.4
      • setDescription

        public void setDescription​(String description,
                                   ContentMode descriptionContentMode)
        Sets the tooltip for the cell to be shown with the given content mode.
        Parameters:
        description - the tooltip to show when hovering the cell
        descriptionContentMode - the content mode to use for the tooltip (HTML or plain text)
        Since:
        8.4
        See Also:
        ContentMode
      • getDescriptionContentMode

        public ContentMode getDescriptionContentMode()
        Gets the content mode for the tooltip.
        Returns:
        the content mode for the tooltip
        Since:
        8.4
        See Also:
        ContentMode
      • setDescriptionContentMode

        public void setDescriptionContentMode​(ContentMode descriptionContentMode)
        Sets the content mode for the tooltip.
        Parameters:
        descriptionContentMode - the content mode for the tooltip
        Since:
        8.4
        See Also:
        ContentMode