Class DisplayCollection


  • public class DisplayCollection
    extends DisplayField
    Class to represent a collection field of an object for the webapp
    Author:
    Mark Woodbridge
    • Constructor Detail

      • DisplayCollection

        public DisplayCollection​(java.util.Collection<?> collection,
                                 CollectionDescriptor desc,
                                 WebConfig webConfig,
                                 java.util.Properties webProperties,
                                 java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys,
                                 java.util.List<java.lang.Class<?>> listOfTypes)
                          throws java.lang.Exception
        Construct a new DisplayCollection object
        Parameters:
        collection - the actual collection
        desc - the descriptors for this collection
        webConfig - the WebConfig object for this webapp
        webProperties - telling us how many Collection rows to show
        classKeys - Map of class name to set of keys
        listOfTypes - as determined using PathQueryResultHelper on a Collection
        Throws:
        java.lang.Exception - if an error occurs
      • DisplayCollection

        public DisplayCollection​(java.util.Collection<?> collection,
                                 CollectionDescriptor desc,
                                 WebConfig webConfig,
                                 java.util.Properties webProperties,
                                 java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys,
                                 java.util.List<java.lang.Class<?>> listOfTypes,
                                 java.lang.String objectType)
                          throws java.lang.Exception
        Construct a DisplayCollection object.
        Parameters:
        collection - The actual collection.
        desc - The metadata for this collection.
        webConfig - The configuration object for the web-app.
        webProperties - User configurable properties.
        classKeys - Map of class name to a composite key.
        listOfTypes - As determined for this collection.
        objectType - The type of object.
        Throws:
        java.lang.Exception - if something goes wrong.
    • Method Detail

      • getDescriptor

        public ReferenceDescriptor getDescriptor()
        Get ReferenceDescriptor for this reference.
        Returns:
        ReferenceDescriptor
      • getCollection

        public java.util.Collection getCollection()
        Returns:
        Collection for JSP instead of dealing with InlineResultsTable