* Initialize all {@link TextTargetRedirector}, used to refresh attributes that needed to be
* updated with new values.
*/
private void initTargetRedirector() {
stateRedirector = new TextTargetRedirector() {
@Override
public void methodToRedirect(String data) {
boolean stateChanged = updateState(data);
if (stateChanged) {
computeDetailsAvailabilities();
}
}
};
warningLevelRedirector = new TextTargetRedirector() {
@Override
public void methodToRedirect(String data) {
updateWarningLevel(data);
}
};