本文整理了Java中org.eclipse.swt.widgets.Label.getToolTipText()
方法的一些代码示例,展示了Label.getToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getToolTipText()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:getToolTipText
暂无
代码示例来源:origin: pentaho/pentaho-kettle
wOuter = new Button( shell, SWT.CHECK );
props.setLook( wOuter );
wOuter.setToolTipText( wlOuter.getToolTipText() );
fdOuter = new FormData();
fdOuter.left = new FormAttachment( middle, 0 );
wuseVars = new Button( shell, SWT.CHECK );
props.setLook( wuseVars );
wuseVars.setToolTipText( wluseVars.getToolTipText() );
fduseVars = new FormData();
fduseVars.left = new FormAttachment( middle, 0 );
wqueryOnlyOnChange = new Button( shell, SWT.CHECK );
props.setLook( wqueryOnlyOnChange );
wqueryOnlyOnChange.setToolTipText( wlqueryOnlyOnChange.getToolTipText() );
fdqueryOnlyOnChange = new FormData();
fdqueryOnlyOnChange.left = new FormAttachment( middle, 0 );
代码示例来源:origin: pentaho/pentaho-kettle
wOuter = new Button( shell, SWT.CHECK );
props.setLook( wOuter );
wOuter.setToolTipText( wlOuter.getToolTipText() );
fdOuter = new FormData();
fdOuter.left = new FormAttachment( middle, 0 );
wuseVars = new Button( shell, SWT.CHECK );
props.setLook( wuseVars );
wuseVars.setToolTipText( wluseVars.getToolTipText() );
fduseVars = new FormData();
fduseVars.left = new FormAttachment( middle, 0 );
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
public void getHelp(AccessibleEvent e) {
e.result = label.getToolTipText();
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
/**
* Alters a given label to make it appear like a launchable
* link. This should preferably be done after all other changes
* have been performed on the label - especially the setting of
* the label's text.
*/
public static void makeLinkedLabel(Label label, String hyperlink) {
label.setData(hyperlink);
String tooltip = label.getToolTipText();
// We only set a tooltip if one isn't set already and it isn't
// identical to the label text.
if (tooltip == null && !hyperlink.equals(label.getText())) {
Utils.setTT(label,hyperlink.replaceAll("&", "&&"));
}
label.setCursor(label.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
label.setForeground(Colors.blue);
label.addMouseListener(new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent arg0) {
Utils.launch((String) ((Label) arg0.widget).getData());
}
@Override
public void mouseUp(MouseEvent arg0) {
Utils.launch((String) ((Label) arg0.widget).getData());
}
});
ClipboardCopy.addCopyToClipMenu( label );
}
内容来源于网络,如有侵权,请联系作者删除!