/** * Remove a listener. * @param comp The component to be listened on (or null for listening on all components). * @param listener The listener to be removed. */ public IFuture<Void> removeComponentListener(IComponentIdentifier comp, ICMSComponentListener listener) { listeners.remove(comp, listener); return IFuture.DONE; }
/** * Remove a listener. * @param comp The component to be listened on (or null for listening on all components). * @param listener The listener to be removed. */ public IFuture<Void> removeComponentListener(IComponentIdentifier comp, ICMSComponentListener listener) { listeners.remove(comp, listener); return IFuture.DONE; }
/** * Remove a child. */ public List removeChildren(Object key) { return children==null? null: (List)children.remove(key); }
/** * Internal remove method, which doesn't affect the reverse collection. */ protected Object _remove(Object key) { return super.remove(key); }
/** * Remove a listener. * @param comp The component to be listened on (or null for listening on all components). * @param listener The listener to be removed. */ public IFuture<Void> removeComponentListener(IComponentIdentifier comp, ICMSComponentListener listener) { synchronized(listeners) { listeners.remove(comp, listener); } return IFuture.DONE; }
/** * Removes an attribute value. * * @param name The attribute name. * @param value The attribute value. */ public void removeValue(String name, Object value) { if(values.containsKey(name)) { values.remove(name, value); } }
public void customExceptionOccurred(Exception exception) { assert SwingUtilities.isEventDispatchThread(); // System.out.println("remove: "+cid+", "+listener+", "+this); if(listeners!=null) listeners.remove(cid, listener); if(futures!=null) // Todo: why can be null? { Collection<?> coll = futures.getCollection(cid); for(Iterator<?> it=coll.iterator(); it.hasNext(); ) { ((Future<?>)it.next()).setException(exception); } futures.remove(cid); if(futures.isEmpty()) futures = null; } } });
public void customResultAvailable(Void result) { assert SwingUtilities.isEventDispatchThread(); if(futures!=null) // Todo: can be null? { Collection<?> coll = futures.getCollection(cid); for(Iterator<?> it=coll.iterator(); it.hasNext(); ) { ((Future<?>)it.next()).setResult(null); } futures.remove(cid); if(futures.isEmpty()) futures = null; } } public void customExceptionOccurred(Exception exception)
return super.remove(key);
public void exceptionOccurred(Exception exception) { kernellocationcache.remove(kernelsext, kernelmodel); findKernelInCache(model, imports, rid, isrecur) .addResultListener(ia.createResultListener(new DelegationResultListener(ret))); } }));
tasklisteners.remove(taskid);
tasklisteners.remove(atasks[i].getProperty(IObjectTask.PROPERTY_ID)); if(tasklisteners.isEmpty()) tasklisteners = null;
List ps = (List)readcontext.getPostProcessors().remove(Integer.valueOf(i)); if(ps!=null)
listeners.remove(cid, listener); if(!listeners.containsKey(cid))