Examples of render()


Examples of org.gradle.reporting.HtmlReportRenderer.render()

    }

    private void generateFiles(AllTestResults model, final TestResultsProvider resultsProvider, File reportDir) {
        try {
            HtmlReportRenderer htmlRenderer = new HtmlReportRenderer();
            htmlRenderer.render(model, new ReportRenderer<AllTestResults, HtmlReportBuilder>() {
                @Override
                public void render(AllTestResults model, HtmlReportBuilder output) throws IOException {
                    PackagePageRenderer packagePageRenderer = new PackagePageRenderer();
                    ClassPageRenderer classPageRenderer = new ClassPageRenderer(resultsProvider);
View Full Code Here

Examples of org.gwtoolbox.commons.util.client.template.Template.render()

public abstract class HtmlFieldsRenderer implements FieldsRenderer {

    public Widget render(HasFields fields) {
        String html = getHtmlTemplate();
        Template template = Template.compile(html);
        html = template.render(new Template.Model() {
            public String resolve(String parameter) {
                return "<div id=\"" + parameter + "\"><div>";
            }
        });
        HTMLPanel panel = new HTMLPanel(html);
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.renderer.simple.SimpleFieldsRenderer.render()

        SimpleFieldsRenderer render = new SimpleFieldsRenderer();
        render.addFieldGroup(group);
        render.setLineGap(10);
        render.setHints(labelWidth("50px"));
        Widget formPanel = render.render(form);
        formPanel.setWidth("300px");

        SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
            public void onClick(ClickEvent event) {
                form.submit(new SubmitHandler.Adapter() {
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.datagrid.column.CellRenderer.render()

            selectionModel.getSelection().clear();
            table.removeAllRows();
            for (RecordGroup group : groups) {
                Object value = group.getValue();
                CellRenderer renderer = getCellRenderer(group.getFieldGroup().getFieldName());
                GroupTitle groupTitle = new GroupTitle(currentFieldGroup, renderer.render(value), group.getRecords().size());
                groupTitle.setWidth("100%");
                table.insertToolRow(table.getRowCount(), groupTitle);
                final int[] rows = new int[group.getRecords().size()];
                int i = 0;
                for (Record record : group.getRecords()) {
View Full Code Here

Examples of org.hibernate.dialect.function.AnsiTrimEmulationFunction.render()

    final String expectedTrimPrep = "replace(replace(a.column,' ','${space}$'),'-',' ')";
    final String expectedPostTrimPrefix = "replace(replace(";
    final String expectedPostTrimSuffix = ",' ','-'),'${space}$',' ')";

    // -> trim(LEADING '-' FROM a.column)
    String rendered = function.render( null, argList( "LEADING", "'-'", "FROM", trimSource ), null );
    String expected = expectedPostTrimPrefix + "ltrim(" + expectedTrimPrep + ")" + expectedPostTrimSuffix;
    assertEquals( expected, rendered );

    // -> trim(TRAILING '-' FROM a.column)
    rendered = function.render( null, argList( "TRAILING", "'-'", "FROM", trimSource ), null );
View Full Code Here

Examples of org.hibernate.dialect.function.SQLFunction.render()

    }
    else {
      // this function has a template -> restore output, apply the template and write the result out
      FunctionArguments functionArguments = ( FunctionArguments ) writer;   // TODO: Downcast to avoid using an interface?  Yuck.
      writer = ( SqlWriter ) outputStack.removeFirst();
      out( template.render( functionArguments.getArgs(), sessionFactory ) );
    }
  }

  // --- Inner classes (moved here from sql-gen.g) ---
View Full Code Here

Examples of org.hibernate.dialect.function.StandardSQLFunction.render()

      StandardSQLFunction function = (StandardSQLFunction)dialect.getFunctions().get(PostGISDialect.NAMESPACE + "contains");
      List args = new ArrayList();
      args.add(columns[0]);
      args.add("?");
     
      return function.render(args, criteriaQuery.getFactory());
    }
    else
    {
      throw new HibernateException("\"contains\" may only be used with a spatial hibernate dialect");
    }
View Full Code Here

Examples of org.hibernate.jpa.criteria.compile.ExplicitParameterInfo.render()

    registry.registerParameter( this );
  }

  public String render(RenderingContext renderingContext) {
    final ExplicitParameterInfo parameterInfo = renderingContext.registerExplicitParameter( this );
    return parameterInfo.render();
  }

  public String renderProjection(RenderingContext renderingContext) {
    return render( renderingContext );
  }
View Full Code Here

Examples of org.hibernate.jpa.criteria.expression.ParameterExpressionImpl.render()

      // but checking for that condition could take long time on a lon value list
      final ParameterExpressionImpl parameterExpression = (ParameterExpressionImpl) exp;
      final SessionFactoryImplementor sfi = criteriaBuilder().getEntityManagerFactory().unwrap( SessionFactoryImplementor.class );
      final Type mappingType = sfi.getTypeResolver().heuristicType( parameterExpression.getParameterType().getName() );
      buffer.append( "cast(" )
          .append( parameterExpression.render( renderingContext ) )
          .append( " as " )
          .append( mappingType.getName() )
          .append( ")" );
    }
    else {
View Full Code Here

Examples of org.hibernate.sql.SelectValues.render()

  protected String generateIdInsertSelect(Queryable persister, String tableAlias, ProcessedWhereClause whereClause) {
    Select select = new Select( sessionFactory.getDialect() );
    SelectValues selectClause = new SelectValues( sessionFactory.getDialect() )
        .addColumns( tableAlias, persister.getIdentifierColumnNames(), persister.getIdentifierColumnNames() );
    addAnyExtraIdSelectValues( selectClause );
    select.setSelectClause( selectClause.render() );

    String rootTableName = persister.getTableName();
    String fromJoinFragment = persister.fromJoinFragment( tableAlias, true, false );
    String whereJoinFragment = persister.whereJoinFragment( tableAlias, true, false );
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.