private void onMouseEnter(Event e) {
   Hyperlink link = (Hyperlink) e.widget;
   previousBackground = link.getBackground();
   previousForeground = link.getForeground();
   if (isActiveBackgroundSet) link.setBackground(getActiveBackground());
   if (isActiveForegroundSet) link.setForeground(getActiveForeground());
   if (getHyperlinkUnderlineMode() == UNDERLINE_HOVER) link.setUnderlined(true);
   link.setCursor(getHyperlinkCursor());
 }
 private void linkExited(Hyperlink link) {
   link.setCursor(null);
   if (lastEntered == link) lastEntered = null;
 }