List of usage examples for com.google.gwt.event.logical.shared InitializeEvent getType
public static Type<InitializeHandler> getType()
From source file:com.mind.gwt.jclient.context.EventRepository.java
License:Apache License
/** * A few {@link GwtEvent} subclasses coming along with GWT-SDK initialize their {@link GwtEvent.Type TYPE} fields * lazily and in non thread-safe way. This method forces initialization immediately. To avoid a race condition, * memory writes that are made by this method, have to become visible to all threads before the first instance of * {@link Context} is created.//from w w w . j a va 2s . c o m */ static void instantiateLazyEventTypes() { AttachEvent.getType(); BeforeSelectionEvent.getType(); CloseEvent.getType(); HighlightEvent.getType(); InitializeEvent.getType(); OpenEvent.getType(); ResizeEvent.getType(); SelectionEvent.getType(); ShowRangeEvent.getType(); ValueChangeEvent.getType(); NativePreviewEvent.getType(); ColumnSortEvent.getType(); // LoadingStateChangeEvent is thread-safe // PlaceChangeEvent is thread-safe // PlaceChangeRequestEvent is thread-safe // ClosingEvent is thread-safe // ScrollEvent is thread-safe // SubmitEvent isn't publicly available but thread-safe by accident // SubmitCompleteEvent isn't publicly available and isn't thread-safe... }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.body.WebResourceWidget.java
License:Open Source License
public HandlerRegistration addInitializeHandler(InitializeHandler handler) { return addHandler(handler, InitializeEvent.getType()); }
From source file:org.vectomatic.svg.edit.client.utils.ImageLoader.java
License:Open Source License
@Override public HandlerRegistration addInitializeHandler(InitializeHandler handler) { return SvgrealApp.getApp().getEventBus().addHandlerToSource(InitializeEvent.getType(), this, handler); }