Class DisplayReference


  • public class DisplayReference
    extends DisplayField
    Class to represent a reference field of an object for display in the webapp
    Author:
    Mark Woodbridge
    • Constructor Detail

      • DisplayReference

        public DisplayReference​(ProxyReference proxy,
                                ReferenceDescriptor ref,
                                WebConfig webConfig,
                                java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys,
                                java.lang.String objectType)
                         throws java.lang.Exception
        Create a new DisplayReference object.
        Parameters:
        proxy - proxy for the referenced object
        ref - metadata for the referenced object
        webConfig - the WebConfig object for this webapp
        classKeys - Map of class name to set of keys
        objectType - the type of the object.
        Throws:
        java.lang.Exception - if an error occurs
    • Method Detail

      • getDescriptor

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

        public int getId()
        Get the id of the object
        Returns:
        the id
      • getObject

        public java.lang.Object getObject()
        Get the referenced object
        Returns:
        the object