List of usage examples for com.google.gwt.event.logical.shared ShowRangeEvent getType
public static Type<ShowRangeHandler<?>> 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./*w w w . ja va 2 s .c om*/ */ 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:net.cbtltd.client.field.datepicker.DatePicker.java
License:Apache License
public HandlerRegistration addShowRangeHandler(ShowRangeHandler<Date> handler) { return addHandler(handler, ShowRangeEvent.getType()); }