Examples of render()


Examples of org.sikuli.core.draw.ImageRenderer.render()

       
        addTextLabel(layer, actionName,location.getX() - loggedScreenRegion.getBounds().x - 20, location.getY() - loggedScreenRegion.getBounds().y - 40);
        addNodeWithShadow(layer, c);
      }     
    };
    writeLogImage(ir.render(), actionName);   
  }
 
 
  // base class to provide a set of uniform drawing utility functions
  abstract class LogImageRenderer extends PiccoloImageRenderer{
View Full Code Here

Examples of org.spoutcraft.api.gui.InGameHUD.render()

      this.drawRect(0, 0, screenWidth, screenHeight, var17);
      GL11.glEnable(3008 /*GL_ALPHA_TEST*/);
      GL11.glEnable(2929 /*GL_DEPTH_TEST*/);
    }

    mainScreen.render();
   
    int var111;
    var111 = screenWidth / 2 - 91;
    int var12;
    int var13;
View Full Code Here

Examples of org.springframework.springfaces.mvc.servlet.view.BookmarkableView.render()

    BookmarkableView delegate = createDelegateRedirector(url);
    if (delegate instanceof FacesRenderedView) {
      ((FacesRenderedView) delegate).render(relevantModel, facesContext);
    } else {
      HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
      delegate.render(relevantModel, request, response);
    }
  }

  public String getBookmarkUrl(Map<String, ?> model, HttpServletRequest request) throws Exception {
    NativeWebRequest webRequest = new FacesWebRequest(FacesContext.getCurrentInstance());
View Full Code Here

Examples of org.springframework.templating.LocalStringTemplate.render()

    StringTemplate textTemplate = textTemplateFactory.getStringTemplate();
    textTemplate.put("account", from);
    StringTemplate bodyTemplate = new LocalStringTemplate(invitationBody);
    for (Invitee invitee : to) {
      bodyTemplate.put("invitee", invitee);
      textTemplate.put("body",  bodyTemplate.render());
      String token = tokenGenerator.generateKey();
      textTemplate.put("acceptUrl", acceptUriTemplate.expand(token));
      send(from, invitee, textTemplate.render(), token);
    }
  }
View Full Code Here

Examples of org.springframework.templating.StringTemplate.render()

    StringTemplate textTemplate;
    mailMessage.setSubject("Reset your Greenhouse password");
    textTemplate = resetTemplateFactory.getStringTemplate();
    textTemplate.put("firstName", request.getAccount().getFirstName());   
    textTemplate.put("resetUrl", resetUriTemplate.expand(request.getToken()));
    mailMessage.setText(textTemplate.render());
    return mailMessage;
  }
}
View Full Code Here

Examples of org.springframework.web.portlet.DispatcherPortlet.render()

    };
    portlet.init(new MockPortletConfig());

    MockRenderRequest request = new MockRenderRequest(PortletMode.VIEW);
    MockRenderResponse response = new MockRenderResponse();
    portlet.render(request, response);
    assertEquals("test", response.getContentAsString());
  }

  public void testAdaptedHandleMethods() throws Exception {
    doTestAdaptedHandleMethods(MyAdaptedController.class);
View Full Code Here

Examples of org.springframework.web.servlet.View.render()

    SpringRenderingViewAdapter va = new SpringRenderingViewAdapter(view, model);

    expect(context.getRequest()).andReturn(request);
    expect(context.getResponse()).andReturn(response);
    view.render(model, request, response);

    replay(context);
    replay(view);
    replay(model);
View Full Code Here

Examples of org.springframework.web.servlet.view.JstlView.render()

        testUrlBasedView.setServletContext(new MockServletContext());
        MockHttpServletRequest request = new MockHttpServletRequest();
        request.setAttribute(RequestContext.WEB_APPLICATION_CONTEXT_ATTRIBUTE,
                new GenericWebApplicationContext());
        Map<String, Object> model = new HashMap<String, Object>();
        testUrlBasedView.render(model,
                request,
                new MockHttpServletResponse());

        Operation operation = getLastEntered();
        assertEquals("Render view \"myjsp.jsp\"", operation.getLabel());
View Full Code Here

Examples of org.springframework.web.servlet.view.RedirectView.render()

    mv = adapter.handle(request, new MockHttpServletResponse(), chain.getHandler());
    assertNotNull(mv.getView());
    assertEquals(RedirectView.class, mv.getView().getClass());
    RedirectView redirectView = (RedirectView) mv.getView();
    MockHttpServletResponse response = new MockHttpServletResponse();
    redirectView.render(Collections.emptyMap(), request, response);
    assertEquals("/new?a=b", response.getRedirectedUrl());
    assertEquals(308, response.getStatus());

    request = new MockHttpServletRequest("GET", "/bad");
    chain = mapping2.getHandler(request);
View Full Code Here

Examples of org.springframework.webflow.execution.View.render()

    EasyMock.replay(new Object[] { context });

    View view = factory.getView(context);
    ((JsfView) view).getViewRoot().setTransient(true);
    view.render();

    assertTrue(newRoot.isTransient());
    assertTrue(((NoRenderViewHandler) viewHandler).rendered);
  }
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.