Search in sources :

Example 1 with ApplicationSelectedEvent

use of org.opennms.features.poller.remote.gwt.client.events.ApplicationSelectedEvent 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)

Example 2 with ApplicationSelectedEvent

use of org.opennms.features.poller.remote.gwt.client.events.ApplicationSelectedEvent in project opennms by OpenNMS.

the class PageableApplicationList method onItemClickHandler.

/** {@inheritDoc} */
@Override
public void onItemClickHandler(final ClickEvent event) {
    final Cell cell = getCellForEvent(event);
    final ApplicationInfo appInfo = getApplications().get(cell.getRowIndex() + (getCurrentPageIndex() * getTotalListItemsPerPage()));
    m_eventBus.fireEvent(new ApplicationSelectedEvent(appInfo.getName()));
}
Also used : ApplicationSelectedEvent(org.opennms.features.poller.remote.gwt.client.events.ApplicationSelectedEvent) Cell(com.google.gwt.user.client.ui.HTMLTable.Cell)

Aggregations

ApplicationSelectedEvent (org.opennms.features.poller.remote.gwt.client.events.ApplicationSelectedEvent)2 UiHandler (com.google.gwt.uibinder.client.UiHandler)1 Cell (com.google.gwt.user.client.ui.HTMLTable.Cell)1 Suggestion (com.google.gwt.user.client.ui.SuggestOracle.Suggestion)1