Class IdAndNameBean<T>

  • All Implemented Interfaces:
    com.google.gwt.user.client.ui.SuggestOracle.Suggestion
    Direct Known Subclasses:
    IdAndNamePlusIconBean

    public class IdAndNameBean<T>
    extends Object
    implements com.google.gwt.user.client.ui.SuggestOracle.Suggestion
    helper bean for sorting entries.
    Author:
    Manfred Tremmel
    • Constructor Detail

      • IdAndNameBean

        public IdAndNameBean​(T pid,
                             String pname)
        constructor initializing fields.
        Parameters:
        pid - id of the entry
        pname - name of the entry
    • Method Detail

      • getId

        public final T getId()
      • getName

        public final String getName()
      • getDisplayString

        public String getDisplayString()
        Specified by:
        getDisplayString in interface com.google.gwt.user.client.ui.SuggestOracle.Suggestion
      • getReplacementString

        public String getReplacementString()
        Specified by:
        getReplacementString in interface com.google.gwt.user.client.ui.SuggestOracle.Suggestion
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object