Search in sources :

Example 16 with UiHandler

use of com.google.gwt.uibinder.client.UiHandler in project GwtMobile by dennisjzh.

the class CheckBoxPage method onGroup1SelectionChanged.

@UiHandler("group1")
void onGroup1SelectionChanged(SelectionChangedEvent e) {
    CheckBox radio = (CheckBox) group1.getWidget(e.getSelection());
    Utils.Console("group1 " + e.getSelection() + " " + radio.getText());
}
Also used : CheckBox(com.gwtmobile.ui.client.widgets.CheckBox) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Example 17 with UiHandler

use of com.google.gwt.uibinder.client.UiHandler in project GwtMobile by dennisjzh.

the class RadioButtonPage method onRadioGroup1SelectionChanged.

@UiHandler("radiogroup1")
void onRadioGroup1SelectionChanged(SelectionChangedEvent e) {
    RadioButton radio = (RadioButton) radiogroup1.getWidget(e.getSelection());
    Utils.Console("group1 " + e.getSelection() + " " + radio.getText());
}
Also used : RadioButton(com.gwtmobile.ui.client.widgets.RadioButton) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Example 18 with UiHandler

use of com.google.gwt.uibinder.client.UiHandler in project che by eclipse.

the class NavigateToFileViewImpl method handleKeyDown.

@UiHandler("fileName")
void handleKeyDown(KeyDownEvent event) {
    switch(event.getNativeKeyCode()) {
        case KeyCodes.KEY_UP:
            event.stopPropagation();
            event.preventDefault();
            if (list != null) {
                list.getSelectionModel().selectPrevious();
            }
            return;
        case KeyCodes.KEY_DOWN:
            event.stopPropagation();
            event.preventDefault();
            if (list != null) {
                list.getSelectionModel().selectNext();
            }
            return;
        case KeyCodes.KEY_PAGEUP:
            event.stopPropagation();
            event.preventDefault();
            if (list != null) {
                list.getSelectionModel().selectPreviousPage();
            }
            return;
        case KeyCodes.KEY_PAGEDOWN:
            event.stopPropagation();
            event.preventDefault();
            if (list != null) {
                list.getSelectionModel().selectNextPage();
            }
            return;
        case KeyCodes.KEY_ENTER:
            event.stopPropagation();
            event.preventDefault();
            ItemReference selectedItem = list.getSelectionModel().getSelectedItem();
            if (selectedItem != null) {
                delegate.onFileSelected(Path.valueOf(selectedItem.getPath()));
                ;
            }
            return;
        case KeyCodes.KEY_ESCAPE:
            event.stopPropagation();
            event.preventDefault();
            hidePopup();
            return;
    }
    Scheduler.get().scheduleDeferred(new Command() {

        @Override
        public void execute() {
            delegate.onFileNameChanged(fileName.getText());
        }
    });
}
Also used : ItemReference(org.eclipse.che.api.project.shared.dto.ItemReference) Command(com.google.gwt.user.client.Command) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Example 19 with UiHandler

use of com.google.gwt.uibinder.client.UiHandler in project platformlayer by platformlayer.

the class JettyServiceViewImpl method onMetricButton.

@UiHandler("metricButton")
public void onMetricButton(ClickEvent e) {
    MetricPlace metricPlace = new MetricPlace(activity.getPlace(), "jvm");
    activity.goTo(metricPlace);
}
Also used : MetricPlace(org.platformlayer.gwt.client.metrics.MetricPlace) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Example 20 with UiHandler

use of com.google.gwt.uibinder.client.UiHandler in project opennms by OpenNMS.

the class FilterPanel method onApplicationSelect.

/**
     * <p>onApplicationSelect</p>
     *
     * @param event a {@link com.google.gwt.event.logical.shared.SelectionEvent} object.
     */
@UiHandler("applicationNameSuggestBox")
public void onApplicationSelect(final SelectionEvent<Suggestion> event) {
    Suggestion item = event.getSelectedItem();
    m_eventBus.fireEvent(new ApplicationSelectedEvent(item.getReplacementString()));
}
Also used : Suggestion(com.google.gwt.user.client.ui.SuggestOracle.Suggestion) ApplicationSelectedEvent(org.opennms.features.poller.remote.gwt.client.events.ApplicationSelectedEvent) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Aggregations

UiHandler (com.google.gwt.uibinder.client.UiHandler)30 GerritUiExtensionPoint (com.google.gerrit.client.GerritUiExtensionPoint)5 CallbackGroup (com.google.gerrit.client.rpc.CallbackGroup)3 Command (com.google.gwt.user.client.Command)3 AccessSection (com.google.gerrit.common.data.AccessSection)2 ProjectAccess (com.google.gerrit.common.data.ProjectAccess)2 Theme (com.google.gerrit.extensions.client.Theme)2 CheckBox (com.gwtmobile.ui.client.widgets.CheckBox)2 RadioButton (com.gwtmobile.ui.client.widgets.RadioButton)2 ErrorDialog (com.google.gerrit.client.ErrorDialog)1 EditPreferences (com.google.gerrit.client.account.EditPreferences)1 GerritCallback (com.google.gerrit.client.rpc.GerritCallback)1 NativeString (com.google.gerrit.client.rpc.NativeString)1 EditPreferencesInfo (com.google.gerrit.extensions.client.EditPreferencesInfo)1 KeyMapType (com.google.gerrit.extensions.client.KeyMapType)1 Change (com.google.gerrit.reviewdb.client.Change)1 JavaScriptObject (com.google.gwt.core.client.JavaScriptObject)1 JsArrayString (com.google.gwt.core.client.JsArrayString)1 DomEvent (com.google.gwt.event.dom.client.DomEvent)1 HasValueChangeHandlers (com.google.gwt.event.logical.shared.HasValueChangeHandlers)1