code: public void highlightTemporarily(int duration, final Background background) {
  
          int blinkInterval = 300;
          final int blinkCount = duration / blinkInterval;
  
          Scheduler.get().scheduleFixedPeriod(new RepeatingCommand() {
  
              private int m_counter;
  
              /**
               * @see com.google.gwt.core.client.Scheduler.RepeatingCommand#execute()
               */
              public boolean execute() {
  
                  boolean finish = m_counter > blinkCount;
                  highlight(((m_counter % 2) == 0) && !finish);
                  m_counter += 1;
                  if (finish) {
                      setBackgroundColor(background);
                  }
                  return !finish;
              }
          }, blinkInterval);
      }
docs: Temporarily highlights an item.<p>
  
  @param duration the duration for which
  @param background the background to color to set when finished