本文整理了Java中org.eclipse.ui.forms.widgets.Hyperlink.<init>()
方法的一些代码示例,展示了Hyperlink.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.<init>()
方法的具体详情如下:
包路径:org.eclipse.ui.forms.widgets.Hyperlink
类名称:Hyperlink
方法名:<init>
[英]Creates a new hyperlink control in the provided parent.
[中]在提供的父控件中创建新的超链接控件。
代码示例来源:origin: org.eclipse.egit/ui
private Hyperlink createHeadHyperLink(Composite composite,
String labelText) {
createLabel(composite, labelText);
Hyperlink hyperlink = new Hyperlink(composite, SWT.NONE);
hyperlink.setLayoutData(GridDataFactory.fillDefaults().create());
return hyperlink;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
/**
* 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;
}
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
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() {
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
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() {
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
/**
* 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;
}
代码示例来源:origin: org.eclipse.mylyn.commons/workbench
Hyperlink todayLink = new Hyperlink(this, SWT.NONE);
todayLink.setText(Messages.DatePickerPanel_Today);
todayLink.setUnderlined(true);
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
private void createHyperLink(Composite parent) {
Hyperlink link = new Hyperlink(parent,SWT.None);
GridData layout = new GridData(GridData.HORIZONTAL_ALIGN_END);
layout.horizontalSpan = 2;
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
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);
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
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);
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
messageLabel.setVisible(false);
if (messageHyperlink == null) {
messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL);
messageHyperlink.setUnderlined(true);
messageHyperlink.setBackground(getBackground());
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
messageLabel.setVisible(false);
if (messageHyperlink == null) {
messageHyperlink = new Hyperlink(FormHeading.this, SWT.NULL);
messageHyperlink.setUnderlined(true);
messageHyperlink.setBackground(getBackground());
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
Hyperlink link = new Hyperlink(this, SWT.WRAP);
link.addHyperlinkListener(new HyperlinkAdapter() {
@Override
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
Hyperlink link = new Hyperlink(this, SWT.WRAP);
link.addHyperlinkListener(new HyperlinkAdapter() {
@Override
内容来源于网络,如有侵权,请联系作者删除!