本文整理了Java中org.eclipse.swt.widgets.Button.notifyListeners()
方法的一些代码示例,展示了Button.notifyListeners()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.notifyListeners()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:notifyListeners
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void keyPressed( KeyEvent e ) {
if ( e.character == SWT.CR ) {
wLaunch.notifyListeners( SWT.Selection, new Event() );
}
}
} );
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
public void handleNotifyDefaultSelection( Button button, JsonObject properties ) {
Event event = createSelectionEvent( SWT.DefaultSelection, properties );
button.notifyListeners( SWT.DefaultSelection, event );
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void performAction() {
if(buttons == null)
return;
if(!selected)
return;
for(int i = 0 ; i < buttons.length ; i++) {
buttons[i].setSelection(false);
buttons[i].notifyListeners(SWT.Selection,new Event());
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
public void handleNotifySelection( Button button, JsonObject properties ) {
Event event = createSelectionEvent( SWT.Selection, properties );
if( ( button.getStyle() & SWT.RADIO ) != 0 && !button.getSelection() ) {
event.time = -1;
}
button.notifyListeners( SWT.Selection, event );
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
/**
* For tests purpose only. Select/unselect auto-save checkbox button
* programmatically. A call of this method when the auto-save preference
* page is closed won't do anything.
*
* @param enable
* true to select auto-save, false to unselect
*/
protected void selectAutoSaveButton(boolean enable) {
if (autoSaveButton != null && !autoSaveButton.isDisposed()) {
autoSaveButton.setSelection(enable);
autoSaveButton.notifyListeners(SWT.Selection, new Event());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected void updateCheckBox(Button curr) {
super.updateCheckBox(curr);
Event event= new Event();
event.type= SWT.Selection;
event.display= curr.getDisplay();
event.widget= curr;
curr.notifyListeners(SWT.Selection, event);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
protected void updateCheckBox(Button curr) {
super.updateCheckBox(curr);
Event event= new Event();
event.type= SWT.Selection;
event.display= curr.getDisplay();
event.widget= curr;
curr.notifyListeners(SWT.Selection, event);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
protected void updateCheckBox(Button curr) {
super.updateCheckBox(curr);
Event event= new Event();
event.type= SWT.Selection;
event.display= curr.getDisplay();
event.widget= curr;
curr.notifyListeners(SWT.Selection, event);
}
代码示例来源:origin: org.eclipse.equinox.p2/ui
public void update(RemediationOperation operation) {
this.remediationOperation = operation;
currentRemedy = searchBestDefaultRemedy();
bestBeingInstalledRelaxedButton.setData(remediationOperation.bestSolutionChangingTheRequest());
bestInstalledRelaxedButton.setData(remediationOperation.bestSolutionChangingWhatIsInstalled());
bestBeingInstalledRelaxedButton.setEnabled(remediationOperation.bestSolutionChangingTheRequest() != null);
bestInstalledRelaxedButton.setEnabled(remediationOperation.bestSolutionChangingWhatIsInstalled() != null);
bestBeingInstalledRelaxedButton.setSelection(false);
bestInstalledRelaxedButton.setSelection(false);
buildMyOwnSolution.setSelection(false);
if (currentRemedy == remediationOperation.bestSolutionChangingTheRequest()) {
bestBeingInstalledRelaxedButton.setSelection(true);
bestBeingInstalledRelaxedButton.notifyListeners(SWT.Selection, new Event());
} else if (currentRemedy == remediationOperation.bestSolutionChangingWhatIsInstalled()) {
bestInstalledRelaxedButton.setSelection(true);
bestInstalledRelaxedButton.notifyListeners(SWT.Selection, new Event());
} else {
buildMyOwnSolution.setData(currentRemedy);
buildMyOwnSolution.setSelection(true);
buildMyOwnSolution.notifyListeners(SWT.Selection, new Event());
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
@Override
public void performDefaults() {
boolean autoSave = getPreferenceStore().getDefaultBoolean(IPreferenceConstants.SAVE_AUTOMATICALLY);
autoSaveButton.setSelection(autoSave);
autoSaveButton.notifyListeners(SWT.Selection, new Event());
int interval = getPreferenceStore().getDefaultInt(IPreferenceConstants.SAVE_AUTOMATICALLY_INTERVAL);
intervalField.setStringValue(String.valueOf(interval));
intervalField.setEnabled(autoSave, intervalComposite);
super.performDefaults();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor
event.type= SWT.Selection;
event.stateMask= e.stateMask;
fFindNextButton.notifyListeners(SWT.Selection, event);
e.doit= false;
button.setSelection(!button.getSelection());
button.notifyListeners(SWT.Selection, event);
e.detail= SWT.TRAVERSE_NONE;
e.doit= true;
代码示例来源:origin: org.eclipse/org.eclipse.datatools.sqltools.routineeditor
_useDefault.notifyListeners(SWT.Selection, new Event());
_useDefault.setSelection(false);
_userDefined.setSelection(true);
_userDefined.notifyListeners(SWT.Selection, new Event());
_userDefined.notifyListeners(SWT.Selection, new Event());
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor
event.type= SWT.Selection;
event.stateMask= e.stateMask;
fFindNextButton.notifyListeners(SWT.Selection, event);
e.doit= false;
button.setSelection(!button.getSelection());
button.notifyListeners(SWT.Selection, event);
e.detail= SWT.TRAVERSE_NONE;
e.doit= true;
内容来源于网络,如有侵权,请联系作者删除!