jxl
Class CellReferenceHelper

java.lang.Object
  extended byjxl.CellReferenceHelper

public class CellReferenceHelper
extends java.lang.Object

Exposes some cell reference helper methods to the public interface. This class merely delegates to the internally used reference helper


Constructor Summary
CellReferenceHelper()
           
 
Method Summary
static java.lang.String getCellReference(int column, int row)
          Gets the cell reference for the specified column and row
static void getCellReference(int column, int row, java.lang.StringBuffer buf)
          Appends the cell reference for the column and row passed in to the string buffer
static int getColumn(java.lang.String s)
          Gets the columnn number of the string cell reference
static int getRow(java.lang.String s)
          Gets the row number of the cell reference
static boolean isColumnRelative(java.lang.String s)
          Sees if the column component is relative or not
static boolean isRowRelative(java.lang.String s)
          Sees if the row component is relative or not
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellReferenceHelper

public CellReferenceHelper()
Method Detail

getCellReference

public static java.lang.String getCellReference(int column,
                                                int row)
Gets the cell reference for the specified column and row

Parameters:
column -
row -
Returns:

getCellReference

public static void getCellReference(int column,
                                    int row,
                                    java.lang.StringBuffer buf)
Appends the cell reference for the column and row passed in to the string buffer

Parameters:
column - the column
row - the row
buf - the string buffer to append

getColumn

public static int getColumn(java.lang.String s)
Gets the columnn number of the string cell reference

Parameters:
s - the string to parse
Returns:
the column portion of the cell reference

getRow

public static int getRow(java.lang.String s)
Gets the row number of the cell reference


isColumnRelative

public static boolean isColumnRelative(java.lang.String s)
Sees if the column component is relative or not

Parameters:
s -
Returns:
TRUE if the column is relative, FALSE otherwise

isRowRelative

public static boolean isRowRelative(java.lang.String s)
Sees if the row component is relative or not

Parameters:
s -
Returns:
TRUE if the row is relative, FALSE otherwise