• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Event类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: shouldAddHandlers

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Test
public void shouldAddHandlers() throws Exception {
  presenter.addPart(partPresenter1);

  verify(eventBus, times(2))
      .addHandler((Event.Type<EditorPartStackPresenter>) anyObject(), eq(presenter));
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:EditorPartStackPresenterTest.java


示例17: shouldNotAddHandlersWhenHandlersAlreadyExist

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Test
public void shouldNotAddHandlersWhenHandlersAlreadyExist() throws Exception {
  presenter.addPart(partPresenter1);
  reset(eventBus);

  presenter.addPart(partPresenter2);

  verify(eventBus, never())
      .addHandler((Event.Type<EditorPartStackPresenter>) anyObject(), eq(presenter));
}
 
开发者ID:eclipse,项目名称:che,代码行数:11,代码来源:EditorPartStackPresenterTest.java


示例18: actionShouldBePerformed

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Test
public void actionShouldBePerformed() throws Exception {
  when(preferencesManager.getValue(eq(LINK_WITH_EDITOR))).thenReturn(null);

  action.actionPerformed(new ActionEvent(new Presentation(), null, null));

  verify(preferencesManager).setValue("linkWithEditor", Boolean.toString(true));
  verify(eventBus).fireEvent((Event<?>) anyObject());
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:LinkWithEditorActionTest.java


示例19: actionShouldNotBePerformedIfActiveEditorIsNull

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Test
public void actionShouldNotBePerformedIfActiveEditorIsNull() throws Exception {
  when(preferencesManager.getValue(eq(LINK_WITH_EDITOR))).thenReturn(null);
  when(editorAgent.getActiveEditor()).thenReturn(null);

  action.actionPerformed(new ActionEvent(new Presentation(), null, null));

  verify(eventBus, never()).fireEvent((Event<?>) anyObject());
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:LinkWithEditorActionTest.java


示例20: actionShouldNotBePerformedIfEditorInputIsNull

import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Test
public void actionShouldNotBePerformedIfEditorInputIsNull() throws Exception {
  when(preferencesManager.getValue(eq(LINK_WITH_EDITOR))).thenReturn(null);
  when(editorPartPresenter.getEditorInput()).thenReturn(null);

  action.actionPerformed(new ActionEvent(new Presentation(), null, null));

  verify(eventBus, never()).fireEvent((Event<?>) anyObject());
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:LinkWithEditorActionTest.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GradientNormalization类代码示例发布时间:2022-05-21
下一篇:
Java ScatterChart类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap