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()));
}
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()));
}
Aggregations