Class AbstractColumn<C extends AbstractColumn<C>>

    • Constructor Detail

      • AbstractColumn

        public AbstractColumn()
      • AbstractColumn

        public AbstractColumn​(String type)
      • AbstractColumn

        public AbstractColumn​(Column<?> component)
    • Method Detail

      • getAlign

        public String getAlign()
        Description copied from interface: Column
        Defines the alignment of column data as either "left", "center", or "right". Default is "left" if not set.
        Specified by:
        getAlign in interface Column<C extends AbstractColumn<C>>
        Returns:
        the alignment
      • getColSpan

        public String getColSpan()
        Description copied from interface: Column
        Defines the number of column lengths this column spans. Useful for making a name or description column span multiple column lengths.
        Specified by:
        getColSpan in interface Column<C extends AbstractColumn<C>>
        Returns:
        the col span
      • getName

        public String getName()
        Description copied from interface: Column
        The name of the property this column will display.
        Specified by:
        getName in interface Column<C extends AbstractColumn<C>>
        Returns:
        the name
      • isSortable

        public boolean isSortable()
        Description copied from interface: Column
        Whether or not the column is sortable.
        Specified by:
        isSortable in interface Column<C extends AbstractColumn<C>>
        Returns:
        whether or not sortable.
      • getWidth

        public String getWidth()
        Description copied from interface: Column
        Defines a fixed width for this column. By default, all columns are auto-sized according to their content.

        Supports width values compatible with the CSS width property, for example:

        • 100px
        • 100
        • 4rem
        • 3em
        • 50%
        Specified by:
        getWidth in interface Column<C extends AbstractColumn<C>>
        Returns:
        the width
      • setAlign

        public void setAlign​(String align)
        Description copied from interface: Column
        Sets the alignment.
        Specified by:
        setAlign in interface Column<C extends AbstractColumn<C>>
        Parameters:
        align - the alignment
      • setColSpan

        public void setColSpan​(String colSpan)
        Description copied from interface: Column
        Sets the column span.
        Specified by:
        setColSpan in interface Column<C extends AbstractColumn<C>>
        Parameters:
        colSpan - the col span
      • setName

        public void setName​(String name)
        Description copied from interface: Column
        Sets the name.
        Specified by:
        setName in interface Column<C extends AbstractColumn<C>>
        Parameters:
        name - the name
      • setSortable

        public void setSortable​(boolean sortable)
        Description copied from interface: Column
        Sets whether or not sortable.
        Specified by:
        setSortable in interface Column<C extends AbstractColumn<C>>
        Parameters:
        sortable - whether or not sortable
      • setWidth

        public void setWidth​(String width)
        Description copied from interface: Column
        Sets the width of the column.
        Specified by:
        setWidth in interface Column<C extends AbstractColumn<C>>
        Parameters:
        width - the width