@Override public void setBackground(Color backgroundColor) { super.setBackground(backgroundColor); dateText.setBackground(backgroundColor); if ((getStyle() & SWT.FLAT) != 0) { pickButton.setBackground(backgroundColor); clearControl.setBackground(backgroundColor); } else { pickButton.setBackground(null); clearControl.setBackground(null); } }
protected ImageHyperlink createButtonWithText(Composite parent, Image image, ViewItem item, Color color, String linkText) { ImageHyperlink button = page.getToolkit().createImageHyperlink(parent, SWT.NULL); button.setImage(image); button.setData(item); button.setBackground(color); button.setText(linkText); button.setToolTipText(linkText); return button; }
protected ImageHyperlink createButton(Composite parent, Image image, ViewItem item, Color color, String toolTipText) { ImageHyperlink button = new ImageHyperlink(parent, SWT.NULL); page.getToolkit().adapt(button, true, true); button.setImage(image); button.setData(item); button.setBackground(color); button.setToolTipText(toolTipText); // button.setFAccessibleDescription(bodyText.getText()); // button.setFAccessibleName(button.getToolTipText()); return button; }
clearControl.setBackground(clearControl.getDisplay().getSystemColor(SWT.COLOR_WHITE)); GridData clearButtonGridData = new GridData(); clearButtonGridData.horizontalIndent = 3;
private void addPageLink(Composite container, FormToolkit toolkit, String text, String id, String imgRef, IHyperlinkListener listener) { String cid = helpPart.getCurrentPageId(); if (cid!=null && cid.equals(id)) return; ImageHyperlink link = new ImageHyperlink(container, SWT.WRAP|toolkit.getOrientation()); toolkit.adapt(link, true, true); link.setImage(HelpUIResources.getImage(imgRef)); link.setText(text); link.setHref(id); link.setBackground(null); link.addHyperlinkListener(listener); hyperlinkGroup.add(link); RowData data = new RowData(); data.exclude = false; link.setLayoutData(data); }
hyperlink.setBackground(ColorConstants.white);