public void setBackground(Color bg) { if (messageHyperlink != null) messageHyperlink.setBackground(bg); if (messageLabel != null) messageLabel.setBackground(bg); }
public void setBackground(Color bg) { if (messageHyperlink != null) messageHyperlink.setBackground(bg); if (messageLabel != null) messageLabel.setBackground(bg); }
/** * Sets the group background and also sets the background of all the * currently managed links. * * @param bg * the new background */ @Override public void setBackground(Color bg) { super.setBackground(bg); isBackgroundSet = true; if (links != null) { for (int i = 0; i < links.size(); i++) { Hyperlink label = links.get(i); label.setBackground(bg); } } } /**
/** * Sets the group background and also sets the background of all the * currently managed links. * * @param bg * the new background */ @Override public void setBackground(Color bg) { super.setBackground(bg); isBackgroundSet = true; if (links != null) { for (int i = 0; i < links.size(); i++) { Hyperlink label = links.get(i); label.setBackground(bg); } } } /**
private void onMouseExit(Event e) { Hyperlink link = (Hyperlink) e.widget; if (isActiveBackgroundSet) link.setBackground(previousBackground); if (isActiveForegroundSet) link.setForeground(previousForeground); if (getHyperlinkUnderlineMode() == UNDERLINE_HOVER) link.setUnderlined(false); } @Override
private void onMouseExit(Event e) { Hyperlink link = (Hyperlink) e.widget; if (isActiveBackgroundSet) link.setBackground(previousBackground); if (isActiveForegroundSet) link.setForeground(previousForeground); if (getHyperlinkUnderlineMode() == UNDERLINE_HOVER) link.setUnderlined(false); } @Override
link.setBackground(getListBackgroundColor()); link.setUnderlined(true); link.setBackground(getListBackgroundColor()); link.setUnderlined(true);
link.setBackground(getBackgroundColor()); link.setUnderlined(true); link.setBackground(getBackgroundColor()); link.setUnderlined(true);
/** * Adds a hyperlink to the group to be jointly managed. Hyperlink will be * managed until it is disposed. Settings like colors, cursors and modes * will affect all managed hyperlinks. * * @param link */ public void add(Hyperlink link) { if (isBackgroundSet) link.setBackground(getBackground()); if (isForegroundSet) link.setForeground(getForeground()); if (getHyperlinkUnderlineMode() == UNDERLINE_ALWAYS) link.setUnderlined(true); hook(link); }
/** * Adds a hyperlink to the group to be jointly managed. Hyperlink will be * managed until it is disposed. Settings like colors, cursors and modes * will affect all managed hyperlinks. * * @param link */ public void add(Hyperlink link) { if (isBackgroundSet) link.setBackground(getBackground()); if (isForegroundSet) link.setForeground(getForeground()); if (getHyperlinkUnderlineMode() == UNDERLINE_ALWAYS) link.setUnderlined(true); hook(link); }
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 onMouseExit(Event e) {
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 onMouseExit(Event e) {
prev.setBackground(getBackground()); if (page == 0) prev.setEnabled(false); Hyperlink pageLink = new Hyperlink(this, SWT.NONE); pageLink.setText(String.valueOf(i)); pageLink.setBackground(pageLink.getParent().getBackground()); if (i != curPage) { final int selectedPage = i; next.setBackground(getBackground()); if (lastPage) next.setEnabled(false);
messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); messageHyperlink.setUnderlined(true); messageHyperlink.setBackground(getBackground()); messageHyperlink.setText(message); messageHyperlink.setHref(messages);
messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); messageHyperlink.setUnderlined(true); messageHyperlink.setBackground(getBackground()); messageHyperlink.setText(message); messageHyperlink.setHref(messages);