Class AbstractManyToOneSuggestion<T>
java.lang.Object
de.knightsoftnet.mtwidgets.client.ui.widget.oracle.AbstractManyToOneSuggestion<T>
- Type Parameters:
T- type of entity
- All Implemented Interfaces:
SuggestOracle.Suggestion
public abstract class AbstractManyToOneSuggestion<T>
extends Object
implements SuggestOracle.Suggestion
abstract suggestion implementation for entities which implement HasKeyValueSuggestion interface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractManyToOneSuggestion(T entity, SuggestOracle.Request request) default constructor. -
Method Summary
Modifier and TypeMethodDescriptionget entity base element.abstract Stringget name element of the entity.abstract AbstractManyToOneSuggestion<T>of(T entity, SuggestOracle.Request request) generate new instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.SuggestOracle.Suggestion
getReplacementString
-
Field Details
-
entity
-
request
-
-
Constructor Details
-
AbstractManyToOneSuggestion
default constructor.- Parameters:
entity- the entity which was foundrequest- the request which was fired
-
-
Method Details
-
of
generate new instance.- Parameters:
entity- the entity which was foundrequest- the request which was fired- Returns:
- new entity instance
-
getDisplayString
- Specified by:
getDisplayStringin interfaceSuggestOracle.Suggestion
-
getNameString
get name element of the entity.- Returns:
- name string
-
getEntity
get entity base element.- Returns:
- entity
-