net.sf.jett.expression
Class JettFuncs

java.lang.Object
  extended by net.sf.jett.expression.JettFuncs

public class JettFuncs
extends java.lang.Object

A JettFuncs object is an object that represents JETT utility functionality in the JEXL world.

Since:
0.4.0
Author:
Randy Gettman

Constructor Summary
JettFuncs()
           
 
Method Summary
static java.lang.String cellRef(int rowNum, int colNum)
          Takes 0-based row and column numbers (e.g.
static java.lang.String cellRef(int rowNum, int colNum, int numRows, int numCols)
          Takes 0-based row and column numbers (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettFuncs

public JettFuncs()
Method Detail

cellRef

public static java.lang.String cellRef(int rowNum,
                                       int colNum)
Takes 0-based row and column numbers (e.g. 1, 4), and generates an Excel cell reference (e.g. "D2").

Parameters:
rowNum - The 0-based row number.
colNum - The 0-based column number.
Returns:
A string representing an Excel cell reference.

cellRef

public static java.lang.String cellRef(int rowNum,
                                       int colNum,
                                       int numRows,
                                       int numCols)
Takes 0-based row and column numbers (e.g. 1, 4) and height and width parameters (e.g. 2, 2), and generates an Excel cell reference (e.g. "D2:E3").

Parameters:
rowNum - The 0-based row number.
colNum - The 0-based column number.
numRows - The number of rows in the reference.
numCols - The number of columns in the reference.
Returns:
A string representing an Excel cell reference.


Copyright © 2012-2013 Jett Team. All Rights Reserved.