Example usage for com.vaadin.ui Component removeListener

List of usage examples for com.vaadin.ui Component removeListener

Introduction

In this page you can find the example usage for com.vaadin.ui Component removeListener.

Prototype

@Deprecated
public void removeListener(Component.Listener listener);

Source Link

Document

Removes a previously registered component event listener from this component.

Usage

From source file:de.kaiserpfalzEdv.office.ui.web.widgets.menu.NavigationPresenter.java

License:Apache License

@SuppressWarnings("UnusedDeclaration") // called via BUS
@EventBusListenerMethod(scope = EventScope.SESSION)
public void removeMenu(Event<RemoveMenuEvent> event) {
    LOG.debug("{} received: {}", this, event);

    RemoveMenuEvent menu = event.getPayload();
    Component removed = getView().getMenu(menu.getMenuId());

    getView().removeEntry(menu.getMenuId());

    removed.removeListener(this);

}