|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.web.WorkBookUpdateBean
public class WorkBookUpdateBean
WorkbookUpdateBean is a bean that manipulates a WorkBook using a command pattern. This class is meant to be called through the executeCommand in a static manner. A map of parameters should be passed in to the executeCommand method. These parameters can include a number of different values, but at a minimum, two key/value pairs need to exist within that map, command, a string which represents the action to be performed upon the workbook, and book, which should be valid WorkBook. All commands map directly to the method names in this class. TODO: package sample code files for this class
WorkBook,
WorkBookHandle,
http://www.sheetster.com| Constructor Summary | |
|---|---|
WorkBookUpdateBean()
|
|
| Method Summary | |
|---|---|
static String |
addcell(Map parameters)
Inserts a row into the worksheet |
static String |
deletecol(Map parameters)
delete a column from the workbook, shifting all subsequent columns back one. |
static String |
deleterow(Map parameters)
Delete a row from the worksheet |
static String |
deletesheet(Map parameters)
Delete a sheet from the workbook |
static Object |
executeCommand(Map parameters)
A basic reflection call to the method passed in as command. |
static String |
formatcells(Map parameters)
Formats the cells passed in with the formatting patterns passed in. |
static CellHandle[] |
getcellhandles(Map parameters)
Primarily set up for testing purposes, but I figure there's got to be some sort of useful thing to do with this. |
static String |
getformulafromcell(Map parameters)
Get an XMLResponse string representing a formula for a cell |
static Map |
getParamHashFromString(String requestURI)
|
static String |
insertcol(Map parameters)
Insert a column into the workbook, shifting all subsequent columns over one. |
static String |
insertrow(Map parameters)
Inserts a row into the worksheet |
static String |
insertsheet(Map parameters)
Insert a new worksheet into the workbook |
static String |
linkupdate(Map parameters)
Set a link on the cells passed in. |
static String |
resizecol(Map parameters)
Resize the column of the workbook to the parameters passed in. |
static String |
resizerow(Map parameters)
Resize the row of the workbook to the parameters passed in. |
static String |
returnXMLResponse(String value)
Return an xml response string with the value passed in. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkBookUpdateBean()
| Method Detail |
|---|
public static Map getParamHashFromString(String requestURI)
public static Object executeCommand(Map parameters)
throws Exception
parameters - = correct arguments for the method, including the command and workbook
Exceptionpublic static String addcell(Map parameters)
parameters - ROW_NUMBER and SHEET_NAME
public static String resizerow(Map parameters)
parameters: - a map containing the keys rownum, newsize, and sheename, and a key book
public static String insertrow(Map parameters)
parameters - ROW_NUMBER and SHEET_NAME
public static String deleterow(Map parameters)
parameters - ROW_NUMBER, SHEET_NAME
public static String resizecol(Map parameters)
parameters: - a map containing the keys colnum, newsize, and sheetname, and a key book
public static String insertsheet(Map parameters)
parameters - a map containing the keys sheetpos and sheetname, and a key book
public static String insertcol(Map parameters)
parameters - a map containing the keys COL_NUMBER and SHEET_NAME
public static String deletecol(Map parameters)
parameters - a map containing the keys COL_NUMBER and SHEET_NAME
public static String formatcells(Map parameters)
parameters - CELL_RANGE, and any formatting strings/keys
public static String deletesheet(Map parameters)
parameters - a map containing the key deletesheet, and a key book
public static String getformulafromcell(Map parameters)
parameters - containing the keys CELL_ADDR
public static String linkupdate(Map parameters)
parameters - LINK, CELL_ADDRESS
public static CellHandle[] getcellhandles(Map parameters)
public static String returnXMLResponse(String value)
value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||