public void setRtfDocument ( RtfDocument doc ) { super . setRtfDocument ( doc ) ; for ( int i = 0 ; i < this . chunks . size ( ) ; i ++ ) { ( ( RtfBasicElement ) this . chunks . get ( i ) ) . setRtfDocument ( this . document ) ; } }
Sets the RtfDocument this RtfPhrase belongs to . Also sets the RtfDocument for all child elements .