|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zss.ui.impl.Utils
public class Utils
Internal Use Only. Utility class for Spreadsheet.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static void |
autoFilter(Worksheet sheet,
Rect selection)
|
static int |
calcDefaultCharWidth(java.awt.Font font)
|
static void |
copyCell(org.zkoss.poi.ss.usermodel.Cell cell,
Worksheet dstSheet,
int dstRow,
int dstCol)
|
static void |
copyCell(Worksheet srcSheet,
int srcRow,
int srcCol,
Worksheet dstSheet,
int dstRow,
int dstCol)
|
static int |
defaultColumnWidthToPx(int columnWidth,
int charWidth)
Convert default columns character width to pixel |
static void |
deleteColumns(Worksheet sheet,
int startCol,
int endCol)
|
static void |
deleteRows(Worksheet sheet,
int startRow,
int endRow)
|
static java.lang.String |
escapeCellText(java.lang.String text,
boolean wrap,
boolean multiline)
Escape character that has special meaning in HTML such as <, &, etc.. |
static int |
fileChar256ToPx(int char256,
int charWidth)
convert file 1/256 character width to pixel |
static void |
fillCells(Worksheet sheet,
int srctRow,
int srclCol,
int srcbRow,
int srcrCol,
int dsttRow,
int dstlCol,
int dstbRow,
int dstrCol)
|
static void |
fillColumns(Worksheet sheet,
int srclCol,
int srcrCol,
int dstlCol,
int dstrCol)
|
static void |
fillRows(Worksheet sheet,
int srctRow,
int srcbRow,
int dsttRow,
int dstbRow)
|
static java.lang.String |
formatHyperlink(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Hyperlink hlink,
java.lang.String cellText,
boolean wrap)
Format and escape a Hyperlink to HTML <a> string. |
static java.lang.String |
formatRichTextString(Worksheet sheet,
org.zkoss.poi.ss.usermodel.RichTextString rstr,
boolean wrap)
Format and escape a RichTextString to HTML <span> string. |
static org.zkoss.poi.ss.usermodel.Cell |
getCell(Worksheet sheet,
int rowIndex,
int colIndex)
Return the Cell per the given sheet, row index, and column index; return null if cell not exists. |
static java.lang.String |
getCellText(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Cell cell)
|
static java.lang.String |
getColumnTitle(Worksheet sheet,
int col)
|
static int |
getColumnWidthInPx(Worksheet sheet,
int col)
|
static int |
getDefaultCharWidth(Worksheet sheet)
|
static int |
getDefaultColumnWidthInPx(Worksheet sheet)
|
static java.lang.String |
getEditText(org.zkoss.poi.ss.usermodel.Cell cell)
Returns the text for editing on the specified cell. |
static FormatText |
getFormatText(org.zkoss.poi.ss.usermodel.Cell cell)
|
static int |
getHeightAny(Worksheet sheet,
int row)
|
static int |
getHeightInPx(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor)
|
static org.zkoss.poi.ss.usermodel.Hyperlink |
getHyperlink(org.zkoss.poi.ss.usermodel.Cell cell)
Returns the Hyperlink to be shown on the specified cell. |
static int |
getLeftFraction(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor,
int charWidth)
|
static org.zkoss.poi.ss.usermodel.Cell |
getOrCreateCell(Worksheet sheet,
int rowIndex,
int colIndex)
Return or create if not exist the Cell per the given sheet, row index, and column index. |
static org.zkoss.poi.ss.usermodel.Row |
getOrCreateRow(Worksheet sheet,
int rowIndex)
|
static Range |
getRange(Worksheet sheet,
int row,
int col)
Return a cell Range per the given sheet, row index, and column index. |
static Range |
getRange(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
Returns a area Range per the given sheet, top row index, left column index,
bottom row index, and right column index. |
static Range |
getRange(Worksheet firstSheet,
Worksheet lastSheet,
int row,
int col)
Return a 3D cell Range per the given sheet, row index, and column index. |
static Range |
getRange(Worksheet firstSheet,
Worksheet lastSheet,
int tRow,
int lCol,
int bRow,
int rCol)
Return a 3D area Range per the given sheet, top row index, left column index,
bottom row index, and right column index. |
static org.zkoss.poi.ss.usermodel.RichTextString |
getRichEditText(org.zkoss.poi.ss.usermodel.Cell cell)
Returns the RichTextString for editing on the cell. |
static int |
getRowHeightInPx(Worksheet sheet,
int row)
|
static int |
getRowHeightInPx(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Row row)
|
static java.lang.String |
getRowTitle(Worksheet sheet,
int row)
|
static Worksheet |
getSheetByRefSheet(Book book,
RefSheet refSheet)
Returns the associated model sheet( Worksheet) per the given the reference sheet(RefSheet). |
static Worksheet |
getSheetByUuid(Book book,
java.lang.String uuid)
Returns the Worksheet of the specified uuid; null if id not exists. |
static java.lang.String |
getSheetUuid(Worksheet sheet)
Returns the uuid of the specified Worksheet. |
static org.zkoss.poi.ss.usermodel.RichTextString |
getText(org.zkoss.poi.ss.usermodel.Cell cell)
Returns the RichTextString to be shown on the specified cell. |
static int |
getTopFraction(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor)
|
static int |
getWidthAny(Worksheet zkSheet,
int col,
int charWidth)
|
static int |
getWidthInPx(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor,
int charWidth)
|
static void |
insertColumns(Worksheet sheet,
int startCol,
int endCol)
|
static void |
insertRows(Worksheet sheet,
int startRow,
int endRow)
|
static boolean |
isTitleIndexMode(Spreadsheet ss)
Returns whether the Spreadsheet title is in index mode |
static void |
mergeCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol,
boolean across)
|
static void |
moveCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol,
int nRow,
int nCol)
|
static void |
moveColumns(Worksheet sheet,
int lCol,
int rCol,
int nCol)
|
static void |
moveRows(Worksheet sheet,
int tRow,
int bRow,
int nRow)
|
static java.lang.String |
nextUpdateId()
|
static Range |
pasteSpecial(Worksheet srcSheet,
Rect srcRect,
Worksheet dstSheet,
int tRow,
int lCol,
int bRow,
int rCol,
int pasteType,
int pasteOp,
boolean skipBlanks,
boolean transpose)
Pastes to a destination from source Rect |
static int |
pxToFileChar256(int px,
int charWidth)
convert pixel to file 1/256 character width |
static int |
pxToPoint(int px)
convert pixel to point |
static double |
pxToScreenChar1(int px,
int charWidth)
Convert pixel to character width (for application) |
static int |
pxToScreenChar256(int px,
int charWidth)
Convert pixel to 1/256 character width |
static int |
pxToTwip(int px)
convert pixel to twip (1/20 point) |
static int |
screenChar1ToPx(double w,
int charWidth)
convert character width to pixel |
static int |
screenChar256ToPx(int char256,
int charWidth)
convert 1/256 character width to pixel |
static void |
setAlignment(Worksheet sheet,
Rect rect,
short alignment)
Set alignment in selection range |
static void |
setBackgroundColor(Worksheet sheet,
Rect rect,
java.lang.String color)
Set background color in selection range. |
static void |
setBorder(Worksheet sheet,
Rect rect,
short borderType,
org.zkoss.poi.ss.usermodel.BorderStyle lineStyle,
java.lang.String color)
Sets the border in selection range |
static void |
setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
boolean value)
|
static void |
setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
java.util.Date value)
|
static void |
setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
double value)
|
static void |
setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
int value)
|
static void |
setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
java.lang.String value)
|
static void |
setColumnWidth(Worksheet sheet,
int col,
int px)
Sets column Width in pixel. |
static void |
setDataFormat(Worksheet sheet,
Rect rect,
java.lang.String format)
Set format in selection range |
static void |
setEditText(org.zkoss.poi.ss.usermodel.Cell cell,
java.lang.String txt)
Sets the user input text into the cell. |
static void |
setEditText(Worksheet sheet,
int row,
int col,
java.lang.String value)
Set user input text into the cell at specified sheet, row index, and column index. |
static boolean |
setEditTextWithValidation(Spreadsheet ss,
Worksheet sheet,
int row,
int col,
java.lang.String txt,
org.zkoss.zk.ui.event.EventListener callback)
|
static void |
setFont(Worksheet sheet,
Rect rect,
short boldWeight,
org.zkoss.poi.ss.usermodel.Color color,
short fontHeight,
java.lang.String fontName,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
Set font in selection range. |
static void |
setFontBold(Worksheet sheet,
Rect rect,
boolean isBold)
Set the font bold. |
static void |
setFontColor(Worksheet sheet,
Rect rect,
java.lang.String color)
Sets font color in selection range |
static void |
setFontFamily(Worksheet sheet,
Rect rect,
java.lang.String fontName)
Set font family in selection range Copy the original cell style, font style, and set new font family |
static void |
setFontHeight(Worksheet sheet,
Rect rect,
short fontHeight)
Set the font height in unit's of 1/20th of a point Copy the original cell style, font style, and set new font family |
static void |
setFontItalic(Worksheet sheet,
Rect rect,
boolean isItalic)
Set the font Italic. |
static void |
setFontStrikeout(Worksheet sheet,
Rect rect,
boolean isStrikeout)
Set the font strikeout. |
static void |
setFontUnderline(Worksheet sheet,
Rect rect,
byte underline)
Set the font underline. |
static void |
setHyperlink(Worksheet sheet,
int rowIndex,
int colIndex,
int linkType,
java.lang.String address,
java.lang.String display)
Set hyperlink in cell |
static void |
setLocked(Worksheet sheet,
Rect rect,
boolean locked)
Sets cell locked |
static void |
setRichEditText(org.zkoss.poi.ss.usermodel.Cell cell,
org.zkoss.poi.ss.usermodel.RichTextString value)
Sets the user input RichTextString into the cell. |
static void |
setRowHeight(Worksheet sheet,
int row,
int px)
Sets Row Height in pixel. |
static void |
setWrapText(Worksheet sheet,
Rect rect,
boolean wrapped)
Set wrap text in selection range |
static void |
sort(Worksheet sheet,
Rect selection,
int[] index,
boolean[] order,
int[] dataOption,
boolean header,
boolean matchCase,
boolean sortByRows)
Sort in selection range |
static int |
twipToPx(int twip)
convert twip (1/20 point) to pixel |
static void |
unmergeCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
|
static void |
visitCells(Worksheet sheet,
Rect rect,
CellVisitor vistor)
Visit each cell in the Rect |
static void |
visitCells(Worksheet sheet,
Rect rect,
CellVisitor vistor,
CellFilter... filters)
|
static void |
visitSheets(Book book,
SheetVisitor visitor)
Visit each worksheet in the Book. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static void autoFilter(Worksheet sheet,
Rect selection)
public static void sort(Worksheet sheet,
Rect selection,
int[] index,
boolean[] order,
int[] dataOption,
boolean header,
boolean matchCase,
boolean sortByRows)
sheet - the sheet to sortselection - sort rangeindex - keys for sorting
default use the first index in selection
order - order for sorting, true to do descending sort; false to do ascending sort
default ascending sort
header - whether sort range includes headermatchCase - true to match the string cases; false to ignore string casessortByRows - false indicate sort by column (sort from top to bottom); true indicate sort by row (sort from left to right)
public static Range pasteSpecial(Worksheet srcSheet,
Rect srcRect,
Worksheet dstSheet,
int tRow,
int lCol,
int bRow,
int rCol,
int pasteType,
int pasteOp,
boolean skipBlanks,
boolean transpose)
Rect
srcSheet - the source sheetsrcRect - paste source rangedstSheet - paste to the sheettRow - destination top row indexlCol - destination left column indexbRow - destination bottom row indexrCol - destination right column indexpasteType - the part of the range to be pastedpasteOp - the paste operationskipBlanks - true to not have blank cells in the ranage on the Clipboard pasted into this range; default falsetranspose - true to transpose rows and columns when pasting to this range; default false
public static void setHyperlink(Worksheet sheet,
int rowIndex,
int colIndex,
int linkType,
java.lang.String address,
java.lang.String display)
sheet - rowIndex - colIndex - linkType - address - display -
public static void setFont(Worksheet sheet,
Rect rect,
short boldWeight,
org.zkoss.poi.ss.usermodel.Color color,
short fontHeight,
java.lang.String fontName,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
Copy original cell style, and set new font.
sheet - rect - selection rangeboldWeight - color - color to usefontHeight - the font height in unit's of 1/20th of a pointfontName - the name for the fontitalic - use italics or notstrikeout - strikeout or nottypeOffset - offset type to useunderline - underline type
public static void setFontColor(Worksheet sheet,
Rect rect,
java.lang.String color)
sheet - rect - color - color (in string as #RRGGBB)
public static void setFontFamily(Worksheet sheet,
Rect rect,
java.lang.String fontName)
Copy the original cell style, font style, and set new font family
sheet - rect - selection rangefontName - font name
public static void setFontHeight(Worksheet sheet,
Rect rect,
short fontHeight)
Copy the original cell style, font style, and set new font family
sheet - rect - selection rangefontHeight - font height in 1/20ths of a point
public static void setFontBold(Worksheet sheet,
Rect rect,
boolean isBold)
Copy the original cell style, font style, and set bold.
sheet - rect - isBold -
public static void setFontItalic(Worksheet sheet,
Rect rect,
boolean isItalic)
Copy the original cell style, font style, and set italic.
sheet - rect - isItalic -
public static void setFontUnderline(Worksheet sheet,
Rect rect,
byte underline)
Copy the original cell style, font style, and set underline.
sheet - rect - underline -
public static void setFontStrikeout(Worksheet sheet,
Rect rect,
boolean isStrikeout)
Copy the original cell style, font style, and set strikeout.
sheet - rect - isStrikeout -
public static void setAlignment(Worksheet sheet,
Rect rect,
short alignment)
sheet - rect - alignment -
public static void setWrapText(Worksheet sheet,
Rect rect,
boolean wrapped)
sheet - rect - wrapped -
public static void setLocked(Worksheet sheet,
Rect rect,
boolean locked)
sheet - rect - locked -
public static void setDataFormat(Worksheet sheet,
Rect rect,
java.lang.String format)
sheet - rect - format -
public static void visitCells(Worksheet sheet,
Rect rect,
CellVisitor vistor)
Rect
sheet - rect - vistor -
public static void visitSheets(Book book,
SheetVisitor visitor)
Book.
book - visitor -
public static void visitCells(Worksheet sheet,
Rect rect,
CellVisitor vistor,
CellFilter... filters)
sheet - rect - vistor - filters -
public static void setBackgroundColor(Worksheet sheet,
Rect rect,
java.lang.String color)
Copy original cell style, and set new background color
sheet - sheet to set background colorrect - selection rangecolor - color to use
public static void setBorder(Worksheet sheet,
Rect rect,
short borderType,
org.zkoss.poi.ss.usermodel.BorderStyle lineStyle,
java.lang.String color)
sheet - sheet to set borderrect - selection rangeborderType - border typelineStyle - border line stylecolor - border color
public static java.lang.String formatHyperlink(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Hyperlink hlink,
java.lang.String cellText,
boolean wrap)
Hyperlink to HTML <a> string.
sheet - the sheet with the RichTextStringhlink - the Hyperlink
public static java.lang.String formatRichTextString(Worksheet sheet,
org.zkoss.poi.ss.usermodel.RichTextString rstr,
boolean wrap)
RichTextString to HTML <span> string.
sheet - the sheet with the RichTextStringrstr - the RichTextStringwrap - whether wrap the string if see "\n".
public static java.lang.String escapeCellText(java.lang.String text,
boolean wrap,
boolean multiline)
text - the textwrap - whether to allow wrapmultiline - whether to show multiple line
public static java.lang.String nextUpdateId()
public static org.zkoss.poi.ss.usermodel.Cell getOrCreateCell(Worksheet sheet,
int rowIndex,
int colIndex)
Cell per the given sheet, row index, and column index.
sheet - the sheet to get cell fromrowIndex - the row index of the cellcolIndex - the column index of the cell
Cell per the given sheet, row index, and column index.
public static org.zkoss.poi.ss.usermodel.Row getOrCreateRow(Worksheet sheet,
int rowIndex)
public static org.zkoss.poi.ss.usermodel.Cell getCell(Worksheet sheet,
int rowIndex,
int colIndex)
Cell per the given sheet, row index, and column index; return null if cell not exists.
sheet - the sheet to get cell fromrowIndex - the row index of the cellcolIndex - the column index of the cell
Cell per the given sheet, row index, and column index; return null if cell not exists.
public static void copyCell(Worksheet srcSheet,
int srcRow,
int srcCol,
Worksheet dstSheet,
int dstRow,
int dstCol)
public static void copyCell(org.zkoss.poi.ss.usermodel.Cell cell,
Worksheet dstSheet,
int dstRow,
int dstCol)
public static void insertRows(Worksheet sheet,
int startRow,
int endRow)
public static void deleteRows(Worksheet sheet,
int startRow,
int endRow)
public static void insertColumns(Worksheet sheet,
int startCol,
int endCol)
public static void deleteColumns(Worksheet sheet,
int startCol,
int endCol)
public static void setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
java.lang.String value)
public static void setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
double value)
public static void setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
boolean value)
public static void setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
java.util.Date value)
public static void setCellValue(Worksheet sheet,
int rowIndex,
int colIndex,
int value)
public static Range getRange(Worksheet sheet,
int row,
int col)
Range per the given sheet, row index, and column index.
sheet - the sheet to get the Range from.row - the row index of the cellcol - the column index of the cell
Range per the given sheet, row index, and column index.
public static Range getRange(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
Range per the given sheet, top row index, left column index,
bottom row index, and right column index.
sheet - the sheet to get the Range from.tRow - the top row index of the arealCol - the left column index of the areabRow - the bottom row index of the arearCol - the right column index of the area
Range per the given sheet, top row index, left column index,
bottom row index, and right column index.
public static Range getRange(Worksheet firstSheet,
Worksheet lastSheet,
int row,
int col)
Range per the given sheet, row index, and column index.
firstSheet - the sheet to get the Range from.lastSheet - the sheet to get the Range from.row - the row index of the cellcol - the column index of the cell
Range per the given sheet, row index, and column index.
public static Range getRange(Worksheet firstSheet,
Worksheet lastSheet,
int tRow,
int lCol,
int bRow,
int rCol)
Range per the given sheet, top row index, left column index,
bottom row index, and right column index.
firstSheet - the sheet to get the Range from.lastSheet - the sheet to get the Range from.tRow - the top row index of the arealCol - the left column index of the areabRow - the bottom row index of the arearCol - the right column index of the area
Range per the given sheet, top row index, left column index,
bottom row index, and right column index.public static java.lang.String getSheetUuid(Worksheet sheet)
Worksheet.
to identify a Worksheet)
sheet - the sheet
Worksheet.
public static Worksheet getSheetByUuid(Book book,
java.lang.String uuid)
Worksheet of the specified uuid; null if id not exists.
book - the book the contains the Worksheetuuid - the sheet uuid
Worksheet of the specified uuid; null if id not exists.public static boolean isTitleIndexMode(Spreadsheet ss)
Spreadsheet title is in index mode
ss - the Spreadsheet
Spreadsheet title is in index mode
public static Worksheet getSheetByRefSheet(Book book,
RefSheet refSheet)
Worksheet) per the given the reference sheet(RefSheet).
book - the model bookrefSheet - the reference sheet
Worksheet) per the given the reference sheet(RefSheet).public static org.zkoss.poi.ss.usermodel.Hyperlink getHyperlink(org.zkoss.poi.ss.usermodel.Cell cell)
Hyperlink to be shown on the specified cell.
cell - the cell
Hyperlink to be shown on the specified cell.public static org.zkoss.poi.ss.usermodel.RichTextString getText(org.zkoss.poi.ss.usermodel.Cell cell)
RichTextString to be shown on the specified cell.
cell - the cell
RichTextString to be shown on the specified cell.public static FormatText getFormatText(org.zkoss.poi.ss.usermodel.Cell cell)
public static java.lang.String getCellText(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Cell cell)
public static java.lang.String getEditText(org.zkoss.poi.ss.usermodel.Cell cell)
cell - the cell
public static void setEditText(Worksheet sheet,
int row,
int col,
java.lang.String value)
sheet - the sheet where the cell residesrow - the row indexcol - the column indexvalue - the user input text
public static void setEditText(org.zkoss.poi.ss.usermodel.Cell cell,
java.lang.String txt)
cell - the cell.txt - the user input text.public static org.zkoss.poi.ss.usermodel.RichTextString getRichEditText(org.zkoss.poi.ss.usermodel.Cell cell)
RichTextString for editing on the cell.
cell - the cell
RichTextString for editing on the cell.
public static void setRichEditText(org.zkoss.poi.ss.usermodel.Cell cell,
org.zkoss.poi.ss.usermodel.RichTextString value)
RichTextString into the cell.
cell - the cellvalue - the user input RichTextString to be set into the cell.
public static void mergeCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol,
boolean across)
public static void unmergeCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol)
public static int getWidthInPx(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor,
int charWidth)
public static int getHeightInPx(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor)
public static int getTopFraction(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor)
public static int getLeftFraction(Worksheet zkSheet,
org.zkoss.poi.ss.usermodel.ClientAnchor anchor,
int charWidth)
public static int getColumnWidthInPx(Worksheet sheet,
int col)
public static int getRowHeightInPx(Worksheet sheet,
int row)
public static int getRowHeightInPx(Worksheet sheet,
org.zkoss.poi.ss.usermodel.Row row)
public static int getDefaultColumnWidthInPx(Worksheet sheet)
public static int getDefaultCharWidth(Worksheet sheet)
public static int getWidthAny(Worksheet zkSheet,
int col,
int charWidth)
public static int getHeightAny(Worksheet sheet,
int row)
public static int calcDefaultCharWidth(java.awt.Font font)
public static int pxToPoint(int px)
public static int pxToTwip(int px)
public static int twipToPx(int twip)
public static int fileChar256ToPx(int char256,
int charWidth)
public static int pxToFileChar256(int px,
int charWidth)
public static int screenChar256ToPx(int char256,
int charWidth)
public static int pxToScreenChar256(int px,
int charWidth)
public static int screenChar1ToPx(double w,
int charWidth)
public static double pxToScreenChar1(int px,
int charWidth)
public static int defaultColumnWidthToPx(int columnWidth,
int charWidth)
public static java.lang.String getColumnTitle(Worksheet sheet,
int col)
public static java.lang.String getRowTitle(Worksheet sheet,
int row)
public static void setColumnWidth(Worksheet sheet,
int col,
int px)
sheet - col - px - column width in pixel
public static void setRowHeight(Worksheet sheet,
int row,
int px)
sheet - row - px - row height in pixel
public static void moveRows(Worksheet sheet,
int tRow,
int bRow,
int nRow)
public static void moveColumns(Worksheet sheet,
int lCol,
int rCol,
int nCol)
public static void moveCells(Worksheet sheet,
int tRow,
int lCol,
int bRow,
int rCol,
int nRow,
int nCol)
public static void fillRows(Worksheet sheet,
int srctRow,
int srcbRow,
int dsttRow,
int dstbRow)
public static void fillColumns(Worksheet sheet,
int srclCol,
int srcrCol,
int dstlCol,
int dstrCol)
public static void fillCells(Worksheet sheet,
int srctRow,
int srclCol,
int srcbRow,
int srcrCol,
int dsttRow,
int dstlCol,
int dstbRow,
int dstrCol)
public static boolean setEditTextWithValidation(Spreadsheet ss,
Worksheet sheet,
int row,
int col,
java.lang.String txt,
org.zkoss.zk.ui.event.EventListener callback)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||