Interface IViewerConverterStrategy<T>

Type Parameters:
T - the convert strategy result type
All Known Implementing Classes:
AbstractConverterStrategy

public interface IViewerConverterStrategy<T>
Convert to renderable widget
  • Method Details

    • start

      start the conversion
      Returns:
      the future result
      Throws:
      ViewerConversionException - throw if conversion can't start
    • toWidget

      IWidget toWidget()
      build the display strategy
      Returns:
      the display widget
    • onSuccess

      void onSuccess(T result)
      Called when the conversion succeed
      Parameters:
      result - the conversion result
    • onException

      void onException(Exception e)
      Calles when the conversion fails
      Parameters:
      e - the fail exception
    • getWaitingMessageTranslationKey

      String getWaitingMessageTranslationKey()
      Called before conversion to display a waiting message to the user