private Hyperlink createHeadHyperLink(Composite composite, String labelText) { createLabel(composite, labelText); Hyperlink hyperlink = new Hyperlink(composite, SWT.NONE); hyperlink.setLayoutData(GridDataFactory.fillDefaults().create()); return hyperlink; }
protected Control createInfoTextArea(Composite parent) { Composite infoComposite = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(2, false); gridLayout.marginHeight = 0; gridLayout.marginWidth = 0; infoComposite.setLayout(gridLayout); GridData gd = new GridData(GridData.FILL_BOTH); infoComposite.setLayoutData(gd); nsInfoLabel = new Label(infoComposite, SWT.LEFT); nsInfoLabel.setText(infoText); Font font = nsInfoLabel.getFont(); FontData[] fontDatas = font.getFontData(); for (int i = 0; i < fontDatas.length; i++) { fontDatas[i].setHeight(fontDatas[i].getHeight() * 9 / 10); } infoFont = new Font(nsInfoLabel.getDisplay(), fontDatas); nsInfoLabel.setFont(infoFont); gd = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING); nsInfoLabel.setLayoutData(gd); nsInfoLabel.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW)); link = new Hyperlink(infoComposite, SWT.RIGHT); link.setText(Messages._UI_ACTION_OPEN_IN_NEW_EDITOR); link.setFont(infoFont); link.addHyperlinkListener(linkListener); return infoComposite; }
/** * Creates a hyperlink as a part of the form. The hyperlink will be added to * the hyperlink group that belongs to this toolkit. * * @param parent * the hyperlink parent * @param text * the text of the hyperlink * @param style * the hyperlink style * @return the hyperlink widget */ public Hyperlink createHyperlink(Composite parent, String text, int style) { Hyperlink hyperlink = new Hyperlink(parent, style | orientation); if (text != null) hyperlink.setText(text); hyperlink.addFocusListener(visibilityHandler); hyperlink.addKeyListener(keyboardHandler); hyperlinkGroup.add(hyperlink); return hyperlink; }
composite.setLayoutData(data); Hyperlink link = new Hyperlink(composite, SWT.WRAP); link.setText(TeamUIMessages.ChangesSection_8); link.addHyperlinkListener(new HyperlinkAdapter() { link.setUnderlined(true); link = new Hyperlink(composite, SWT.WRAP); link.setText(TeamUIMessages.ChangesSection_9); link.addHyperlinkListener(new HyperlinkAdapter() {
composite.setLayoutData(data); Hyperlink link = new Hyperlink(composite, SWT.WRAP); link.setText(TeamUIMessages.ChangesSection_8); link.addHyperlinkListener(new HyperlinkAdapter() { link.setUnderlined(true); link = new Hyperlink(composite, SWT.WRAP); link.setText(TeamUIMessages.ChangesSection_9); link.addHyperlinkListener(new HyperlinkAdapter() {
/** * Creates a hyperlink as a part of the form. The hyperlink will be added to * the hyperlink group that belongs to this toolkit. * * @param parent * the hyperlink parent * @param text * the text of the hyperlink * @param style * the hyperlink style * @return the hyperlink widget */ public Hyperlink createHyperlink(Composite parent, String text, int style) { checkDisposed(); Hyperlink hyperlink = new Hyperlink(parent, style | orientation); if (text != null) hyperlink.setText(text); hyperlink.addFocusListener(visibilityHandler); hyperlink.addKeyListener(keyboardHandler); hyperlinkGroup.add(hyperlink); return hyperlink; }
Hyperlink todayLink = new Hyperlink(this, SWT.NONE); todayLink.setText(Messages.DatePickerPanel_Today); todayLink.setUnderlined(true);
private void createHyperLink(Composite parent) { Hyperlink link = new Hyperlink(parent,SWT.None); GridData layout = new GridData(GridData.HORIZONTAL_ALIGN_END); layout.horizontalSpan = 2;
Color hyperlinkColor = getDisplay().getSystemColor(SWT.COLOR_LINK_FOREGROUND); Hyperlink prev = new Hyperlink(this, SWT.NONE); prev.setText(PDEUIMessages.ImageBrowserView_PrevPage); prev.setForeground(hyperlinkColor); Hyperlink pageLink = new Hyperlink(this, SWT.NONE); pageLink.setText(String.valueOf(i)); pageLink.setBackground(pageLink.getParent().getBackground()); Hyperlink next = new Hyperlink(this, SWT.NONE); next.setText(PDEUIMessages.ImageBrowserView_NextPage); next.setForeground(hyperlinkColor);
clientDetailsLabel_.setText(ConsumptionUIMessages.LABEL_SUMMARY); hLinkClientServer_= new Hyperlink(hCompClient_, SWT.NULL); utils_.createInfoPop(hLinkClientServer_, INFOPOP_WSWSCEN_HYPERLINK_SERVER); hLinkClientServer_.setToolTipText(ConsumptionUIMessages.TOOLTIP_PWRS_TEXT_SERVER); }); hLinkClientRuntime_ = new Hyperlink(hCompClient_, SWT.NULL); utils_.createInfoPop(hLinkClientRuntime_, INFOPOP_WSWSCEN_HYPERLINK_RUNTIME); hLinkClientRuntime_.setToolTipText(ConsumptionUIMessages.TOOLTIP_PWRS_TEXT_RUNTIME); hLinkClientProject_ = new Hyperlink(hCompClient_, SWT.NULL); utils_.createInfoPop(hLinkClientRuntime_, INFOPOP_WSWSCEN_HYPERLINK_PROJECTS); hLinkClientProject_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_CLIENTPROJECT_LINK); }); hLinkClientEAR_ = new Hyperlink(hCompClient_, SWT.NULL); utils_.createInfoPop(hLinkClientRuntime_, INFOPOP_WSWSCEN_HYPERLINK_PROJECTS); hLinkClientEAR_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_CLIENTPROJECT_LINK);
messageLabel.setVisible(false); if (messageHyperlink == null) { messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); messageHyperlink.setUnderlined(true); messageHyperlink.setBackground(getBackground());
messageLabel.setVisible(false); if (messageHyperlink == null) { messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL); messageHyperlink.setUnderlined(true); messageHyperlink.setBackground(getBackground());
Hyperlink link = new Hyperlink(this, SWT.WRAP); link.addHyperlinkListener(new HyperlinkAdapter() { @Override
Hyperlink link = new Hyperlink(this, SWT.WRAP); link.addHyperlinkListener(new HyperlinkAdapter() { @Override