本文整理汇总了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);
}
示例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();
}
}
示例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);
}
}
示例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);
}
示例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;
}
示例6: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<PagingChangeHandler> getAssociatedType() {
return TYPE;
}
示例7: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Term>> getAssociatedType() {
return TYPE;
}
示例8: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Relationship>> getAssociatedType() {
return TYPE;
}
示例9: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Synonym>> getAssociatedType() {
return TYPE;
}
示例10: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Relationship>> getAssociatedType() {
return TYPE;
}
示例11: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityDeletedHandler<Synonym>> getAssociatedType() {
return TYPE;
}
示例12: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<SearchHandler> getAssociatedType() {
return TYPE;
}
示例13: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<ViewTermHandler> getAssociatedType() {
return TYPE;
}
示例14: getAssociatedType
import com.google.web.bindery.event.shared.Event; //导入依赖的package包/类
@Override
public Event.Type<EntityUpdatedHandler<Term>> getAssociatedType() {
return TYPE;
}
示例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);
}