本文整理了Java中org.eclipse.swt.widgets.Label.setCursor()
方法的一些代码示例,展示了Label.setCursor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setCursor()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:setCursor
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void handleEvent( Event event ) {
cancelButton.setImage(
new Image( display, GoogleAuthorizationDialog.class.getResourceAsStream( "/images/close-button-hover.png" ) ) );
cancelButton.setCursor( new Cursor( display, SWT.CURSOR_HAND ) );
}
} );
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
public void setCursor(Cursor c) {
super.setCursor(c);
label.setCursor(c);
}
代码示例来源:origin: BiglySoftware/BiglyBT
public void setCursor(Cursor cursor) {
if (isDisposed() || cursor == null || cursor.isDisposed()) {
return;
}
label.setCursor(cursor);
}
代码示例来源:origin: BiglySoftware/BiglyBT
public static void makeLinkedLabel(Label label, Runnable runnable) {
label.setCursor(label.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
label.setForeground(Colors.blue);
label.addMouseListener(new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent arg0) {
runnable.run();
}
@Override
public void mouseUp(MouseEvent arg0) {
runnable.run();
}
});
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
public
LinkParameter(
Composite composite,
final String name_resource)
{
super(name_resource);
link_label = new Label(composite, SWT.NULL);
Messages.setLanguageText(link_label, name_resource);
link_label.setCursor(link_label.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
link_label.setForeground(Colors.blue);
link_label.addMouseListener(new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent arg0) {
fire();
}
@Override
public void mouseUp(MouseEvent arg0) {
fire();
}
});
}
代码示例来源:origin: BiglySoftware/BiglyBT
link_label.setText( MessageText.getString( "ConfigView.label.please.visit.here" ));
link_label.setCursor(link_label.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
link_label.setForeground(Colors.blue);
link_label.setBackground( Colors.white );
代码示例来源:origin: BiglySoftware/BiglyBT
serviceUrl.setLayoutData(gridData);
serviceUrl.setForeground(Colors.blue);
serviceUrl.setCursor(handCursor);
serviceUrl.addMouseListener(new MouseAdapter() {
@Override
代码示例来源:origin: BiglySoftware/BiglyBT
pop_out.setLayoutData(grid_data);
pop_out.setCursor(pop_out.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
代码示例来源:origin: BiglySoftware/BiglyBT
linkLabel.setText( MessageText.getString( "ConfigView.label.please.visit.here" ));
linkLabel.setData( links[userMode] );
linkLabel.setCursor(linkLabel.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
linkLabel.setForeground(Colors.blue);
gridData = new GridData(GridData.FILL_HORIZONTAL);
代码示例来源:origin: BiglySoftware/BiglyBT
linkLabel.setText( Constants.APP_NAME + " Wiki Speed Test" );
linkLabel.setData( Constants.URL_WIKI + "w/Speed_Test_FAQ");
linkLabel.setCursor(display.getSystemCursor(SWT.CURSOR_HAND));
linkLabel.setForeground(Colors.blue);
azwGridData = new GridData();
代码示例来源:origin: BiglySoftware/BiglyBT
linkLabel.setText(MessageText.getString("ConfigView.label.please.visit.here"));
linkLabel.setData( Constants.URL_WIKI+ "w/Public_Private_Keys");
linkLabel.setCursor(display.getSystemCursor(SWT.CURSOR_HAND));
linkLabel.setForeground(Colors.blue);
gridData = new GridData();
代码示例来源:origin: BiglySoftware/BiglyBT
socksMore.setText( MessageText.getString( "label.more") + "..." );
socksMore.setLayoutData(gridData);
socksMore.setCursor(socksMore.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
socksMore.setForeground(Colors.blue);
socksMore.addMouseListener(new MouseAdapter() {
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
fMessageText.setCursor(fProposalShell.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
fMessageText.addMouseListener(new MouseAdapter() {
@Override
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
fMessageText.setCursor(fProposalShell.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
fMessageText.addMouseListener(new MouseAdapter() {
@Override
代码示例来源: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 );
}
代码示例来源:origin: BiglySoftware/BiglyBT
linkLabel.setText( MessageText.getString( messTexts[userMode] ) );
linkLabel.setData( links[userMode] );
linkLabel.setCursor(display.getSystemCursor(SWT.CURSOR_HAND));
linkLabel.setForeground(Colors.blue);
gridData = new GridData(GridData.FILL_HORIZONTAL);
linkLabel1.setText( (userMode == 1)?MessageText.getString(messTexts[3]):"");
linkLabel1.setData( links[3] );
linkLabel1.setCursor(display.getSystemCursor(SWT.CURSOR_HAND));
linkLabel1.setForeground(Colors.blue);
gridData = new GridData(GridData.FILL_HORIZONTAL);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
break;
case SWT.MouseUp:
label.setCursor(FormsResources.getBusyCursor());
programmaticToggleState();
label.setCursor(FormsResources.getHandCursor());
break;
case SWT.MouseEnter:
代码示例来源:origin: BiglySoftware/BiglyBT
linkLabel.setText(MessageText.getString("ConfigView.label.please.visit.here"));
linkLabel.setData( Constants.URL_WIKI + "w/Downloading_Rules");
linkLabel.setCursor(linkLabel.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
linkLabel.setForeground(Colors.blue);
gridData = new GridData();
代码示例来源:origin: BiglySoftware/BiglyBT
final Image rss_image_gray = ImageLoader.getInstance().getImage("image.sidebar.subscriptions-gray");
rss_button.setImage(rss_image_gray);
rss_button.setCursor(parent.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
GridData grid_data = new GridData(GridData.FILL_HORIZONTAL );
grid_data.widthHint = rss_image_gray.getBounds().width;
代码示例来源:origin: BiglySoftware/BiglyBT
label.setCursor(c.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
内容来源于网络,如有侵权,请联系作者删除!