public static void notifyOnStart() { mIsWorking = true; for (WeakReference<OnLoadStatusesFromWebListener> reference : mListeners) { if (!reference.isEnqueued() && reference.get() != null) { reference.get().onStart(); } } }
public static void notifyOnError(Exception e) { mIsWorking = false; for (WeakReference<OnLoadStatusesFromWebListener> reference : mListeners) { if (!reference.isEnqueued() && reference.get() != null) { reference.get().onError(e); } } }
public void deselectAllInToggleGroup() { int toggleGroup = getToggleGroup(); for (WeakReference<HToggleButton> reference : listOfToggleButtons) { if (!reference.isEnqueued() && reference.get() != null) { HToggleButton button = reference.get(); if (button != this) { if (button.getToggleGroup() == toggleGroup) { button.deselect(); } } } } }
private GraphicalEditPart getCachedNode() { if (cachedNode == null) return null; if (cachedNode.isEnqueued()) return null; return (GraphicalEditPart) cachedNode.get(); }