Class ReferenceListFactory


  • public class ReferenceListFactory
    extends java.lang.Object
    Class which contains necessaries informations for creating a ReferenceList
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_CODE  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceListFactory​(java.util.Collection<?> collectionItem, java.lang.String strCodeAttr, java.lang.String strNameAttribute)
      Constructor
      ReferenceListFactory​(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.ReferenceList createReferenceList()
      Create the ReferenceList with the parameter values
      void setDefaultName​(java.lang.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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 from
        strCodeAttr - The name of the code attribute to retrieve the data from the item
        strNameAttribute - 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 from
        strCodeAttr - The name of the code attribute to retrieve the data from the item
        strNameAttribute - The name of the name of attribute to retrieve the data from the item
        bNumerical - 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