Package org.jboss.hal.core.finder
Class ItemMonitor
- java.lang.Object
-
- org.jboss.hal.core.finder.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 byItemDisplay.getId()and specified in the column setup.
-
-
Constructor Summary
Constructors Constructor Description ItemMonitor(com.google.web.bindery.event.shared.EventBus eventBus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ItemActionHandler<T>monitorPlaceRequest(String itemId, String nameToken, Callback callback)Wraps and monitors an item action which triggers a place request.voidonNavigation(com.gwtplatform.mvp.client.proxy.NavigationEvent navigationEvent)static voidstartProgress(String itemId)static voidstopProgress(String itemId)
-
-
-
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:
onNavigationin interfacecom.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.
-
-