Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 private void linkExited(Hyperlink link) {
   link.setCursor(null);
   if (lastEntered == link) lastEntered = null;
 }