当前位置: 首页>>代码示例>>Java>>正文


Java Event类代码示例

本文整理汇总了Java中com.google.web.bindery.event.shared.Event的典型用法代码示例。如果您正苦于以下问题:Java Event类的具体用法?Java Event怎么用?Java Event使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Event类属于com.google.web.bindery.event.shared包,在下文中一共展示了Event类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fire

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
public static void fire(Event<?> event) {
	get().fireEvent(event);
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:4,代码来源:MentorBus.java

示例2: updateEventCaches

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
/**
 * Update event caches to keep track of the latest event of each instance.
 * @param the event to cache
 */
private void updateEventCaches(Event<?> event){
	if(event == null){
		return;
	}
	if(event instanceof DoubleClickEvent){
		doubleClickEvent = new org.gz.gwt.mousemanager.client.event.DoubleClickEvent((DoubleClickEvent)event, target);
	}
	if(event instanceof ClickEvent){
		clickEvent = new org.gz.gwt.mousemanager.client.event.ClickEvent((ClickEvent)event, target);
	}		
	if(event instanceof MouseUpEvent){
		mouseUpEvent = new org.gz.gwt.mousemanager.client.event.MouseUpEvent((MouseUpEvent)event, target);
	}
	if(event instanceof MouseDownEvent){
		mouseDownEvent = new org.gz.gwt.mousemanager.client.event.MouseDownEvent((MouseDownEvent)event, target);
	} 
	if(event instanceof MouseMoveEvent){
		mouseMoveEvent = new org.gz.gwt.mousemanager.client.event.MouseMoveEvent((MouseMoveEvent)event, target);
	}
	if(event instanceof MouseOverEvent){
		mouseOverEvent = new org.gz.gwt.mousemanager.client.event.MouseOverEvent((MouseOverEvent)event, target);
	}
	if(event instanceof MouseOutEvent){
		mouseOutEvent = new org.gz.gwt.mousemanager.client.event.MouseOutEvent((MouseOutEvent)event, target);
	}
	if(event instanceof MouseWheelEvent){
		mouseWheelEvent = new org.gz.gwt.mousemanager.client.event.MouseWheelEvent((MouseWheelEvent)event, target);
	}
	if(event instanceof ContextMenuEvent){
		contextMenuEvent = new org.gz.gwt.mousemanager.client.event.ContextMenuEvent();
	}
}
 
开发者ID:gzussa,项目名称:gwt-mousemanager,代码行数:37,代码来源:MouseHandlerManager.java

示例3: publishEvent

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public void publishEvent(RequestEvent<Event<GwtEventProcessor>> event) {
    try {
        simpleGwtEventsBus.fireEvent(event.asEvent());
    } catch (Exception ex) {
        LOGGER.error("could not publish event", ex);
    }
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:9,代码来源:SimpleEventsBus.java

示例4: register

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
public static <H> HandlerRegistration register(Event.Type<H> type, H handler) {
	return get().addHandler(type, handler);
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:4,代码来源:MentorBus.java

示例5: getType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
public static Event.Type<PagingChangeHandler> getType() {
  if (TYPE == null) {
    TYPE = new Event.Type<PagingChangeHandler>();
  }
  return TYPE;
}
 
开发者ID:turnsk,项目名称:gwtmvp,代码行数:7,代码来源:PagingFilter.java

示例6: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<PagingChangeHandler> getAssociatedType() {
  return TYPE;
}
 
开发者ID:turnsk,项目名称:gwtmvp,代码行数:5,代码来源:PagingFilter.java

示例7: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Term>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:TermDeletedEvent.java

示例8: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Relationship>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:RelationshipDeletedEvent.java

示例9: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Synonym>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:SynonymUpdatedEvent.java

示例10: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Relationship>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:RelationshipUpdatedEvent.java

示例11: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Synonym>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:SynonymDeletedEvent.java

示例12: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<SearchHandler> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:SearchEvent.java

示例13: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<ViewTermHandler> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:ViewTermEvent.java

示例14: getAssociatedType

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Term>> getAssociatedType() {
	return TYPE;
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:5,代码来源:TermUpdatedEvent.java

示例15: setUp

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Before
public void setUp() {
  when(editorPartStackProvider.get()).thenReturn(editorPartStack);
  when(editorPartStack.containsPart(partPresenter1)).thenReturn(true);
  when(eventBus.addHandler((Event.Type<Object>) anyObject(), anyObject()))
      .thenReturn(handlerRegistration);
  when(appContext.getWorkspace()).thenReturn(workspace);
  when(appContext.getWorkspace().getStatus()).thenReturn(WorkspaceStatus.RUNNING);

  presenter =
      new EditorMultiPartStackPresenter(eventBus, view, editorPartStackProvider, appContext);
}
 
开发者ID:eclipse,项目名称:che,代码行数:13,代码来源:EditorMultiPartStackPresenterTest.java


注:本文中的com.google.web.bindery.event.shared.Event类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。