|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.table.TableUtil
public class TableUtil
Helper methods for tables processing.
Constructor Summary | |
---|---|
TableUtil()
|
Method Summary | |
---|---|
static int |
getColumnIndex(java.lang.String cellName)
Extracts and returns numerical column index from cell's name. |
static int |
getRowIndex(java.lang.String cellName)
Extracts and returns numerical row index from cell's name. |
static int |
toIndex(java.lang.String letters)
Converts letters to numerical zero-based index value, for example column index 'A' to 0, 'G' to 6, 'AB' to 27 and etc. |
static java.lang.String |
toLetters(int index)
Converts numerical zero-based index value to letters, for example column index 0 to 'A', 6 to 'G', 27 to 'AB' and etc. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableUtil()
Method Detail |
---|
public static java.lang.String toLetters(int index)
index
- zero-based numerical index value.
public static int getColumnIndex(java.lang.String cellName)
cellName
- cell name to extract column index from.
public static int getRowIndex(java.lang.String cellName)
cellName
- cell name to extract row index from.
public static int toIndex(java.lang.String letters)
letters
- letters to convert.
java.lang.IllegalArgumentException
- if letters can't be converted to index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |