Examples of render()


Examples of com.cosmo.ui.widgets.MenuWidget.render()

      int index = xhtml.indexOf(PageRenderer.TAG_WIDGET_MENU);

      if (index >= 0)
      {
         MenuWidget menu = new MenuWidget(workspace, MenuWidget.MenuTypes.Lateral);
         xhtml.replace(index, index + PageRenderer.TAG_WIDGET_MENU.length(), menu.render());
      }
   }

   /**
    * Renderiza el men�.
View Full Code Here

Examples of com.dodo.blog.ui.page.ErrorPage.render()

        try
        {
            ErrorPage errorPage = RequestCycle.get().getWebApplication().getErrorPage().newInstance();
            errorPage.setError( e );

            httpResponse.getWriter().write( errorPage.render() );
            httpResponse.setStatus( HttpServletResponse.SC_INTERNAL_SERVER_ERROR );
        }
        catch ( Exception e1 )
        {
            log.severe( "Error occurred during creating error page:" + e1 );
View Full Code Here

Examples of com.dodo.blog.ui.page.Page.render()

            // check authorization
            if ( !isAuthorized( pageClass ) )
            {
                Injector injector = RequestCycle.get().getInjector();
                Page page = injector.getInstance( WebApplication.get().getUnauthorizedPage() );
                response.getWriter().write( page.render() );

                return;
            }

            // handle ajax calls
View Full Code Here

Examples of com.dragome.render.interfaces.ComponentRenderer.render()

      if (entry.getKey().isAssignableFrom(visualComponent.getClass()))
        renderer= ServiceLocator.getInstance().getReflectionService().createClassInstance(entry.getValue());
    }

    if (renderer != null)
      return renderer.render(visualComponent);
    else
      return new HTMLLabelRenderer().render(new VisualLabelImpl("l1", "no renderer!!"));
  }

  public static <A extends VisualComponent> void addRenderFor(Class<A> componentClass, Class<? extends ComponentRenderer<Element, ? extends A>> rendererClass)
View Full Code Here

Examples of com.drakulo.games.ais.ui.component.ProgressBar.render()

      pb = this.resourceBars.get(r);
      pb.setX(x + padding + 24);
      pb.setY(oy + padding);
      pb.setMaxValue(max);
      pb.setValue(inStore);
      pb.render(g);

      // Rendering the resource amount, max and modifier
      if (this.extendedResourceDisplay) {
        y = oy + 25;
View Full Code Here

Examples of com.et.mvc.renderer.StringViewRenderer.render()

    if (viewClass.getName().equals("void")) {
      VoidViewRenderer renderer = new VoidViewRenderer();
      renderer.render((Void) viewObject, viewContext);
    } else if (viewClass.getName().equals("java.lang.String")) {
      StringViewRenderer renderer = new StringViewRenderer();
      renderer.render((String) viewObject, viewContext);
    } else if (viewObject instanceof View) {
      ViewRendererClass vrc = viewObject.getClass().getAnnotation(ViewRendererClass.class);
     
      Class<?> clasz = ((View)viewObject).getRendererClass();
      if (clasz == null && vrc != null) {
View Full Code Here

Examples of com.et.mvc.renderer.VoidViewRenderer.render()

  protected void renderView(Class<?> viewClass, Object viewObject,
      ViewContext viewContext) throws Exception {
    if (viewClass.getName().equals("void")) {
      VoidViewRenderer renderer = new VoidViewRenderer();
      renderer.render((Void) viewObject, viewContext);
    } else if (viewClass.getName().equals("java.lang.String")) {
      StringViewRenderer renderer = new StringViewRenderer();
      renderer.render((String) viewObject, viewContext);
    } else if (viewObject instanceof View) {
      ViewRendererClass vrc = viewObject.getClass().getAnnotation(ViewRendererClass.class);
View Full Code Here

Examples of com.eteks.sweethome3d.j3d.PhotoRenderer.render()

          EventQueue.invokeLater(new Runnable() {
            public void run() {
              photoCardLayout.show(photoPanel, PHOTO_CARD);
            }
          });
          photoRenderer.render(image, home.getCamera(), this.photoComponent);
        }
      } else {
        // Compute 3D view offscreen image
        HomeComponent3D homeComponent3D = new HomeComponent3D(home, this.preferences, quality == 1);
        image = homeComponent3D.getOffScreenImage(imageWidth, imageHeight);
View Full Code Here

Examples of com.example.helloworld.core.Template.render()

                       Namespace namespace,
                       HelloWorldConfiguration configuration) throws Exception {
        final Template template = configuration.buildTemplate();

        if (namespace.getBoolean("include-default")) {
            LOGGER.info("DEFAULT => {}", template.render(Optional.<String>absent()));
        }

        for (String name : namespace.<String>getList("names")) {
            for (int i = 0; i < 1000; i++) {
                LOGGER.info("{} => {}", name, template.render(Optional.of(name)));
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Component.render()

        widget = config.getWidget();
        if (widget instanceof Component) {
          Component c = (Component) widget;
          if (!c.isRendered()) {
            c.render(span);
          } else {
            span.appendChild(c.getElement());
          }

        } else {
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.