private String convert ( final T status ) { if ( adapter == null ) { throw new IllegalStateException ( "Adapter must be set before usage! Convertion without adapter is not possible!" ) ; } final StatusFontIcon statusProps = adapter . adapt ( status ) ; // fail fast if ( statusProps == null ) { return "" ; } final String codePoint = getCodePoint ( statusProps ) ; final String title = statusProps . getTitle ( ) ; return getStatusLabelDetailsInString ( codePoint , statusProps . getStyle ( ) , title , statusProps . getId ( ) , statusProps . isDisabled ( ) ) ; }
Converts the model data to a string representation of the presentation label that is used on client - side to style the label .