Search in sources :

Example 1 with LocationPanelSelectEvent

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

the class PageableLocationList method onItemClickHandler.

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

Aggregations

Cell (com.google.gwt.user.client.ui.HTMLTable.Cell)1 LocationPanelSelectEvent (org.opennms.features.poller.remote.gwt.client.events.LocationPanelSelectEvent)1 LocationInfo (org.opennms.features.poller.remote.gwt.client.location.LocationInfo)1