Package org.zkoss.zss.engine.xel

Examples of org.zkoss.zss.engine.xel.SSErrorXelException


  public boolean isRightAbsolute() {
    throw new SSErrorXelException(SSError.REF);
  }

  public boolean isSheetAbsolute() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here


  public boolean isSheetAbsolute() {
    throw new SSErrorXelException(SSError.REF);
  }

  public boolean isTopAbsolute() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public boolean isTopAbsolute() {
    throw new SSErrorXelException(SSError.REF);
  }

  public void merge() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public void merge() {
    throw new SSErrorXelException(SSError.REF);
  }

  public void unmerge() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

    int fromIndex = 1;
    if(args.length==3){
      fromIndex = CommonFns.toInt(args[2]);
    }
    if(fromIndex <= 0 || fromIndex > text.length()) {
      throw new SSErrorXelException(SSError.VALUE);
    } else {
      int result = text.indexOf(findText, fromIndex-1);
      if(result==-1) {
        throw new SSErrorXelException(SSError.VALUE);
      } else {
        result = result + 1;
        return new Integer(result);
      }
    }
View Full Code Here

   */
  public static Object mathAtan2(Object[] args, XelContext ctx) {
    final double x = CommonFns.toNumber(args[0]).doubleValue();
    final double y = CommonFns.toNumber(args[1]).doubleValue();
    if (x == 0 && y == 0) {
      throw new SSErrorXelException(SSError.DIV0);
    }
    if (x == 0) {
      return UtilFns.validateNumber(y > 0 ? (Math.PI / 2) : (-Math.PI /2));
    } else {
      return UtilFns.validateNumber(Math.atan(y / x));
View Full Code Here

  public static Object mathCeiling(Object[] args, XelContext ctx) {
    final double num = CommonFns.toNumber(args[0]).doubleValue();
    final double sig = CommonFns.toNumber(args[1]).doubleValue();
    final double x = num /sig;
    if (x < 0d) {
      throw new SSErrorXelException(SSError.NUM);
    }
    return new Double(Math.ceil(x) * sig);
  }
 
View Full Code Here

  public static Object mathCombin(Object[] args, XelContext ctx) {
    final int number = CommonFns.toNumber(args[0]).intValue();
    int chosen = CommonFns.toNumber(args[1]).intValue();
    int skip = number - chosen;
    if (skip < 0) {
      throw new SSErrorXelException(SSError.NUM);
    }
    int total = 1;
    if (skip < chosen) { // exchange to decrease calculation
      skip ^=  chosen;
      chosen ^= skip;
View Full Code Here

   * @return the factorial of a number
   */
  public static Object mathFact(Object[] args, XelContext ctx){
    final int n = CommonFns.toNumber(args[0]).intValue();
    if(n < 0)
      throw new SSErrorXelException(SSError.NUM);
    else{
      return new Integer(factorial(n));
    }
  }
View Full Code Here

   * @return the double factorial of a number
   */
  public static Object mathFactdouble(Object[] args, XelContext ctx){
    final int n = CommonFns.toNumber(args[0]).intValue();
    if(n < 0)
      throw new SSErrorXelException(SSError.NUM);
    else{
      return new Integer(doubleFactorial(n));
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.xel.SSErrorXelException

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.