T
- the convert strategy result typepublic interface IViewerConverterStrategy<T>
Modifier and Type | Method and Description |
---|---|
String |
getWaitingMessageTranslationKey()
Called before conversion to display a waiting message to the user
|
void |
onException(Exception e)
Calles when the conversion fails
|
void |
onSuccess(T result)
Called when the conversion succeed
|
Future<T> |
start()
start the conversion
|
IWidget |
toWidget()
build the display strategy
|
Future<T> start() throws ViewerConversionException
ViewerConversionException
- throw if conversion can't startIWidget toWidget()
void onSuccess(T result)
result
- the conversion resultvoid onException(Exception e)
e
- the fail exceptionString getWaitingMessageTranslationKey()
Copyright © 2024 Visiativ. All rights reserved.