本文整理了Java中org.eclipse.swt.widgets.Label.addListener()
方法的一些代码示例,展示了Label.addListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.addListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:addListener
暂无
代码示例来源:origin: pentaho/pentaho-kettle
cancelButton.setLayoutData( cancelButtonFormData );
cancelButton.addListener( SWT.MouseUp, new Listener() {
public void handleEvent( Event event ) {
browser.dispose();
cancelButton.addListener( SWT.MouseEnter, new Listener() {
public void handleEvent( Event event ) {
cancelButton.setImage(
cancelButton.addListener( SWT.MouseExit, new Listener() {
public void handleEvent( Event event ) {
cancelButton.setImage(
代码示例来源:origin: BiglySoftware/BiglyBT
private HeaderInfo addHeader(String id, String title, AERunnable runnable) {
Composite composite = new Composite(topArea, SWT.NONE);
HeaderInfo headerInfo = new HeaderInfo(id, runnable, composite);
composite.setBackgroundMode(SWT.INHERIT_FORCE);
FillLayout fillLayout = new FillLayout();
fillLayout.marginWidth = 6;
fillLayout.marginHeight = 2;
composite.setLayout(fillLayout);
Display d = composite.getDisplay();
composite.setBackground(Colors.getSystemColor(d, SWT.COLOR_LIST_BACKGROUND));
composite.setForeground(Colors.getSystemColor(d, SWT.COLOR_LIST_FOREGROUND));
Label control = new Label(composite, SWT.NONE);
Messages.setLanguageText(control, title);
control.setData("ID", headerInfo);
control.addListener(SWT.MouseEnter, headerListener);
control.addListener(SWT.Touch, headerListener);
control.addListener(SWT.MouseExit, headerListener);
control.addListener(SWT.Paint, headerListener);
listHeaders.add(headerInfo);
return headerInfo;
}
代码示例来源:origin: org.codehaus.openxma/xmartclient
public DayControl(Composite parent) {
super(parent, SWT.NO_FOCUS);
{
final GridLayout gridLayout = new GridLayout();
gridLayout.marginWidth = 1;
gridLayout.marginHeight = 1;
setLayout(gridLayout);
}
filler = new Composite(this, SWT.NO_FOCUS);
filler.setLayoutData(new GridData(GridData.FILL_BOTH));
{
final GridLayout gridLayout = new GridLayout();
gridLayout.marginWidth = 2;
gridLayout.marginHeight = 0;
filler.setLayout(gridLayout);
}
filler.addListener(SWT.MouseDown, this);
filler.addListener(SWT.MouseUp, this);
filler.addListener(SWT.MouseDoubleClick, this);
label = new DayLabel(filler, SWT.RIGHT | SWT.NO_FOCUS);
label.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_CENTER));
label.addListener(SWT.MouseDown, this);
label.addListener(SWT.MouseUp, this);
label.addListener(SWT.MouseDoubleClick, this);
setBorderColor(parent.getBackground());
setBackground(parent.getBackground());
setFont(parent.getFont());
}
代码示例来源:origin: BiglySoftware/BiglyBT
info.addListener(SWT.MouseDown, radioListener);
代码示例来源:origin: BiglySoftware/BiglyBT
text[0] = MessageText.getString("ConfigView.section.mode." + initsMode);
labl.setText(text[0]);
labl.addListener (SWT.Selection, new Listener () {
@Override
public void handleEvent(Event event) {
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
for (int i=0; i<arrowEvents.length; i++) arrow.addListener (arrowEvents [i], listener);
代码示例来源:origin: openaudible/openaudible
label.setData("_TABLEITEM", item);
label.setText("tooltip " + item.getText());
label.addListener(SWT.MouseExit, labelListener);
label.addListener(SWT.MouseDown, labelListener);
Point size = tip.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Rectangle rect = item.getBounds(0);
代码示例来源:origin: BiglySoftware/BiglyBT
label.addListener(SWT.MouseEnter, listenerMouseInout);
label.addListener(SWT.MouseUp, clickListener);
label.addListener(SWT.MouseDown, clickListener);
gridData = new GridData(GridData.FILL_HORIZONTAL);
label.setLayoutData(gridData);
代码示例来源:origin: BiglySoftware/BiglyBT
label.addListener(SWT.MouseExit, tt_label_listener);
label.addListener(SWT.MouseDown, tt_label_listener);
Point size = tip.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Rectangle rect = item.getBounds(item_index);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
label.addListener(SWT.MouseDown, listener);
label.addListener(SWT.MouseUp, listener);
label.addListener(SWT.MouseEnter, listener);
label.addListener(SWT.MouseExit, listener);
label.addListener(SWT.Paint, listener);
代码示例来源:origin: BiglySoftware/BiglyBT
Label lblClose = new Label(folder, SWT.WRAP);
lblClose.setText("x");
lblClose.addListener(SWT.MouseUp, new Listener() {
@Override
public void handleEvent(Event event) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
label.addListener(SWT.MouseDown, listener);
label.addListener(SWT.MouseUp, listener);
label.addListener(SWT.MouseEnter, listener);
label.addListener(SWT.MouseExit, listener);
label.addListener(SWT.Paint, listener);
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
"The XML descriptor for the Custom Flow Controller");
flowControllerGUI.addListener(SWT.MouseDown, this);
flowControllerGUI.addListener(SWT.MouseHover, this);
代码示例来源:origin: BiglySoftware/BiglyBT
ImageLoader.getInstance().setLabelImage(close, "image.dismissX");
close.setCursor(composite.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
close.addListener(SWT.MouseUp, new Listener() {
@Override
public void handleEvent(Event arg0) {
内容来源于网络,如有侵权,请联系作者删除!