question: void updateInsets ( ) { short top = ( short ) painter . getInset ( TOP , this ) ; short bottom = ( short ) painter . getInset ( BOTTOM , this ) ; if ( captionIndex != - 1 ) { View caption = getView ( captionIndex ) ; short h = ( short ) caption . getPreferredSpan ( Y_AXIS ) ; AttributeSet a = caption . getAttributes ( ) ; Object align = a . getAttribute ( CSS . Attribute . CAPTION_SIDE ) ; if ( ( align != null ) && ( align . equals ( "bottom" ) ) ) { bottom += h ; } else { top += h ; } } setInsets ( top , ( short ) painter . getInset ( LEFT , this ) , bottom , ( short ) painter . getInset ( RIGHT , this ) ) ; }
target:  Update the insets, which contain the caption if there is a caption.