Examples of Row


Examples of org.richfaces.component.Row

        writer.endElement(HtmlConstants.TR_ELEMENT);
    }

    public DataVisitResult process(FacesContext facesContext, Object rowKey, Object argument) {
        RowHolderBase holder = (RowHolderBase) argument;
        Row row = holder.getRow();
        row.setRowKey(facesContext, rowKey);

        try {
            ResponseWriter writer = facesContext.getResponseWriter();
            encodeRow(writer, facesContext, holder);
        } catch (IOException e) {
View Full Code Here

Examples of org.sql2o.data.Row

            .addParameter("val", "hello").addToBatch()
            .executeBatch();
       
        Table table = sql2o.createQuery("select * from issue4table").executeAndFetchTable();

        Row row0 = table.rows().get(0);
        String row0Val = row0.getString("vAl");
       
        assertEquals("something", row0Val);
       
        Row row1 = table.rows().get(1);
        boolean failed = false;
       
        try{
            String row1Value = row1.getString("ahsHashah"); // Should fail with an sql2o exception
        }
        catch(Sql2oException ex){
            failed = true;

            assertTrue(ex.getMessage().startsWith("Column with name 'ahsHashah' does not exist"));
View Full Code Here

Examples of org.tarantool.snapshot.SnapshotReader.Row

    ReadableByteChannel readableByteChannel = createReadableByteChannel(closed, ar);
    TupleSupport ts = new TupleSupport();
    SnapshotReader snapShotReader = new SnapshotReader(readableByteChannel);
    for (int i = 0; i < 10; i++) {
      Tuple tuple = ts.create(i, Long.parseLong("98765432" + i), "Hello world " + i + "!");
      Row row = snapShotReader.nextRow();
      Assert.assertTrue(Arrays.equals(tuple.pack(), row.data.pack()));
    }
    snapShotReader.close();
    Assert.assertTrue(closed.get());
View Full Code Here

Examples of org.uguess.birt.report.engine.spreadsheet.model.Row

    if ( obj == null || !( obj instanceof Row ) )
    {
      return false;
    }

    Row row = (Row) obj;
    return height == row.getHeight( ) && super.equals( row );
  }
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.reportbuilder.Report.Row

    Column emptyStart=new Column("",new AttributeBuilder().set(Column.Separator, "|").build());
    Column first=new Column("First",new AttributeBuilder().set(Column.Separator, "|").build());
    Column number=new Column("Number",new AttributeBuilder().set(Column.Align.Right).set(Column.Separator, "|").build());

    Report report = new Report();
    Row row=report.newRow();
    row.set(first, 0, "baker").set(number, 0, "12,00");
    row=report.newRow();
    row.set(first, 0, "banker").set(number, 0, "117,00");
    row=report.newRow();
    row.set(first, 0, "pilot").set(number, 0, "1,12");
   
    String textReport = report.export(emptyStart, first, number).asString();

    Assert.assertEquals("|First |Number|\n|baker | 12,00|\n|banker|117,00|\n|pilot |  1,12|\n", textReport);
  }
View Full Code Here

Examples of org.xlsx4j.sml.Row

          // Minimal content already present
          SheetData sheetData = sheet.getContents().getSheetData();

          // Now add
          Row row = Context.getsmlObjectFactory().createRow();
          Cell cell = Context.getsmlObjectFactory().createCell();
          cell.setV("1234");
          row.getC().add(cell);


          row.getC().add(createCell("hello world!"));
          sheetData.getRow().add(row);
         
          // ADD A COMMENT TO CELL A1
          CommentsPart cp = new CommentsPart();
          cp.setContents(createComment("A1"));
View Full Code Here

Examples of org.xorm.datastore.Row

            ResultSet rs = ps.executeQuery();
            Set aliases = query.getAliases();
     
            while (rs.next()) {
                Row row;
                Set columns;
                SQLQuery.Alias alias;
                Table table;

                pos = 0;
                Iterator i = aliases.iterator();
                while (i.hasNext()) {
                    alias = (SQLQuery.Alias) i.next();
                    table = alias.getTable();
                    Set fcs = alias.getFetchColumns();
                    if (!fcs.isEmpty()) {
                        row = new Row(table);
                        Iterator fci = fcs.iterator();
                        while (fci.hasNext()) {
                            Column c = (Column) fci.next();
       
                            // TODO will this be flexible enough?
                            row.setValue(c, rs.getObject(++pos));
                        }
                        if (table.equals(query.getTargetTable())) {
                            list.add(row);
                        } else {
                            extraRows.add(row);
View Full Code Here

Examples of org.yaorma.database.Row

      }
      out.write(valString);

      // create an option for each database value found
      for (int i = 0; i < data.size(); i++) {
        Row row = data.get(i);
        String value = row.getString(this.keyFieldName);
        String display = row.getString(this.displayFieldName);
        valString = "";
        valString += "{";
        valString += "\"displayFieldName\":\"" + this.displayFieldName
            + "\",\"keyFieldName\":\"" + this.keyFieldName + "\",";
        valString += "\"parameterName\":\"" + this.name + "\",";
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.Row

    boolean shtProtect = sheet.getProtect();
    if (!shtProtect)
      return false;
   
    for (int r = tRow; r <= bRow; r++) {
      Row row = sheet.getRow(r);
      if (row != null) {
        for (int c = lCol; c <= rCol; c++) {
          Cell cell = row.getCell(c);
          if (shtProtect && cell != null && cell.getCellStyle().getLocked()) {
            return true;
          } else if (shtProtect && cell == null) {
            return true;
          }
View Full Code Here

Examples of org.zkoss.zul.Row

  }
 
  //-- RowRendererExt --//
  public Row newRow(Grid grid) {
    //clone from template
    final Row clone = (Row)_template.clone();
   
    //avoid duplicate id error, will set to new id when render()
    //Bug #1962153: Data binding generates duplicate id in some case (add "_")
    if (clone.getId().length() > 0) {
      clone.setId(null);
    }
         
    //link cloned component with template
    //each Row and its decendants share the same templatemap
    Map templatemap = new HashMap(7);
    linkTemplates(clone, _template, templatemap);
   
    //link this template map to parent templatemap (Grid in Grid)
    Map parenttemplatemap = (Map) grid.getAttribute(DataBinder.TEMPLATEMAP);
    if (parenttemplatemap != null) {
      templatemap.put(DataBinder.TEMPLATEMAP, parenttemplatemap);
    }
    //kept clone kids somewhere to avoid create too many components in browser
    final List kids = new ArrayList(clone.getChildren());
    clone.setAttribute(KIDS, kids);
    clone.getChildren().clear();
    return clone;
  }
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.