public class ReferenceListFactory extends Object
| Constructor and Description |
|---|
ReferenceListFactory(Collection<?> collectionItem,
String strCodeAttr,
String strNameAttribute)
Constructor
|
ReferenceListFactory(Collection<?> collectionItem,
String strCodeAttr,
String strNameAttribute,
boolean bNumerical)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.util.ReferenceList |
createReferenceList()
Create the ReferenceList with the parameter values
|
void |
setDefaultName(String strDefaultName)
Set the default name of the default ReferenceItem
|
void |
setDefaultSortNeeded(boolean bDefaultSortNeeded)
Set the boolean which tell if the default sort (based on the name value) is needed or not
|
public ReferenceListFactory(Collection<?> collectionItem, String strCodeAttr, String strNameAttribute)
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 itempublic ReferenceListFactory(Collection<?> collectionItem, String strCodeAttr, String strNameAttribute, boolean bNumerical)
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 notpublic fr.paris.lutece.util.ReferenceList createReferenceList()
public void setDefaultName(String strDefaultName)
strDefaultName - The strDefaultName to setpublic void setDefaultSortNeeded(boolean bDefaultSortNeeded)
bDefaultSortNeeded - The boolean which tell if the default sort (based on the name value) is needed or notCopyright © 2019 City of Paris. All rights reserved.