Search in sources :

Example 1 with Cell

use of com.google.gwt.user.client.ui.HTMLTable.Cell 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)

Example 2 with Cell

use of com.google.gwt.user.client.ui.HTMLTable.Cell 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

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