public Window getWindow ( final String controllerId ) { final Optional < Target > target = targetManagement . getByControllerID ( controllerId ) ; if ( ! target . isPresent ( ) ) { uINotification . displayWarning ( i18n . getMessage ( "target.not.exists" , controllerId ) ) ; return null ; } populateValuesOfTarget ( target . get ( ) ) ; createNewWindow ( ) ; window . setCaption ( i18n . getMessage ( "caption.update" , i18n . getMessage ( "caption.target" ) ) ) ; window . addStyleName ( "target-update-window" ) ; return window ; }
Returns Target Update window based on the selected Entity Id in the target table .