Class StaticTextDataImpl

  • All Implemented Interfaces:
    StaticTextData

    public class StaticTextDataImpl
    extends Object
    implements StaticTextData

    A default implementation of the StaticTextData interface.

    This class defines the required properties and corresponding accessor methods.

    Version:
    $Id: StaticTextDataImpl.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • StaticTextDataImpl

        public StaticTextDataImpl()
        Creates a new instance of StaticTextDataImpl.
    • Method Detail

      • setIcon

        public void setIcon​(Object icon)
        Sets the icon.
        Specified by:
        setIcon in interface StaticTextData
        Parameters:
        icon - the icon
      • setText

        public void setText​(String text)
        Sets the text.
        Specified by:
        setText in interface StaticTextData
        Parameters:
        text - the text
      • equals

        public boolean equals​(Object obj)
        Compares this object with another one. Two StaticTextDataImpl objects are equal if and only if all their member fields are equal.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare to
        Returns:
        a flag whether the objects are equal
      • hashCode

        public int hashCode()
        Returns a hash code for this object.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code