本文整理了Java中org.eclipse.ui.forms.widgets.Hyperlink.setHref()
方法的一些代码示例,展示了Hyperlink.setHref()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.setHref()
方法的具体详情如下:
包路径:org.eclipse.ui.forms.widgets.Hyperlink
类名称:Hyperlink
方法名:setHref
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void staticStandbyStateChanged(boolean standby) {
AbstractIntroPage homePage = getModel().getHomePage();
AbstractIntroPage standbyPage = getModel().getStandbyPage();
if (standbyPage == null)
standbyPage = homePage;
if (standby) {
welcomeLink.setHref(standbyPage.getUrl());
welcomeLink.setToolTipText(standbyPage.getUrl());
} else {
welcomeLink.setHref(homePage.getUrl());
welcomeLink.setToolTipText(homePage.getUrl());
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
public void showMessage(String newMessage, int newType,
IMessage[] messages) {
Control oldControl = getMessageControl();
int oldType = messageType;
this.message = newMessage;
this.messageType = newType;
this.messages = messages;
if (newMessage == null) {
// clearing of the message
if (oldControl != null && oldControl.getVisible())
oldControl.setVisible(false);
if (oldType != newType)
updateForeground();
return;
}
ensureControlExists();
if (needHyperlink()) {
messageHyperlink.setText(newMessage);
messageHyperlink.setHref(messages);
} else {
messageLabel.setText(newMessage);
}
if (oldType != newType)
updateForeground();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
public void showMessage(String newMessage, int newType,
IMessage[] messages) {
Control oldControl = getMessageControl();
int oldType = messageType;
this.message = newMessage;
this.messageType = newType;
this.messages = messages;
if (newMessage == null) {
// clearing of the message
if (oldControl != null && oldControl.getVisible())
oldControl.setVisible(false);
if (oldType != newType)
updateForeground();
return;
}
ensureControlExists();
if (needHyperlink()) {
messageHyperlink.setText(newMessage);
messageHyperlink.setHref(messages);
} else {
messageLabel.setText(newMessage);
}
if (oldType != newType)
updateForeground();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
messageHyperlink.setBackground(getBackground());
messageHyperlink.setText(message);
messageHyperlink.setHref(messages);
for (IHyperlinkListener element : listeners)
messageHyperlink
} else if (!messageHyperlink.getVisible()) {
messageHyperlink.setText(message);
messageHyperlink.setHref(messages);
messageHyperlink.setVisible(true);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
messageHyperlink.setBackground(getBackground());
messageHyperlink.setText(message);
messageHyperlink.setHref(messages);
for (IHyperlinkListener element : listeners)
messageHyperlink
} else if (!messageHyperlink.getVisible()) {
messageHyperlink.setText(message);
messageHyperlink.setHref(messages);
messageHyperlink.setVisible(true);
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
linkControl.setFont(PageStyleManager.getBannerFont());
colorControl(linkControl, link);
linkControl.setHref(link.getUrl());
linkControl.addHyperlinkListener(hyperlinkAdapter);
内容来源于网络,如有侵权,请联系作者删除!