Package org.uguess.birt.report.engine.spreadsheet.model

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


        Cell cell = cellPool.getCell(CellImpl.create(value, formula, style));
        return setCell(row, col, cell, true);
    }

    public Cell getCell(int row, int col, boolean create) {
        Cell cell = null;
        Object obj = cells.get(getCellsHashKey(row, col));
        if (obj == null) {
            if (create) {
                cell = CellImpl.create(null, StyleImpl.createEmpty());
                cell = setCell(row, col, cellPool.getCell(cell), false);
View Full Code Here


    public Cell getDefaultCell() {
        return defaultCell;
    }

    public Cell setCell(int row, int col, Object value) {
        Cell cell = null;
        if (value == null) {
            cell = getCell(row, col, false);
            if (cell != defaultCell) {
                cell = cellPool.getCell(cell, (Object) null);
                cell = setCell(row, col, cell, true);
View Full Code Here

    public boolean isMerged(int row, int col) {
        return (!getMergeBlock(row, col).isEmpty());
    }

    public MergeBlock getMergeBlock(int row, int col) {
        Cell cell = getCell(row, col, false);
        if (cell != defaultCell && cell.isMerged()) {
            return cell.getMergeBlock();
        }

        return MergeBlockImpl.createEmpty();
    }
View Full Code Here

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

    Cell cell = (Cell) obj;
    if ( !super.equals( cell ) )
    {
      return false;
    }

    if ( value == null )
    {
      if ( cell.getValue( ) != null )
      {
        return false;
      }
    }
    else if ( !value.equals( cell.getValue( ) ) )
    {
      return false;
    }

    if ( formula == null )
    {
      if ( cell.getFormula( ) != null )
      {
        return false;
      }
    }
    else if ( !formula.equals( cell.getFormula( ) ) )
    {
      return false;
    }

    if ( !merge.equals( cell.getMergeBlock( ) ) )
    {
      return false;
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.uguess.birt.report.engine.spreadsheet.model.Cell

Copyright © 2018 www.massapicom. 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.