Example usage for com.google.gwt.event.logical.shared BeforeSelectionEvent getType

List of usage examples for com.google.gwt.event.logical.shared BeforeSelectionEvent getType

Introduction

In this page you can find the example usage for com.google.gwt.event.logical.shared BeforeSelectionEvent getType.

Prototype

public static Type<BeforeSelectionHandler<?>> getType() 

Source Link

Document

Gets the type associated with this event.

Usage

From source file:at.ac.fhcampuswien.atom.client.gui.frames.TabLayoutPanelCopy.java

License:Apache License

public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<Integer> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:bufferings.ktr.wjr.client.ui.widget.WjrTabPanel.java

License:Apache License

/**
 * {@inheritDoc}/*from   ww w. ja v a 2s .c o m*/
 */
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<Integer> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:com.edgenius.wiki.gwt.client.widgets.URLTabBar.java

License:Open Source License

public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<Integer> handler) {
    return this.addHandler(handler, BeforeSelectionEvent.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./*ww  w .ja  v  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... 
}

From source file:com.sencha.gxt.cell.core.client.form.ComboBoxCell.java

License:sencha.com license

/**
 * Adds a {@link BeforeSelectionEvent} handler. The handler will be passed an instance of
 * {@link CellBeforeSelectionEvent} which can be cast to.
 *
 * @param handler the handler/*from  ww  w  .  ja  v a 2s  .  co m*/
 * @return the registration for the event
 */
@Override
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<T> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:com.sencha.gxt.cell.core.client.form.SpinnerFieldCell.java

License:sencha.com license

/**
 * Adds a {@link BeforeSelectionEvent} handler. The handler will be passed an instance of
 * {@link BeforeSelectionEvent} which can in this case be cast to {@link CellBeforeSelectionEvent}.
 *
 * @param handler the handler//from   www . j a v  a 2 s . c o m
 * @return the registration for the event
 */
@Override
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<N> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:com.sencha.gxt.widget.core.client.event.CellBeforeSelectionEvent.java

License:sencha.com license

public static <T> CellBeforeSelectionEvent<T> fire(HandlerManager manager, Context context, T item) {
    if (manager.isEventHandled(BeforeSelectionEvent.getType())) {
        CellBeforeSelectionEvent<T> event = new CellBeforeSelectionEvent<T>(context, item);
        event.setItem(item);/*from w ww.j a  va 2 s  . c o  m*/
        if (manager != null) {
            manager.fireEvent(event);
        }
        return event;
    }
    return null;
}

From source file:com.sencha.gxt.widget.core.client.form.ComboBox.java

License:sencha.com license

@Override
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<T> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:com.sencha.gxt.widget.core.client.form.SpinnerField.java

License:sencha.com license

@Override
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<N> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}

From source file:com.sencha.gxt.widget.core.client.menu.Item.java

License:sencha.com license

@Override
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<Item> handler) {
    return addHandler(handler, BeforeSelectionEvent.getType());
}