Class ItemMonitor

  • All Implemented Interfaces:
    com.google.gwt.event.shared.EventHandler, com.gwtplatform.mvp.client.proxy.NavigationHandler

    public class ItemMonitor
    extends Object
    implements com.gwtplatform.mvp.client.proxy.NavigationHandler
    Class to monitor item actions and show a progress indicator if they take longer than a given timeout. Relies on an unique item id implemented by ItemDisplay.getId() and specified in the column setup.
    • Constructor Detail

      • ItemMonitor

        @Inject
        public ItemMonitor​(com.google.web.bindery.event.shared.EventBus eventBus)
    • Method Detail

      • startProgress

        public static void startProgress​(String itemId)
      • stopProgress

        public static void stopProgress​(String itemId)
      • onNavigation

        public void onNavigation​(com.gwtplatform.mvp.client.proxy.NavigationEvent navigationEvent)
        Specified by:
        onNavigation in interface com.gwtplatform.mvp.client.proxy.NavigationHandler
      • monitorPlaceRequest

        public <T> ItemActionHandler<T> monitorPlaceRequest​(String itemId,
                                                            String nameToken,
                                                            Callback callback)
        Wraps and monitors an item action which triggers a place request.