Class AbstractManyToOneEntityWidget<T,S extends AbstractManyToOneSuggestion<T>>

Type Parameters:
T - type of the entity
S - suggestion for entity type
All Implemented Interfaces:
com.google.gwt.editor.client.Editor<T>, com.google.gwt.editor.client.LeafValueEditor<T>, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<T>, HasValue<T>, HasVisibility, IsRenderable, IsWidget, HasValidationMessageElement<T,de.knightsoftnet.validators.client.editor.ValueBoxEditor<T>>, org.gwtproject.editor.client.Editor<T>, org.gwtproject.editor.client.HasEditorErrors<T>, org.gwtproject.editor.client.IsEditor<de.knightsoftnet.validators.client.editor.ValueBoxEditor<T>>, org.gwtproject.editor.client.TakesValue<T>

public abstract class AbstractManyToOneEntityWidget<T,S extends AbstractManyToOneSuggestion<T>> extends Composite implements com.google.gwt.editor.client.LeafValueEditor<T>, HasValue<T>, org.gwtproject.editor.client.TakesValue<T>, HasValidationMessageElement<T,de.knightsoftnet.validators.client.editor.ValueBoxEditor<T>>, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers
Input widget for database many to one entity references.
  • Constructor Details

    • AbstractManyToOneEntityWidget

      public AbstractManyToOneEntityWidget(AbstractManyToOneEntityWidget.Binder uiBinder, com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<? extends ManyToOneSuggestionRestService<T>> restDelegate, S suggestionPrototype)
      default constructor.
      Parameters:
      uiBinder - ui binder
      restDelegate - rest delegate
  • Method Details

    • addValueChangeHandler

      public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler)
      Specified by:
      addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>
    • addKeyPressHandler

      public com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(com.google.gwt.event.dom.client.KeyPressHandler handler)
      Specified by:
      addKeyPressHandler in interface com.google.gwt.event.dom.client.HasKeyPressHandlers
    • addKeyUpHandler

      public com.google.gwt.event.shared.HandlerRegistration addKeyUpHandler(com.google.gwt.event.dom.client.KeyUpHandler handler)
      Specified by:
      addKeyUpHandler in interface com.google.gwt.event.dom.client.HasKeyUpHandlers
    • getValue

      public T getValue()
      Specified by:
      getValue in interface HasValue<T>
      Specified by:
      getValue in interface com.google.gwt.user.client.TakesValue<T>
      Specified by:
      getValue in interface org.gwtproject.editor.client.TakesValue<T>
    • setValue

      public void setValue(T value)
      Specified by:
      setValue in interface HasValue<T>
      Specified by:
      setValue in interface com.google.gwt.user.client.TakesValue<T>
      Specified by:
      setValue in interface org.gwtproject.editor.client.TakesValue<T>
    • setValue

      public void setValue(T value, boolean fireEvents)
      Specified by:
      setValue in interface HasValue<T>
    • asEditor

      public de.knightsoftnet.validators.client.editor.ValueBoxEditor<T> asEditor()
      Specified by:
      asEditor in interface org.gwtproject.editor.client.IsEditor<T>
    • setValidationMessageElement

      public void setValidationMessageElement(HTMLPanel element)
      Specified by:
      setValidationMessageElement in interface HasValidationMessageElement<T,S extends AbstractManyToOneSuggestion<T>>
    • getValidationMessageElement

      public HTMLPanel getValidationMessageElement()
      Specified by:
      getValidationMessageElement in interface HasValidationMessageElement<T,S extends AbstractManyToOneSuggestion<T>>
    • setCustomValidity

      public void setCustomValidity(String message)
      Specified by:
      setCustomValidity in interface HasValidationMessageElement<T,S extends AbstractManyToOneSuggestion<T>>
    • onEnsureDebugId

      protected void onEnsureDebugId(String baseId)
      Overrides:
      onEnsureDebugId in class UIObject