Class DataTableColumn

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataTableColumn
    extends java.lang.Object
    implements java.io.Serializable
    Data table column
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DataTableColumn​(java.lang.String strTitleKey, java.lang.String strParameterName, boolean bSortable, DataTableColumnType typeColumn)
      Creates a new DataTableColumn
      DataTableColumn​(java.lang.String strTitleKey, java.lang.String strParameterName, boolean bSortable, DataTableColumnType columnType, java.lang.String strLabelTrue, java.lang.String strLabelFalse)
      Creates a new boolean DataTableColumn
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabelFalse()
      Get the label to print in a cell if the boolean value is false
      java.lang.String getLabelTrue()
      Get the label to print in a cell if the boolean value is true
      java.lang.String getParameterName()
      Get the name of the object to insert into this cells of this column
      boolean getSortable()
      Get the sortable boolean of this column
      java.lang.String getTitleKey()
      Get the I18n key of the title of this column
      DataTableColumnType getTypeColumn()
      Get the type of the column
      void setLabelFalse​(java.lang.String strLabelFalse)
      Set the label to print in a cell if the boolean value is false
      void setLabelTrue​(java.lang.String strLabelTrue)
      Set the label to print in a cell if the boolean value is true
      void setParameterName​(java.lang.String strParameterName)
      Set the name of the object to insert into this cells of this column
      void setSortable​(boolean bSortable)
      Set the sortable boolean of this column
      void setTitleKey​(java.lang.String strTitleKey)
      Set the I18n key of the title of this column
      void setTypeColumn​(DataTableColumnType columnType)
      Set the type of the column
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataTableColumn

        public DataTableColumn​(java.lang.String strTitleKey,
                               java.lang.String strParameterName,
                               boolean bSortable,
                               DataTableColumnType typeColumn)
        Creates a new DataTableColumn
        Parameters:
        strTitleKey - I18n key of the title of this column
        strParameterName - Name of the object to insert into this cells of this column
        bSortable - True of the column is sortable, false otherwise
        typeColumn - The type of data displayed by the column
      • DataTableColumn

        public DataTableColumn​(java.lang.String strTitleKey,
                               java.lang.String strParameterName,
                               boolean bSortable,
                               DataTableColumnType columnType,
                               java.lang.String strLabelTrue,
                               java.lang.String strLabelFalse)
        Creates a new boolean DataTableColumn
        Parameters:
        strTitleKey - I18n key of the title of this column
        strParameterName - Name of the object to insert into this cells of this column
        bSortable - True of the column is sortable, false otherwise
        columnType - The type of data displayed by the column
        strLabelTrue - The label to display in a cell if the value is true
        strLabelFalse - The label to display in a cell if the value is false
    • Method Detail

      • getTitleKey

        public java.lang.String getTitleKey()
        Get the I18n key of the title of this column
        Returns:
        The I18n key of the title of this column
      • setTitleKey

        public void setTitleKey​(java.lang.String strTitleKey)
        Set the I18n key of the title of this column
        Parameters:
        strTitleKey - The I18n key of the title of this column
      • getParameterName

        public java.lang.String getParameterName()
        Get the name of the object to insert into this cells of this column
        Returns:
        The name of the object to insert into this cells of this column
      • setParameterName

        public void setParameterName​(java.lang.String strParameterName)
        Set the name of the object to insert into this cells of this column
        Parameters:
        strParameterName - The name of the object to insert into this cells of this column
      • getSortable

        public boolean getSortable()
        Get the sortable boolean of this column
        Returns:
        true if the column is sortable, false otherwise
      • setSortable

        public void setSortable​(boolean bSortable)
        Set the sortable boolean of this column
        Parameters:
        bSortable - true if the column is sortable, false otherwise
      • getTypeColumn

        public DataTableColumnType getTypeColumn()
        Get the type of the column
        Returns:
        The type of the column
      • setTypeColumn

        public void setTypeColumn​(DataTableColumnType columnType)
        Set the type of the column
        Parameters:
        columnType - The type of the column
      • getLabelTrue

        public java.lang.String getLabelTrue()
        Get the label to print in a cell if the boolean value is true
        Returns:
        The label to print in a cell if the boolean value is true
      • setLabelTrue

        public void setLabelTrue​(java.lang.String strLabelTrue)
        Set the label to print in a cell if the boolean value is true
        Parameters:
        strLabelTrue - The label to print in a cell if the boolean value is true
      • getLabelFalse

        public java.lang.String getLabelFalse()
        Get the label to print in a cell if the boolean value is false
        Returns:
        The label to print in a cell if the boolean value is false
      • setLabelFalse

        public void setLabelFalse​(java.lang.String strLabelFalse)
        Set the label to print in a cell if the boolean value is false
        Parameters:
        strLabelFalse - The label to print in a cell if the boolean value is false