Class ReferenceListFactory
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.util.ReferenceListFactory
-
public class ReferenceListFactory extends java.lang.ObjectClass which contains necessaries informations for creating a ReferenceList
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CODE
-
Constructor Summary
Constructors Constructor Description ReferenceListFactory(java.util.Collection<?> collectionItem, java.lang.String strCodeAttr, java.lang.String strNameAttribute)ConstructorReferenceListFactory(java.util.Collection<?> collectionItem, java.lang.String strCodeAttr, java.lang.String strNameAttribute, boolean bNumerical)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.util.ReferenceListcreateReferenceList()Create the ReferenceList with the parameter valuesvoidsetDefaultName(java.lang.String strDefaultName)Set the default name of the default ReferenceItemvoidsetDefaultSortNeeded(boolean bDefaultSortNeeded)Set the boolean which tell if the default sort (based on the name value) is needed or not
-
-
-
Field Detail
-
DEFAULT_CODE
public static final java.lang.String DEFAULT_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReferenceListFactory
public ReferenceListFactory(java.util.Collection<?> collectionItem, java.lang.String strCodeAttr, java.lang.String strNameAttribute)Constructor- Parameters:
collectionItem- The collection of items to create the ReferenceList fromstrCodeAttr- The name of the code attribute to retrieve the data from the itemstrNameAttribute- The name of the name of attribute to retrieve the data from the item
-
ReferenceListFactory
public ReferenceListFactory(java.util.Collection<?> collectionItem, java.lang.String strCodeAttr, java.lang.String strNameAttribute, boolean bNumerical)Constructor- Parameters:
collectionItem- The collection of items to create the ReferenceList fromstrCodeAttr- The name of the code attribute to retrieve the data from the itemstrNameAttribute- The name of the name of attribute to retrieve the data from the itembNumerical- The boolean which tell if the code of the item is of type numeric or not
-
-
Method Detail
-
createReferenceList
public fr.paris.lutece.util.ReferenceList createReferenceList()
Create the ReferenceList with the parameter values- Returns:
- the ReferenceList created with the parameters values
-
setDefaultName
public void setDefaultName(java.lang.String strDefaultName)
Set the default name of the default ReferenceItem- Parameters:
strDefaultName- The strDefaultName to set
-
setDefaultSortNeeded
public void setDefaultSortNeeded(boolean bDefaultSortNeeded)
Set the boolean which tell if the default sort (based on the name value) is needed or not- Parameters:
bDefaultSortNeeded- The boolean which tell if the default sort (based on the name value) is needed or not
-
-