Example usage for com.google.gwt.user.cellview.client ColumnSortEvent getType

List of usage examples for com.google.gwt.user.cellview.client ColumnSortEvent getType

Introduction

In this page you can find the example usage for com.google.gwt.user.cellview.client ColumnSortEvent getType.

Prototype

public static Type<Handler> getType() 

Source Link

Document

Gets the type associated with this event.

Usage

From source file:com.bearsoft.gwt.ui.widgets.grid.Grid.java

/**
 * Add a handler to handle {@link ColumnSortEvent}s.
 * //from  w  w w  .  ja  va2  s .com
 * @param handler
 *            the {@link ColumnSortEvent.Handler} to add
 * @return a {@link HandlerRegistration} to remove the handler
 */
public HandlerRegistration addColumnSortHandler(ColumnSortEvent.Handler handler) {
    return addHandler(handler, ColumnSortEvent.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  . j  av  a  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... 
}