public void setTitle ( String newTitle ) { if ( newTitle . length ( ) > TITLE_SIZE ) { title = newTitle . substring ( 0 , TITLE_SIZE ) ; } else { title = newTitle ; } }
Set the title field of the tag . The maximum size of the String is 30 . If the size exceeds the maximum size the String will be truncated .