question: private String buildText ( boolean useCurrentValue ) { StringBuilder itemsText = new StringBuilder ( ) ; int addItems = visibleItems / 2 + 1 ; for ( int i = currentItem - addItems ; i <= currentItem + addItems ; i ++ ) { if ( useCurrentValue || i != currentItem ) { String text = getTextItem ( i ) ; if ( text != null ) { itemsText . append ( text ) ; } } if ( i < currentItem + addItems ) { itemsText . append ( "\n" ) ; } } return itemsText . toString ( ) ; }
target:  Builds text depending on current value