本文整理了Java中org.eclipse.swt.widgets.Listener.handleEvent()
方法的一些代码示例,展示了Listener.handleEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Listener.handleEvent()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Listener
类名称:Listener
方法名:handleEvent
[英]Sent when an event that the receiver has registered for occurs.
[中]当接收器已注册的事件发生时发送。
代码示例来源:origin: pentaho/pentaho-kettle
@Override public void handleEvent( final Event event ) {
lsCancel.handleEvent( event );
shell.dispose();
}
};
代码示例来源:origin: stackoverflow.com
for (int i =0; i < listeners.size(); i++) {
Listener l = listeners.get(i);
if (l == null)
continue;
l.handleEvent();
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void modifyText(ModifyEvent evt)
{
statusListener_.handleEvent( null );
}
};
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
private void handleModifyBeanClassText()
{
statusListener.handleEvent(null);
serverProject_ = null;
serverComponentName_ = null;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void modifyText(ModifyEvent evt)
{
handleProjectTypeChanged();
statusListener_.handleEvent( null );
}
};
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void modifyText(ModifyEvent evt)
{
handleProjectChanged();
statusListener_.handleEvent( null );
}
};
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void widgetSelected(SelectionEvent evt)
{
Table table = (Table) (evt.widget);
selectedBeanIndex = new Integer(table.getSelectionIndex());
statusListener_.handleEvent(null);
}
});
代码示例来源:origin: com.eclipsesource.tabris/tabris
@Override
public void run() {
Event event = new Event();
event.display = display;
listener.handleEvent( event );
}
} );
代码示例来源:origin: BiglySoftware/BiglyBT
/**
* Notifies the WindowAddedListener handlers
* @param sender A SWT shell that "sends" the events
*/
protected final void notifyAddListeners(Shell sender)
{
Iterator iter = addHandlers.iterator();
for(int i = 0; i < addHandlers.size(); i++)
{
((Listener)iter.next()).handleEvent(getSWTEvent(sender));
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
/**
* Notifies the WindowRemovedListener handlers
* @param sender A SWT shell that "sends" the events
*/
protected final void notifyRemoveListeners(Shell sender)
{
Iterator iter = removeHandlers.iterator();
for(int i = 0; i < removeHandlers.size(); i++)
{
((Listener)iter.next()).handleEvent(getSWTEvent(sender));
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event event) {
listener.handleEvent(event);
shell.dispose();
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
private void handleSelectionEvent(Event event)
{
if (launchUDDICheckbox_ == event.widget)
publicUDDIRegCombo_.setEnabled(launchUDDICheckbox_.getSelection());
statusListener.handleEvent(event);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
private void handleTreeSelectionChangedEvent(SelectionChangedEvent event)
{
statusListener.handleEvent(new Event());
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
@Override
public void widgetSelected(SelectionEvent e) {
updateEnabledState();
if (selectionListener != null) {
selectionListener.handleEvent(new Event());
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void run()
{
handleWebServiceURI();
statusListener_.handleEvent(null);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
private void handleWebServiceURIModifyEvent()
{
if (webServiceURI.getText().indexOf(':') > 0) {
timer_ = Timer.newInstance(timer_, Display.getCurrent(), this);
timer_.startTimer();
}
else
handleWebServiceURI();
statusListener_.handleEvent(null);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
private void handleWSDLButton()
{
DialogResourceBrowser dialog = new DialogResourceBrowser( parent_.getShell(), null, wsFilter_);
dialog.open();
IResource res = dialog.getFirstSelection();
if( res != null )
{
wsdlURI_ = res.getFullPath().toString();
webServiceURI.setText( wsdlURI_ );
}
statusListener_.handleEvent(null);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
public void widgetSelected(SelectionEvent e) {
String oldTypeId = ids_.getTypeId();
int currentSelectionIdx = clientTypeCombo_.getSelectionIndex();
String currentTypeId = labelIds_.getIds_()[currentSelectionIdx];
if (!oldTypeId.equals(currentTypeId)) {
// handle changing client type
ids_.setTypeId(currentTypeId);
refreshServerRuntimeSelection();
}
validationState_ = ValidationUtils.VALIDATE_ALL;
statusListener_.handleEvent(null);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
/**
* Run this ClientWizardWidget, which validates the entry field values.
*/
public void run() {
validationState_ = ValidationUtils.VALIDATE_ALL;
statusListener_.handleEvent(null);
if (validObjectSelection_)
callObjectTransformation(project_,
wsdlValidatorWidget_.getComponentName(),
wsdlValidatorWidget_.getWsdlURI());
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event e) {
if (az_menuitem.getStyle() == MenuItem.STYLE_CHECK
|| az_menuitem.getStyle() == MenuItem.STYLE_RADIO) {
if (!menuItem.isDisposed()) {
az_menuitem.setData(Boolean.valueOf(menuItem.getSelection()));
}
}
main_listener.handleEvent(e);
}
});
内容来源于网络,如有侵权,请联系作者删除!