All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.table.ICell Maven / Gradle / Ivy

package org.openl.rules.table;

import java.util.Date;

import org.openl.rules.lang.xls.types.CellMetaInfo;
import org.openl.rules.table.ui.ICellFont;
import org.openl.rules.table.ui.ICellStyle;
import org.openl.rules.table.xls.IncorrectFormulaException;
import org.openl.util.formatters.IFormatter;

public interface ICell {

    String ERROR_VALUE = "#ERROR";

    int getRow();

    int getColumn();

    /**
     * @return Absolute row index inside the sheet.
     */
    int getAbsoluteRow();

    /**
     * @return Absolute column index inside the sheet.
     */
    int getAbsoluteColumn();
    
    /**
     * @return Absolute region of cell inside the sheet.
     */
    IGridRegion getAbsoluteRegion();

    int getWidth();

    int getHeight();

    ICellStyle getStyle();
    
    /**
     * @throws IncorrectFormulaException  
Be careful!! When trying to evaluate * an incorrect formula, throws exception. */ Object getObjectValue(); String getStringValue(); String getFormattedValue(); // TODO: move this method to ICellStyle ICellFont getFont(); /** * * @return grid region, if cell belongs to any merged region. In other cases null. */ IGridRegion getRegion(); String getFormula(); int getType(); String getUri(); // used for optimized access /** * @return true if the cell has ability to provide fast access to the native value(cached) * If cell has not such an ability, the native methods should not be used */ boolean hasNativeType(); /** * @return IGrid.CELL_TYPE... constant, in case of CELL_TYPE_FORMULA returns cached value type */ int getNativeType(); double getNativeNumber(); boolean getNativeBoolean(); Date getNativeDate(); CellMetaInfo getMetaInfo(); void setMetaInfo(CellMetaInfo metaInfo); ICellComment getComment(); IFormatter getDataFormatter(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy