Examples of clone()


Examples of javax.swing.text.html.CSS.TextDecoration.clone()

        if (key == StyleConstants.Underline
            || key == StyleConstants.StrikeThrough) {

            TextDecoration td =
                (TextDecoration)old.getAttribute(Attribute.TEXT_DECORATION);
            td = (TextDecoration)td.clone();
            if (key == StyleConstants.Underline && td.isUnderline()) {
                td.setUnderline(false);
            }
            if (key == StyleConstants.StrikeThrough && td.isLineThrough()) {
                td.setLineThrough(false);
View Full Code Here

Examples of javax.swing.tree.DefaultMutableTreeNode.clone()

                                str = new String("CL." + clsId + "." + rs1.getInt("LAYOUT"));
                                DefaultMutableTreeNode layoutNode = new DefaultMutableTreeNode(new ObjectInfo(clsId, rs1.getInt("LAYOUT"), TxtManager.getTxt(str), "report", rs1.getBoolean("ISFAVORITE")));
                                //fixȥ�����������ڵ�ı����ӽڵ�
//                                objectNode.add(layoutNode);
                                if (rs1.getBoolean("ISFAVORITE") == true)
                                    favoritesNode.add((DefaultMutableTreeNode)layoutNode.clone());
                            }
                            rs1.close();

                        } catch (SQLException e) {
View Full Code Here

Examples of javax.ws.rs.core.Response.ResponseBuilder.clone()

    }
   
    protected Response handleResponse(Message outMessage, Class<?> responseClass, Type genericType) {
        try {
            ResponseBuilder rb = setResponseBuilder(outMessage, outMessage.getExchange());
            Response currentResponse = rb.clone().build();
            ((ResponseImpl)currentResponse).setOutMessage(outMessage);
           
            Object entity = readBody(currentResponse, outMessage, responseClass, genericType,
                                     new Annotation[]{});
           
View Full Code Here

Examples of javax.ws.rs.core.UriBuilder.clone()

   @Test
   public void testClone()
   {
      UriBuilder ub = UriBuilder.fromUri("http://user@localhost:8080/?query#fragment").path("a");
      URI full = ub.clone().path("b").build();
      URI base = ub.build();

      Assert.assertEquals(URI.create("http://user@localhost:8080/a?query#fragment"), base);
      Assert.assertEquals(URI.create("http://user@localhost:8080/a/b?query#fragment"), full);
   }
View Full Code Here

Examples of jcurses.util.Rectangle.clone()

      Toolkit.endPainting();
      return;
    }
    Rectangle rect = w.getRectangle();
    if (w.hasShadow()) {
      rect = ((Rectangle)rect.clone());
      rect.resize(rect.getWidth()+1, rect.getHeight()+1);
    }
    Toolkit.drawRectangle(rect, getScreenColors());
    for (int i=0; i<index; i++) {
      Window aw = __windowsStack.get(i);
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.clone()

                // Insert this new instantiation into the queue to be emitted
                // later.
                worklist.add(newinst);
            } else {
                newInstructions.add(insn.clone(instant));
            }
        }

        // Emit try/catch blocks that are relevant to this method.
        for (Iterator<TryCatchBlockNode> it = tryCatchBlocks.iterator(); it
View Full Code Here

Examples of jmt.engine.graphic.Matrix4.clone()

    eyeRT.multSelf(Matrix4.createRotationY(rotY));
    eyeRT.multSelf(Matrix4.createTranslation(-centroid.x(), centroid.y(),
        centroid.z()));
    Vector4 eyePos = Vector4.createPoint3D(0.0f, 0.0f, 10.0f);
    prj.lookAt(eyePos, Vector4.ORIGIN, false);
    prj.push(mv.clone());
    prj.push(eyeRT.clone());
    mv.set(eyeRT.mult(mv));

    originPrj = prj.project(Vector4.ORIGIN);
    axisPrjX = prj.project(nx);
View Full Code Here

Examples of jnode.ndl.FtnNdlAddress.clone()

        + _points + "\n";
    if (!success)
      text += errors.toString();
    for (FtnNdlAddress boss : bosses) {
      FtnTools.writeNetmail(FtnTools.getPrimaryFtnAddress(),
          boss.clone(), nameFrom,
          boss.getLine().split(",")[4].replace('_', ' '), subject,
          text);
    }
    return success;
  }
View Full Code Here

Examples of ke.go.moh.oec.Person.clone()

            int dbPersonId = Integer.parseInt(Sql.getLastInsertId(conn));
            PersonIdentifierList.update(conn, dbPersonId, p.getPersonIdentifierList(), null);
            FingerprintList.update(conn, dbPersonId, p.getFingerprintList(), null);
            VisitList.update(conn, Sql.REGULAR_VISIT_TYPE_ID, dbPersonId, p.getLastRegularVisit());
            VisitList.update(conn, Sql.ONE_OFF_VISIT_TYPE_ID, dbPersonId, p.getLastOneOffVisit());
            PersonMatch newPer = new PersonMatch(p.clone()); // Clone to protect from unit test modifications.
            newPer.setDbPersonId(dbPersonId);
            this.add(newPer);
            SearchHistory.update(req, null, null); // Update search history showing that no candidate was selected.
        }
        Sql.commit(conn);
View Full Code Here

Examples of kodkod.instance.TupleSet.clone()

        expr2ts.put(ans, ts);
        if (ans instanceof PrimSig) {
           // Add the atoms in this SIG into all parent sigs
           for(PrimSig ans2 = ((PrimSig)ans).parent; ans2!=null && !ans2.builtin; ans2 = ans2.parent) {
              TupleSet ts2 = expr2ts.get(ans2);
              if (ts2==null) ts2 = ts.clone(); else { ts2 = ts2.clone(); ts2.addAll(ts); }
              expr2ts.put(ans2, ts2);
           }
        }
        return ans;
    }
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.