public static void destroyStatic() { listeners.clear(); currentlySelectedContent = new ISelectedContent[0]; tv = null; }
/** * Resets this reporter to its initial states such that values are reset to default * <p>An appropriate use for this is when a process is restarting or retrying; this allows an owning process * to keep on using the same instance of this reporter without having to create and dispatch a new one</p> */ private void reInit() { isActive = true; isCanceled = false; isDone = false; isInErrorState = false; errorMessage = ""; message = ""; detailMessage = ""; messageHistory.clear(); }
@Override public void delete() { triggerLifeCycleListener(TableLifeCycleListener.EVENT_TABLELIFECYCLE_SHUTDOWN); // clear listeners that should be empty by now listenersLifeCycle.clear(); listenersCountChange.clear(); listenersDataSourceChanged.clear(); listenersExpansionChange.clear(); listenersRefresh.clear(); listenersSelection.clear(); listenersRowRefesh = null; processDataSourceQueueCallback = null; }
@Override public void remove() { removeAllChildItems(); if (this.parent != null) { parent.children.remove(this); this.parent = null; } else { removeSelf(); } this.data = null; this.graphic = null; this.listeners.clear(); this.fill_listeners.clear(); this.m_listeners.clear(); if (this.menu_context != null) {menu_context.dirty();} }
@Override public void reportPercent(int percent) { if (curPercent > percent) { return; } curPercent = percent; try { listeners_mon.enter(); Iterator iter = listeners.iterator(); while (iter.hasNext()) { InitializerListener listener = (InitializerListener) iter.next(); try { listener.reportPercent(percent); } catch (Exception e) { // ignore } } if (percent > 100) { listeners.clear(); } } finally { listeners_mon.exit(); } }
@Override public void dispose() { synchronized (this) { /* * Disposed already so no need to do it again */ if (isDisposed) { return; } isDisposed = true; isActive = false; } latestReportType = REPORT_TYPE_DISPOSED; /* * Notifies listeners */ notifyListeners( getProgressReport()); /* * Then dispose all listeners to let GC do it's magic. * This is just to do final clearing since at this point most listeners should have been disposed * already. */ if (null != reporterListeners) { reporterListeners.clear(); } /* * Finally notifies the manager */ manager.notifyManager(this); }
l.skinLayoutCompleted(); listenersLayoutComplete.clear();
listeners.clear();