Class UIResponse
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.messages.UIResponse
 
- 
- All Implemented Interfaces:
- UICallback,- java.io.Serializable
 
 public class UIResponse extends java.lang.Object implements UICallback, java.io.Serializable - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description UIResponse(java.util.Locale locale)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattempt(FragileRunnable<?> method)Attempt to run the given method, catching any Throwable and adding it as an error to the UIResponse.voiderror(java.lang.String message, java.lang.Object... args)java.util.List<java.lang.String>getErrors()java.util.List<java.lang.String>getInfos()java.util.LocalegetLocale()java.util.List<java.lang.String>getWarns()voidinfo(java.lang.String message, java.lang.Object... args)voidwarn(java.lang.String message, java.lang.Object... args)static UIResponsewrap(java.util.Locale locale, java.util.function.Consumer<UIResponse> fx)Create a new UIResponse with the given locale, then run the consumer function.
 
- 
- 
- 
Method Detail- 
wrappublic static UIResponse wrap(java.util.Locale locale, java.util.function.Consumer<UIResponse> fx) Create a new UIResponse with the given locale, then run the consumer function.
 - 
attemptpublic void attempt(FragileRunnable<?> method) Attempt to run the given method, catching any Throwable and adding it as an error to the UIResponse.
 - 
getLocalepublic java.util.Locale getLocale() - Specified by:
- getLocalein interface- UICallback
 
 - 
warnpublic void warn(java.lang.String message, java.lang.Object... args)- Specified by:
- warnin interface- UICallback
 
 - 
errorpublic void error(java.lang.String message, java.lang.Object... args)- Specified by:
- errorin interface- UICallback
 
 - 
infopublic void info(java.lang.String message, java.lang.Object... args)- Specified by:
- infoin interface- UICallback
 
 - 
getWarnspublic java.util.List<java.lang.String> getWarns() 
 - 
getErrorspublic java.util.List<java.lang.String> getErrors() 
 - 
getInfospublic java.util.List<java.lang.String> getInfos() 
 
- 
 
-