Package com.axemble.vdoc.sdk.interfaces
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
Called when the conversion succeed- Parameters:
result
- the conversion result
-
onException
Calles when the conversion fails- Parameters:
e
- the fail exception
-
getWaitingMessageTranslationKey
String getWaitingMessageTranslationKey()Called before conversion to display a waiting message to the user
-