Package java.util

Examples of java.util.Vector.clone()


    protected void copyEventListeners(NodeImpl src, NodeImpl tgt) {
        Vector nodeListeners = getEventListeners(src);
        if (nodeListeners == null) {
            return;
        }
        setEventListeners(tgt, (Vector) nodeListeners.clone());
    }

    /**
     * Introduced in DOM Level 2. <p>
     * Distribution engine for DOM Level 2 Events.
View Full Code Here


    protected void copyEventListeners(NodeImpl src, NodeImpl tgt) {
        Vector nodeListeners = getEventListeners(src);
        if (nodeListeners == null) {
            return;
        }
        setEventListeners(tgt, (Vector) nodeListeners.clone());
    }

    /**
     * Introduced in DOM Level 2. <p>
     * Distribution engine for DOM Level 2 Events.
View Full Code Here

/* 394 */     boolean isCloned = false;
/* 395 */     for (int i = 0; i < size; i++) {
/* 396 */       RenderedImage img = (RenderedImage)sourceVector.get(i);
/* 397 */       if (!(img instanceof Serializable)) {
/* 398 */         if (!isCloned) {
/* 399 */           sourceVector = (Vector)sourceVector.clone();
/*     */         }
/* 401 */         sourceVector.set(i, new SerializableRenderedImage(img, false));
/*     */       }
/*     */     }
/* 404 */     return sourceVector;
View Full Code Here

/*      */   }
/*      */
/*      */   public synchronized Vector getParameters()
/*      */   {
/* 1489 */     Vector params = this.nodeSupport.getParameterBlock().getParameters();
/* 1490 */     return params == null ? null : (Vector)params.clone();
/*      */   }
/*      */
/*      */   public synchronized byte getByteParameter(int index)
/*      */   {
/* 1505 */     return this.nodeSupport.getParameterBlock().getByteParameter(index);
View Full Code Here

/*      */   }
/*      */
/*      */   public synchronized Vector getSources()
/*      */   {
/* 2698 */     Vector srcs = this.nodeSupport.getParameterBlock().getSources();
/* 2699 */     return srcs == null ? null : (Vector)srcs.clone();
/*      */   }
/*      */
/*      */   public synchronized void setSources(List sourceList)
/*      */   {
/* 2720 */     if (sourceList == null) {
View Full Code Here

    protected void copyEventListeners(NodeImpl src, NodeImpl tgt) {
        Vector nodeListeners = getEventListeners(src);
        if (nodeListeners == null) {
            return;
        }
        setEventListeners(tgt, (Vector) nodeListeners.clone());
    }

    /**
     * Introduced in DOM Level 2. <p>
     * Distribution engine for DOM Level 2 Events.
View Full Code Here

            delayQueue = new LinkedList();
            break;

         case Event.VIEW_CHANGE:
            Vector newViewMembers = ((View) evt.getArg()).getMembers();
            localVector.merge((Vector) newViewMembers.clone());
            localVector.reset();
            break;

         case Event.MSG:
            Object obj = null;
View Full Code Here

                rebroadcastMsgs((Vector)evt.getArg());
                break;

            case Event.TMP_VIEW:
                Vector mbrs=((View)evt.getArg()).getMembers();
                members=mbrs != null? (Vector)mbrs.clone() : new Vector(11);
                break;

            case Event.VIEW_CHANGE:
                synchronized(this) {
                    view=((View)((View)evt.getArg()).clone());
View Full Code Here

        Vector outProfiles = new Vector();
        for (int i = 0,j = profiles.size(); i < j; i++) {
            if (((PresetClassProfile) profiles.get(i)).getPrefix() != null)
                outProfiles.add(profiles.get(i));
        }
        return (PresetClassProfile[]) ((Vector) outProfiles.clone()).toArray(new PresetClassProfile[outProfiles.size()]);
    }

    public static PresetModel getMostDerivedPresetInstance(PresetModel baseClass, String name) throws InstantiationException, IllegalAccessException {
        Class[] ca = getAllPresetClasses(name);
        Class candidate = baseClass.getClass();
View Full Code Here

    protected void copyEventListeners(NodeImpl src, NodeImpl tgt) {
        Vector nodeListeners = getEventListeners(src);
  if (nodeListeners == null) {
      return;
  }
  setEventListeners(tgt, (Vector) nodeListeners.clone());
    }

    /**
     * Introduced in DOM Level 2. <p>
     * Distribution engine for DOM Level 2 Events.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.