synchronized void addBgImage(Component imgComp,String imageUrl,int styles){
  if (HTMLComponent.SUPPORT_CSS) {
    add(imgComp,imageUrl);
    if ((styles & CSSEngine.STYLE_SELECTED) != 0) {
      bgImageCompsSelected.addElement(imgComp);
    }
    if ((styles & CSSEngine.STYLE_UNSELECTED) != 0) {
      bgImageCompsUnselected.addElement(imgComp);
    }
    if ((styles & CSSEngine.STYLE_PRESSED) != 0) {
      bgImageCompsPressed.addElement(imgComp);
    }
  }
}

synchronized void addBgImage ( Component imgComp , String imageUrl , int styles ) { if ( HTMLComponent . SUPPORT_CSS ) { add ( imgComp , imageUrl ) ; if ( ( styles & CSSEngine . STYLE_SELECTED ) != 0 ) { bgImageCompsSelected . addElement ( imgComp ) ; } if ( ( styles & CSSEngine . STYLE_UNSELECTED ) != 0 ) { bgImageCompsUnselected . addElement ( imgComp ) ; } if ( ( styles & CSSEngine . STYLE_PRESSED ) != 0 ) { bgImageCompsPressed . addElement ( imgComp ) ; } } }
adds the image to the queue , to be used as a background image for a component
