Examples of translate()


Examples of org.openmrs.module.htmlformentry.Translator.translate()

        String headerLabel = getAttribute(node, "headerLabel", null);
        if (headerLabel == null) {
            String headerCode = getAttribute(node, "headerCode", null);
            if (headerCode != null) {
                Translator trans = session.getContext().getTranslator();
                headerLabel = trans.translate(Context.getLocale().toString(), headerCode);
            }
        }

        out.print("<" + sectionTag + " class=\""+sectionStyleClass + "\"");
        if (sectionId != null) {
View Full Code Here

Examples of org.oxbow.swingbits.util.IObjectToStringTranslator.translate()

      Object value;
      for( T o: data ) {
        //if ( t.translate(o).startsWith(f)) {
        value = o instanceof IValueWrapper? ((IValueWrapper<?>)o).getValue(): o;
        if ( ft.include(t.translate(value), f)) {
          fData.add(o);
        }
      }
      filteredData = fData;
    }
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.translate()

    // Set the fill color to use!
    composer.setFillColor(
      DeviceRGBColor.White
      );
    composer.beginLocalState();
    composer.translate((float)templateSize.getWidth() - 20, 20);
    composer.rotate(90);
    composer.showText("Generated by PDF Clown on " + (new Date()));
    composer.translate(0,-8);
    composer.showText("For more info, visit http://www.pdfclown.org");
    composer.end();
View Full Code Here

Examples of org.rendersnake.site.HtmlToRenderSnakeTranslator.translate()

        String handle = request.getParameter("handle");
        if ("translate".equals(handle)) {
            ByteArrayInputStream input = new ByteArrayInputStream(request.getParameter("html").getBytes());
            HtmlToRenderSnakeTranslator translator = new HtmlToRenderSnakeTranslator();
            try {
                translator.translate(input,useTidy);
            } catch (Exception ex) {
                translator.errorMessage = ex.getMessage();
            }
            request.getSession().setAttribute("java", translator.isSuccess() ? translator.toJavaSource() : translator.errorMessage);
            request.getSession().setAttribute("html", request.getParameter("html"));
View Full Code Here

Examples of org.renjin.gcc.translate.FunctionTranslator.translate()

      for (GimpleFunction function : unit.getFunctions()) {
       
        transformFunctionBody(unit, function);
       
        FunctionTranslator translator = new FunctionTranslator(context);
        translator.translate(function);
      }
    }

    return jimple;
  }
View Full Code Here

Examples of org.sodbeans.matching.parser.MatchKeyword.translate()

        }
        MatchKeyword origin = matcher.findOrigin(searchOffset);
        if(origin == null) {
            return null;
        }
        int[] findOrigin = origin.translate();
        if (findOrigin != null) {
            matchID = findOrigin[0];
            originStartOffset = findOrigin[1];
            originEndOffset = findOrigin[2];
            backward = findOrigin[3] == 0 ? true : false;
View Full Code Here

Examples of org.spout.api.geo.cuboid.Block.translate()

  public int getLevels() {
    Block block = getBlock();
    for (int lvl = 1; lvl <= 4; lvl++) {
      for (int dx = -lvl; dx <= lvl; dx++) {
        for (int dz = -lvl; dz <= lvl; dz++) {
          if (!isPyramidMaterial(block.translate(dx, -lvl, dz).getMaterial())) {
            return lvl - 1;
          }
        }
      }
    }
View Full Code Here

Examples of org.springframework.jdbc.support.SQLExceptionTranslator.translate()

  public void exception(ExecuteContext ctx) {
    SQLDialect dialect = ctx.configuration().dialect();
    SQLExceptionTranslator translator = (dialect != null) ? new SQLErrorCodeSQLExceptionTranslator(dialect.name())
        : new SQLStateSQLExceptionTranslator();

    ctx.exception(translator.translate("jOOQ", ctx.sql(), ctx.sqlException()));
  }
}
View Full Code Here

Examples of org.teavm.dom.canvas.CanvasRenderingContext2D.translate()

        CanvasRenderingContext2D context = (CanvasRenderingContext2D)canvas.getContext("2d");
        context.setFillStyle("white");
        context.setStrokeStyle("grey");
        context.fillRect(0, 0, 600, 600);
        context.save();
        context.translate(0, 600);
        context.scale(1, -1);
        context.scale(100, 100);
        context.setLineWidth(0.01);
        for (Body body = scene.getWorld().getBodyList(); body != null; body = body.getNext()) {
            Vec2 center = body.getPosition();
View Full Code Here

Examples of org.teiid.dqp.internal.datamgr.LanguageBridgeFactory.translate()

    @Test public void testInlineViewOrderBy() throws Exception {
        String sql = "select intnum from (select intnum from bqt1.smallb) b order by b.intnum"; //$NON-NLS-1$
        String expected = "SELECT v_0.c_0 FROM (SELECT g_0.intnum AS c_0 FROM bqt1.smallb AS g_0) AS v_0 ORDER BY c_0"; //$NON-NLS-1$
        Command command = helpTest(sql, expected, true, false, FakeMetadataFactory.exampleBQTCached());
        LanguageBridgeFactory lbf = new LanguageBridgeFactory(FakeMetadataFactory.exampleBQTCached());
        org.teiid.language.Command c = lbf.translate(command);
        assertEquals("SELECT v_0.c_0 FROM (SELECT g_0.IntNum AS c_0 FROM SmallB AS g_0) AS v_0 ORDER BY v_0.c_0", c.toString());
    }
   
    @Test public void testNestedInlineViewOrderBy() throws Exception {
        String sql = "select x from (select intnum x from (select intnum from bqt1.smallb) b order by x) y order by x"; //$NON-NLS-1$
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.