Package fr.paris.lutece.util.datatable
Class DataTableColumn
- java.lang.Object
-
- fr.paris.lutece.util.datatable.DataTableColumn
-
- All Implemented Interfaces:
java.io.Serializable
public class DataTableColumn extends java.lang.Object implements java.io.SerializableData 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 DataTableColumnDataTableColumn(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.StringgetLabelFalse()Get the label to print in a cell if the boolean value is falsejava.lang.StringgetLabelTrue()Get the label to print in a cell if the boolean value is truejava.lang.StringgetParameterName()Get the name of the object to insert into this cells of this columnbooleangetSortable()Get the sortable boolean of this columnjava.lang.StringgetTitleKey()Get the I18n key of the title of this columnDataTableColumnTypegetTypeColumn()Get the type of the columnvoidsetLabelFalse(java.lang.String strLabelFalse)Set the label to print in a cell if the boolean value is falsevoidsetLabelTrue(java.lang.String strLabelTrue)Set the label to print in a cell if the boolean value is truevoidsetParameterName(java.lang.String strParameterName)Set the name of the object to insert into this cells of this columnvoidsetSortable(boolean bSortable)Set the sortable boolean of this columnvoidsetTitleKey(java.lang.String strTitleKey)Set the I18n key of the title of this columnvoidsetTypeColumn(DataTableColumnType columnType)Set the type of the column
-
-
-
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 columnstrParameterName- Name of the object to insert into this cells of this columnbSortable- True of the column is sortable, false otherwisetypeColumn- 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 columnstrParameterName- Name of the object to insert into this cells of this columnbSortable- True of the column is sortable, false otherwisecolumnType- The type of data displayed by the columnstrLabelTrue- The label to display in a cell if the value is truestrLabelFalse- 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
-
-