fr.paris.lutece.util.datatable
Class DataTableColumn

java.lang.Object
  extended by fr.paris.lutece.util.datatable.DataTableColumn

public class DataTableColumn
extends Object

Data table column


Constructor Summary
DataTableColumn(String strTitleKey, String strParameterName, boolean bSortable, DataTableColumnType typeColumn)
          Creates a new DataTableColumn
DataTableColumn(String strTitleKey, String strParameterName, boolean bSortable, DataTableColumnType columnType, String strLabelTrue, String strLabelFalse)
          Creates a new boolean DataTableColumn
 
Method Summary
 String getLabelFalse()
          Get the label to print in a cell if the boolean value is false
 String getLabelTrue()
          Get the label to print in a cell if the boolean value is true
 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
 String getTitleKey()
          Get the I18n key of the title of this column
 DataTableColumnType getTypeColumn()
          Get the type of the column
 void setLabelFalse(String strLabelFalse)
          Set the label to print in a cell if the boolean value is false
 void setLabelTrue(String strLabelTrue)
          Set the label to print in a cell if the boolean value is true
 void setParameterName(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(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTableColumn

public DataTableColumn(String strTitleKey,
                       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(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 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 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(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 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(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 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(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 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(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


Copyright © 2014 Mairie de Paris. All Rights Reserved.