public void setWhiteSpace ( CSSProperty . WhiteSpace value ) { splitws = ( value == ElementBox . WHITESPACE_NORMAL || value == ElementBox . WHITESPACE_PRE_WRAP || value == ElementBox . WHITESPACE_PRE_LINE ) ; collapsews = ( value == ElementBox . WHITESPACE_NORMAL || value == ElementBox . WHITESPACE_NOWRAP || value == ElementBox . WHITESPACE_PRE_LINE ) ; linews = ( value == ElementBox . WHITESPACE_NORMAL || value == ElementBox . WHITESPACE_NOWRAP ) ; //When this is the original box, apply the whitespace. For the copied boxes, the whitespace has been already applied (they contain //a copy of the original, already processed content). if ( ! splitted ) applyWhiteSpace ( ) ; //recompute widths (possibly different wrapping) computeLineLengths ( ) ; minwidth = computeMinimalWidth ( ) ; maxwidth = computeMaximalWidth ( ) ; }
Sets the whitespace processing for this box . The text content is then treated accordingly . The text start and text end indices are reset to their initial values .