return retries.getValue() < 40;
}
if (pdfLocation.isFromClick())
{
final DivElement div = win.getDocument().createDivElement();
div.getStyle().setPosition(Style.Position.ABSOLUTE);
div.getStyle().setTop(y, Unit.PX);
div.getStyle().setLeft(x, Unit.PX);
div.getStyle().setWidth(w, Unit.PX);
div.getStyle().setHeight(h, Unit.PX);
div.getStyle().setBackgroundColor("rgba(0, 126, 246, 0.1)");
div.getStyle().setProperty("transition", "opacity 4s");
// use DomUtils to set transition styles so gwt doesn't assert
// an invalid style name (no camelCase) in debug mode
DomUtils.setStyle(div, "-moz-transition", "opacity 4s");
DomUtils.setStyle(div, "-webkit-transition", "opacity 4s");
pageContainer.appendChild(div);
Scheduler.get().scheduleFixedDelay(new Scheduler.RepeatingCommand()
{
@Override
public boolean execute()
{
div.getStyle().setOpacity(0.0);
return false;
}
}, 2000);
}