(String ad)
| 213 | /// |
| 214 | /// - `ad`: the ad to set |
| 215 | public void setAd(String ad) { |
| 216 | this.ad = ad; |
| 217 | HTMLComponent html = new HTMLComponent(new MyAsyncDocumentRequestHandlerImpl()); |
| 218 | html.setSupressExceptions(true); |
| 219 | html.setHTMLCallback(this); |
| 220 | html.setBodyText("<html><body><div align='center'>" + ad + "</div></body></html>"); |
| 221 | replace(getComponentAt(0), html, null); |
| 222 | revalidate(); |
| 223 | html.setPageUIID("Container"); |
| 224 | html.getStyle().setBgTransparency(0); |
| 225 | } |
| 226 | |
| 227 | /// The amount of time needed to update the ad |
| 228 | /// |
no test coverage detected