Class WebTableDepictor<C extends Table>

    • Constructor Detail

      • WebTableDepictor

        public WebTableDepictor()
        Default constructor using the XHTML <table> element.
    • Method Detail

      • getOuterStyles

        protected java.util.Map<java.lang.String,​java.lang.Object> getOuterStyles()
        Retrieves the styles for the outer element of the component.

        This version returns the style for color.

        This version combines the body styles with the outer styles.

        Overrides:
        getOuterStyles in class AbstractWebComponentDepictor<C extends Table>
        Returns:
        The styles for the outer element of the component, mapped to CSS property names.
        See Also:
        AbstractWebComponentDepictor.getBodyStyles()
      • depictBegin

        protected void depictBegin()
                            throws java.io.IOException
        Description copied from class: AbstractWebComponentDepictor
        Begins the depiction process.

        This version renders the beginning XML element information, if there is any, leaving the beginning tag open for attributes.

        This version writes common XHTML attributes.

        Overrides:
        depictBegin in class AbstractWebComponentDepictor<C extends Table>
        Throws:
        java.io.IOException - if there is an error updating the depiction.
      • updateHeaderView

        protected <T> void updateHeaderView​(TableModel tableModel,
                                            TableColumnModel<T> column)
                                     throws java.io.IOException
        Updates the view of a column header.
        Type Parameters:
        T - The type of value contained in the cells of the column.
        Parameters:
        tableModel - The component model.
        column - The cell column.
        Throws:
        java.io.IOException - if there is an error updating the cell view.
      • getLabelStyles

        protected java.util.Map<java.lang.String,​java.lang.Object> getLabelStyles​(LabelModel labelModel,
                                                                                        PresentationModel uiModel)
        Retrieves the styles for the label of the component.

        If a column is being rendered, this version adds border styles.

        Overrides:
        getLabelStyles in class AbstractWebComponentDepictor<C extends Table>
        Parameters:
        labelModel - The label model containing the label content.
        uiModel - The model containing the label style information.
        Returns:
        The styles for the label of the component, mapped to CSS property names.
      • updateCellView

        protected <T> void updateCellView​(TableModel tableModel,
                                          int rowIndex,
                                          TableColumnModel<T> column)
                                   throws java.io.IOException
        Updates the view of a column.
        Type Parameters:
        T - The type of value contained in the cells of the column.
        Parameters:
        tableModel - The component model.
        rowIndex - The zero-based cell row index.
        column - The cell column.
        Throws:
        java.io.IOException - if there is an error updating the cell view.
      • depictEnd

        protected void depictEnd()
                          throws java.io.IOException
        Description copied from class: AbstractWebComponentDepictor
        Ends the depiction process.

        This version renders the ending XML element information, if there is any.

        Overrides:
        depictEnd in class AbstractWebComponentDepictor<C extends Table>
        Throws:
        java.io.IOException - if there is an error updating the depiction.