Class Displayer


  • public class Displayer
    extends java.lang.Object
    Configuration object describing details of a displayer
    Author:
    Andrew Varley, Thomas Riley
    • Constructor Summary

      Constructors 
      Constructor Description
      Displayer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParam​(java.lang.String name, java.lang.String value)
      Add a stored parameter to this Displayer.
      boolean equals​(java.lang.Object obj)
      java.lang.String getAspects()
      Get the aspects of this displayer
      java.util.Map<java.lang.String,​java.lang.String> getParams()
      Return the parameters stored in this Displayer.
      java.lang.String getShowOnLeft()  
      java.lang.String getSrc()
      Get the source of this displayer
      int hashCode()
      void setAspects​(java.lang.String aspect)
      Set the aspects of this displayer
      void setShowOnLeft​(java.lang.String showOnLeft)  
      void setSrc​(java.lang.String src)
      Set the source of this displayer
      java.lang.String toString()
      Return an XML String of this Type object
      java.lang.String toString​(java.lang.String elementName)
      Return an XML String of this Type object
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Displayer

        public Displayer()
    • Method Detail

      • setSrc

        public void setSrc​(java.lang.String src)
        Set the source of this displayer
        Parameters:
        src - the source
      • getAspects

        public java.lang.String getAspects()
        Get the aspects of this displayer
        Returns:
        the aspects
      • setAspects

        public void setAspects​(java.lang.String aspect)
        Set the aspects of this displayer
        Parameters:
        aspect - the aspects
      • getSrc

        public java.lang.String getSrc()
        Get the source of this displayer
        Returns:
        the source
      • addParam

        public void addParam​(java.lang.String name,
                             java.lang.String value)
        Add a stored parameter to this Displayer.
        Parameters:
        name - the name of the parameter to add
        value - the value of the parameter to add
      • getParams

        public java.util.Map<java.lang.String,​java.lang.String> getParams()
        Return the parameters stored in this Displayer.
        Returns:
        the stored parameters
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the Object to compare with
        Returns:
        true if this is equal to obj
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hashCode for this Displayer object
      • toString

        public java.lang.String toString()
        Return an XML String of this Type object
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String version of this WebConfig object
      • toString

        public java.lang.String toString​(java.lang.String elementName)
        Return an XML String of this Type object
        Parameters:
        elementName - the element name
        Returns:
        a String version of this WebConfig object
      • getShowOnLeft

        public java.lang.String getShowOnLeft()
        Returns:
        the showOnLeft
      • setShowOnLeft

        public void setShowOnLeft​(java.lang.String showOnLeft)
        Parameters:
        showOnLeft - if true, show this displayer under the summary