protected String formatPlaceholderText ( String text ) { String formattedText = ( null != text ) ? text . trim ( ) : null ; int length = ( null != formattedText ) ? formattedText . length ( ) : 0 ; if ( length > 0 ) { return formattedText . substring ( 0 , Math . min ( 2 , length ) ) . toUpperCase ( Locale . getDefault ( ) ) ; } return null ; }
Default implementation of the placeholder text formatting .