Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class LightCellsSettings

java.lang.Object
  extended by com.aspose.cells.LightCellsSettings

public class LightCellsSettings
extends java.lang.Object

This is a bean which client applications may use to set various advanced LightCells properties. Use of this bean is not mandatory, and its absence will merely result in workbooks being processed with the default settings. For default settings:


Field Summary
static int INIT_FOR_FORMULA_TEXT
          when initialize LightCells, load data that needed for processing formula text when process cells.
 
Constructor Summary
LightCellsSettings(int flag)
          Constructs new settings for initializing LightCells.
 
Method Summary
 boolean isInitForFormulaText()
          check whether this LightCells is initialized with INIT_FOR_FORMULA_TEXT flag.
 boolean isReadFormulaText()
          whether parse and return cell's formula text when parsing cell
 void setReadFormulaText(boolean flag)
          set whether parse and return cell's formula text when parsing cell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_FOR_FORMULA_TEXT

public static final int INIT_FOR_FORMULA_TEXT
when initialize LightCells, load data that needed for processing formula text when process cells. If not set this flag, formula text can't be recognized when processing formula and isReadFormulaText() always be false.

See Also:
Constant Field Values
Constructor Detail

LightCellsSettings

public LightCellsSettings(int flag)
Constructs new settings for initializing LightCells.

Parameters:
flag - flag for settings. For available flags please refer to constants with header INIT_ defined in LightCellsSettings. The flag may be combined with any of other flags using the OR operator.
Method Detail

isReadFormulaText

public boolean isReadFormulaText()
whether parse and return cell's formula text when parsing cell

Returns:
true if LightCells is initialized with INIT_FOR_FORMULA_TEXT flag and user demands to get cell's formula text when processing cells.

setReadFormulaText

public void setReadFormulaText(boolean flag)
set whether parse and return cell's formula text when parsing cell

Parameters:
flag - true to demand fetching cell's formula text when processing cell. If set true but LightCells is not initialized with INIT_FOR_FORMULA_TEXT flag, will cause UnsupportedOperationException

isInitForFormulaText

public boolean isInitForFormulaText()
check whether this LightCells is initialized with INIT_FOR_FORMULA_TEXT flag.

Returns:
true this LightCells is initialized with INIT_FOR_FORMULA_TEXT flag, thus user can demands LigthCells to fetch cell's formula text or not when processing cells. If false, then LightCells will never fetch cell's formula text and UnsupportedOperationException will be thrown when user demands to read formula text by setReadFormulaText(boolean)