Package fr.paris.lutece.util.datatable
Class DataTableColumn
java.lang.Object
fr.paris.lutece.util.datatable.DataTableColumn
- All Implemented Interfaces:
Serializable
Data table column
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataTableColumn(String strTitleKey, String strParameterName, boolean bSortable, DataTableColumnType typeColumn) Creates a new DataTableColumnDataTableColumn(String strTitleKey, String strParameterName, boolean bSortable, DataTableColumnType columnType, String strLabelTrue, String strLabelFalse) Creates a new boolean DataTableColumn -
Method Summary
Modifier and TypeMethodDescriptionGet the label to print in a cell if the boolean value is falseGet the label to print in a cell if the boolean value is trueGet the name of the object to insert into this cells of this columnbooleanGet the sortable boolean of this columnGet the I18n key of the title of this columnGet the type of the columnvoidsetLabelFalse(String strLabelFalse) Set the label to print in a cell if the boolean value is falsevoidsetLabelTrue(String strLabelTrue) Set the label to print in a cell if the boolean value is truevoidsetParameterName(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(String strTitleKey) Set the I18n key of the title of this columnvoidsetTypeColumn(DataTableColumnType columnType) Set the type of the column
-
Constructor Details
-
DataTableColumn
public DataTableColumn(String strTitleKey, 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(String strTitleKey, String strParameterName, boolean bSortable, DataTableColumnType columnType, String strLabelTrue, 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 Details
-
getTitleKey
Get the I18n key of the title of this column- Returns:
- The I18n key of the title of this column
-
setTitleKey
Set the I18n key of the title of this column- Parameters:
strTitleKey- The I18n key of the title of this column
-
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
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
Get the type of the column- Returns:
- The type of the column
-
setTypeColumn
Set the type of the column- Parameters:
columnType- The type of the column
-
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
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
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
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
-