Examples of Cell


Examples of javafx.scene.control.Cell

    Object item = mock(Object.class);
    ITableItemColorProvider itemProvider = mock(ITableItemColorProvider.class);
    when(itemProvider.getForeground(item, COLUMN_INDEX)).thenReturn(foregroundObject);
    when(itemProvider.getBackground(item, COLUMN_INDEX)).thenReturn(backgroundObject);
    when(adapterFactory.adapt(item, ITableItemColorProvider.class)).thenReturn(itemProvider);
    Cell cell = new Cell();
    cellFactory.applyTableItemProviderColor(item, COLUMN_INDEX, cell, adapterFactory);
    assertEquals(foregroundColor, cell.getTextFill());
    assertEquals("-fx-background-color: rgb(0, 255, 0)", cell.getStyle());
  }
View Full Code Here

Examples of jxl.Cell

    if (columnIndex == null)
    {
      throw new JRException("Unknown column name : " + fieldName);
    }
    Sheet sheet = workbook.getSheet(0);
    Cell cell = sheet.getCell(columnIndex.intValue(), recordIndex);
    String fieldValue = cell.getContents();
    Class valueClass = jrField.getValueClass();
   
    if (valueClass.equals(String.class))
    {
      return fieldValue;
View Full Code Here

Examples of kameleon.document.Cell

          continue ;
        }// if
        Row firstRow = array.iterator().next() ;
        boolean isHeaderRow = true ;
        for(Iterator<Cell> iter = firstRow.iterator(); iter.hasNext() && isHeaderRow; ) {
          Cell cell = iter.next() ;
          for(Iterator<Paragraph> cellIter = cell.iterator(); cellIter.hasNext() && isHeaderRow; ) {
            Paragraph paragraph = cellIter.next() ;
            if (paragraph instanceof TextParagraph) {
              TextParagraph tp = (TextParagraph) paragraph ;
              for(Iterator<TextParagraphElement> tpIter = tp.iterator(); tpIter.hasNext() && isHeaderRow; ) {
                TextParagraphElement element = tpIter.next() ;
View Full Code Here

Examples of ke.go.moh.oec.oecsm.data.Cell

    private List<LoggableTransactionDatum> generateLoggableTransactionDatumList(LoggableTransaction loggableTransaction) throws InaccessibleConfigurationFileException, DriverNotFoundException, SQLException {
        List<LoggableTransactionDatum> loggableTransactionDatumList = new ArrayList<LoggableTransactionDatum>();
        Statement statement = connection.createStatement();
        ResultSet rs = statement.executeQuery("SELECT `transaction_data`.`ID`, `transaction_data`.`DATA`, `transaction_data`.`COLUMN_ID`, `transaction_data`.`TRANSACTION_ID` FROM `transaction_data` WHERE `transaction_data`.`TRANSACTION_ID` = " + loggableTransaction.getId() + ";");
        while (rs.next()) {
            Cell cell = new Cell(rs.getInt("ID"), rs.getString("DATA"));
            cell.setColumn(findColumn(rs.getInt("COLUMN_ID")));
            LoggableTransactionDatum loggableTransactionDatum = new LoggableTransactionDatum(cell, loggableTransaction);
            loggableTransactionDatumList.add(loggableTransactionDatum);
        }
        return loggableTransactionDatumList;
    }
View Full Code Here

Examples of mondrian.olap.Cell

    return axes;
  }

  public JROlapCell getCell(int[] axisPositions)
  {
    Cell dataCell = result.getCell(axisPositions);
    return new JRMondrianCell(dataCell);
  }
View Full Code Here

Examples of net.firstpartners.spreadsheet.Cell

   
    //Create the test object
    Range testRange = new Range();
   
    // add some test cells
    Cell testCellOne = new Cell();
    testCellOne.setValue("cellValue1");
   
    Cell testCellTwo = new Cell();
    testCellTwo.setValue("cellValue2");
   
    testRange.put("name1",testCellOne);
    testRange.put("name2",testCellTwo);
   
    assertTrue(testRange.getRangeContainsValue("cellValue1"));
View Full Code Here

Examples of net.opentsdb.core.Internal.Cell

    int qual_len = 0;
    int val_len = 1// Reserve an extra byte for meta-data.
    int last_delta = -1// Time delta, extracted from the qualifier.
    int ncells = cells.size();
    for (int i = 0; i < ncells; i++) {
      final Cell cell = cells.get(i);
      final int delta = Internal.getOffsetFromQualifier(cell.qualifier);
     
      // Because we sorted `cells' by qualifier, and because the time delta
      // occupies the most significant bits, this should never trigger.
      assert delta >= last_delta: ("WTF? It's supposed to be sorted: " + cells
                                   + " at " + i + " delta=" + delta
                                   + ", last_delta=" + last_delta);
      // The only troublesome case is where we have two (or more) consecutive
      // cells with the same time delta, but different flags or values.
      if (delta == last_delta) {
        // Find the previous cell.  Because we potentially replace the one
        // right before `i' with a tombstone, we might need to look further
        // back a bit more.
        Cell prev = Cell.SKIP;
        // i > 0 because we can't get here during the first iteration.
        // Also the first Cell cannot be Cell.SKIP, so `j' will never
        // underflow.  And even if it does, we'll get an exception.
        for (int j = i - 1; prev == Cell.SKIP; j--) {
          prev = cells.get(j);
View Full Code Here

Examples of net.sf.jasperreports.components.table.Cell

      this.level = level;
    }

    public Void visitColumn(Column column)
    {
      Cell cell = columnCell(column);
     
      if (cell != null)
      {
        JRDesignFrame cellFrame = createCellFrame(cell,
            column.getWidth(), fillColumn.getWidth(),
            xOffset, yOffset);
        int rowSpan = cell.getRowSpan() == null ? 1 : cell.getRowSpan();
        bandInfo.addElement(level + rowSpan - 1, cellFrame);
       
        yOffset += cell.getHeight();
      }
     
      xOffset += column.getWidth();
     
      return null;
View Full Code Here

Examples of org.apache.cassandra.db.Cell

            {
                ColumnDef cdef = itera.next();
                ByteBuffer columnValue = columns.get(ByteBufferUtil.string(cdef.name.duplicate()));
                if (columnValue != null)
                {
                    Cell cell = new BufferCell(CellNames.simpleDense(cdef.name), columnValue);
                    AbstractType<?> validator = getValidatorMap(cfDef).get(cdef.name);
                    setTupleValue(tuple, i, cqlColumnToObj(cell, cfDef), validator);
                }
                else
                    tuple.set(i, null);
View Full Code Here

Examples of org.apache.hadoop.hbase.Cell

    Get get = new Get(row);
    get.addColumn(familiy, qualifier);
    Result result = region.get(get);
    assertEquals(1, result.size());

    Cell kv = result.rawCells()[0];
    long r = Bytes.toLong(CellUtil.cloneValue(kv));
    assertEquals(amount, r);
  }
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.