Class SimpleWebTable


  • public class SimpleWebTable
    extends java.lang.Object
    The idea of this class is to represent a simple table that has column headers and rows.
    Author:
    Mathew Brozowski, DJ Gregor
    • Constructor Detail

      • SimpleWebTable

        public SimpleWebTable()
    • Method Detail

      • getColumnHeaders

        public java.util.List<SimpleWebTable.Cell> getColumnHeaders()

        getColumnHeaders

        Returns:
        a List object.
      • getRows

        public java.util.List<java.util.List<SimpleWebTable.Cell>> getRows()

        getRows

        Returns:
        a List object.
      • getTitle

        public java.lang.String getTitle()

        getTitle

        Returns:
        a String object.
      • setTitle

        public void setTitle​(java.lang.String title)

        setTitle

        Parameters:
        title - a String object.
      • addColumn

        public SimpleWebTable.Cell addColumn​(java.lang.Object headerContent,
                                             java.lang.String headerStyle)

        addColumn

        Parameters:
        headerContent - a Object object.
        headerStyle - a String object.
        Returns:
        a SimpleWebTable.Cell object.
      • newRow

        public void newRow()

        newRow

      • addCell

        public SimpleWebTable.Cell addCell​(java.lang.Object cellContent,
                                           java.lang.String cellStyle,
                                           java.lang.String link)

        addCell

        Parameters:
        cellContent - a Object object.
        cellStyle - a String object.
        link - a String object.
        Returns:
        a SimpleWebTable.Cell object.
      • addCell

        public SimpleWebTable.Cell addCell​(java.lang.Object cellContent,
                                           java.lang.String cellStyle)

        addCell

        Parameters:
        cellContent - a Object object.
        cellStyle - a String object.
        Returns:
        a SimpleWebTable.Cell object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getErrors

        public org.springframework.validation.Errors getErrors()

        getErrors

        Returns:
        a Errors object.
      • setErrors

        public void setErrors​(org.springframework.validation.Errors errors)

        setErrors

        Parameters:
        errors - a Errors object.