Search in sources :

Example 1 with AlarmControl

use of org.opennms.features.vaadin.nodemaps.internal.gwt.client.ui.controls.alarm.AlarmControl in project opennms by OpenNMS.

the class NodeMapWidget method addAlarmControl.

private void addAlarmControl() {
    LOG.info("NodeMapWidget.addAlarmControl()");
    m_alarmControl = new AlarmControl(m_eventManager, m_componentTracker);
    final String id = m_alarmControl.getElement().getId();
    if (id == null || "".equals(id)) {
        m_alarmControl.getElement().setId("alarm-control");
    } else {
        LOG.info("NodeMapWidget.addAlarmControl(): id = " + id);
    }
    final HTMLPanel mapParent = HTMLPanel.wrap(m_mapPanel.getParent().getElement());
    final Style searchStyle = m_alarmControl.getElement().getStyle();
    searchStyle.setPosition(Position.ABSOLUTE);
    searchStyle.setTop(5, Unit.PX);
    searchStyle.setRight(5, Unit.PX);
    searchStyle.setZIndex(1000);
    mapParent.add(m_alarmControl);
}
Also used : Style(com.google.gwt.dom.client.Style) HTMLPanel(com.google.gwt.user.client.ui.HTMLPanel) AlarmControl(org.opennms.features.vaadin.nodemaps.internal.gwt.client.ui.controls.alarm.AlarmControl)

Aggregations

Style (com.google.gwt.dom.client.Style)1 HTMLPanel (com.google.gwt.user.client.ui.HTMLPanel)1 AlarmControl (org.opennms.features.vaadin.nodemaps.internal.gwt.client.ui.controls.alarm.AlarmControl)1