Class IdAndNameBean<T>

java.lang.Object
de.knightsoftnet.mtwidgets.client.ui.widget.helper.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 Details

    • IdAndNameBean

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

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object