JComponentPack 1.5.0

com.zfqjava.formula
Class CellFormulaFactory

java.lang.Object
  extended by com.zfqjava.formula.FormulaFactory
      extended by com.zfqjava.formula.CellFormulaFactory

public class CellFormulaFactory
extends FormulaFactory


Constructor Summary
CellFormulaFactory()
           
 
Method Summary
 void addFunction(Function function)
          Adds a function.
 Formula createFormula(String s)
          Creates a formula object for the specified string.
 Formula createFormula(String s, FormulaContext context)
          Creates a formula object for the specified string with the specified FormulaContext.
 Formula createFormula(String s, FormulaContext context, boolean allowErrorFormula)
          Creates a formula object for the specified string with the specified FormulaContext.
 FormulaContext createFormulaContext()
          Creates the default FormulaContext, default return null
 String[] getAllFunctionNames()
          Returns all supported function names.
 String[] getCellFunctionNamesByType(CellFunctionType type)
          Returns all supported cell function names by the specified type.
 Function getFunction(String name)
          Returns the function for the specified name.
 CellFunctionType[] getSupportedCellFunctionTypes()
          Returns all supported cell function types.
 void removeFunction(String name)
          Removes a function.
 void setArgumentSeparatorChar(char argumentSeparatorChar)
           
 
Methods inherited from class com.zfqjava.formula.FormulaFactory
getArgumentSeparatorChar, getDefault, getDefaultArgumentSeparatorChar, getDefaultStringEscapeChar, getStringEscapeChar, setDefault, setDefaultArgumentSeparatorChar, setDefaultStringEscapeChar, setStringEscapeChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellFormulaFactory

public CellFormulaFactory()
Method Detail

createFormula

public Formula createFormula(String s)
                      throws ParseException
Description copied from class: FormulaFactory
Creates a formula object for the specified string.

Specified by:
createFormula in class FormulaFactory
Parameters:
s - the formula string
Returns:
the formula object
Throws:
ParseException

createFormula

public Formula createFormula(String s,
                             FormulaContext context)
                      throws ParseException
Description copied from class: FormulaFactory
Creates a formula object for the specified string with the specified FormulaContext.

Specified by:
createFormula in class FormulaFactory
Parameters:
s - the formula string
context - the formula context
Returns:
the formula object
Throws:
ParseException

createFormula

public Formula createFormula(String s,
                             FormulaContext context,
                             boolean allowErrorFormula)
                      throws ParseException
Description copied from class: FormulaFactory
Creates a formula object for the specified string with the specified FormulaContext.

Specified by:
createFormula in class FormulaFactory
Parameters:
s - the formula string
context - the formula context
allowErrorFormula - allow create the error formula
Returns:
the formula object
Throws:
ParseException

addFunction

public void addFunction(Function function)
Description copied from class: FormulaFactory
Adds a function.

Specified by:
addFunction in class FormulaFactory
Parameters:
function - the function

removeFunction

public void removeFunction(String name)
Description copied from class: FormulaFactory
Removes a function.

Specified by:
removeFunction in class FormulaFactory
Parameters:
name - the function name

getFunction

public Function getFunction(String name)
Description copied from class: FormulaFactory
Returns the function for the specified name.

Specified by:
getFunction in class FormulaFactory
Parameters:
name - the function name
Returns:
the function object

getAllFunctionNames

public String[] getAllFunctionNames()
Description copied from class: FormulaFactory
Returns all supported function names.

Specified by:
getAllFunctionNames in class FormulaFactory
Returns:
all supported function names

getSupportedCellFunctionTypes

public CellFunctionType[] getSupportedCellFunctionTypes()
Returns all supported cell function types.

Returns:
all supported cell function types
Since:
JDataGrid 2.0

getCellFunctionNamesByType

public String[] getCellFunctionNamesByType(CellFunctionType type)
Returns all supported cell function names by the specified type.

Parameters:
type - the specified type
Returns:
all supported cell function names
Since:
JDataGrid 2.0

setArgumentSeparatorChar

public void setArgumentSeparatorChar(char argumentSeparatorChar)
Overrides:
setArgumentSeparatorChar in class FormulaFactory

createFormulaContext

public FormulaContext createFormulaContext()
Description copied from class: FormulaFactory
Creates the default FormulaContext, default return null

Overrides:
createFormulaContext in class FormulaFactory

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.