jxl
Class CellReferenceHelper
java.lang.Object
|
+--jxl.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
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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
CellReferenceHelper
public CellReferenceHelper()
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 columnrow
- the rowbuf
- the string buffer to append
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:
-
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