|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet com.iisc.jwc.jsheet.JSClient
Field Summary | |
static int |
PROTECTION_GRANT
The grant protection bit flag. |
static int |
PROTECTION_LOCKED
The locked protection bit flag. |
static int |
PROTECTION_READ
The read protection bit flag. |
static int |
PROTECTION_SAVE
The save protection bit flag. |
static int |
PROTECTION_WRITE
The write protection bit flag. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JSClient()
Constructs a JSClient applet. |
|
JSClient(java.lang.String[] args)
Launches JSClient as an application. |
Method Summary | |
boolean |
aboutDlg()
Displays an About dialog box. |
void |
addBookListener(BookListener l)
Adds the specified book listener to receive book events. |
void |
addBookProtection(java.lang.String userOrGroup,
int permission)
Adds protection settings for the book. |
void |
addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the specified property change listener to receive property events. |
void |
addProtection(Range range,
java.lang.String userOrGroup,
int permission)
Adds protection settings to a range of cells. |
void |
addSessionListener(SessionListener l)
Adds the specified session listener to receive session events. |
void |
addSheetListener(SheetListener l)
Adds the specified sheet listener to receive sheet events. |
int |
addSheetObserver(Range range)
Adds a new sheet observer to the range and sheet specified. |
int |
addSheetObserver(Range range,
boolean cacheOnServer,
int updateInterval)
Adds a new sheet observer to the range and sheet specified. |
void |
addSheetProtection(short sheetIndex,
java.lang.String userOrGroup,
int permission)
Adds protection settings for the sheet. |
void |
broadcastMessage(java.lang.String user,
java.lang.String msg)
Broadcasts a message to other clients. |
boolean |
chartsDlg()
Displays a dialog box for listing charts. |
void |
clear(Range range)
Clears all of the data and formatting in the current selection(s). |
void |
clearData(Range range)
Clears all of the cell data in the current range. |
boolean |
clearDlg()
Displays the Clear dialog box. |
void |
clearFormat(Range range)
Clears all of the cell formatting in the current range. |
void |
clearFormula(Range range)
Clears formulas, leaving the formula results and all of the formatting intact. |
void |
closeBook()
Closes the current book. |
boolean |
closeBookChecked()
Closes the book after checking for saving changes. |
boolean |
closeBookCheckedSelectableDlg(boolean cancelInDlg)
Closes the book after checking for saving changes. |
java.lang.String |
colorToHTMLColor(java.awt.Color color)
Converts a Color value to HTML representation of the color. |
void |
connect(java.lang.String host,
java.lang.String user,
java.lang.String pwd)
Connects to the server. |
boolean |
connectDlg()
Displays a dialog box that allows the user to connect to a specific server. |
java.util.Vector |
convertDBRowSetToDBRow(JSDbRowSet dbRowSet,
int index)
Utility method to convert a DBRowSet into a vector of data objects in the row. |
void |
copy(Range range)
Puts a copy of the text and formatting contained in range on the clipboard. |
void |
copy(short sheetIdx,
Range range)
Puts a copy of the text and formatting contained in range on the clipboard. |
void |
copyDown(Range range)
Copies the data and formatting in the top row(s) of the selected range(s) of the current sheet to the bottom of the selected range(s). |
void |
copyDown(short sheetIdx,
Range range)
Copies the data and formatting in the top row(s) of the selected range(s) of the specified sheet to the bottom of the selected range(s). |
void |
copyRight(Range range)
Copies the data and formatting in the left column(s) of the selected range(s) to the right of the selected range(s). |
java.lang.Object |
createObject(java.lang.String className)
Creates a Java object based on the string passed in. |
java.lang.Object |
createObject(java.lang.String className,
java.util.Vector argTypesVector,
java.util.Vector argValuesVector)
Creates a Java object based on the string passed in. |
void |
cut(Range range)
Similiar to clear, except a copy is placed on the clipboard. |
JSDatabase |
dbConnect(java.lang.String dbName,
java.lang.String userName,
java.lang.String password)
Connects to a database on the server. |
void |
dbDisconnect(JSDatabase db)
Disconnects from this database on the server. |
void |
deleteBook(java.lang.String name)
Deletes the book on the server. |
void |
deleteChart(java.lang.String name)
Deletes the chart from the sheet. |
void |
deleteLeft(Range range)
Removes the specified range from the sheet by shifting cells left that are to the right of the range. |
void |
deleteSheet(java.lang.String name)
Deletes a sheet from the book. |
void |
deleteUp(Range range)
Removes the specified range from the sheet by shifting cells up that are below the range. |
void |
destroy()
Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. |
void |
determinant(Range range,
Cell output)
Calculates the determinant of the given range and outputs it to the given cell. |
void |
disconnect()
Disconnects from the server. |
boolean |
disconnectDlg()
Closes the book after checking for saving changes. |
void |
distribute(Range values,
Range bin)
Performs a frequency distribution on the values and bin range. |
void |
errorMsg(java.lang.String str)
Displays an error message dialog box. |
void |
errorMsgForException(com.iisc.jwc.orb.CException e)
FOR INTERNAL USE ONLY! |
void |
errorMsgForException(JSException e)
Displays an error message dialog box. |
JSEvaluateValue |
evaluate(short sheetIndex,
java.lang.String formula)
Evaluates an expression or function. |
void |
executeScript(java.lang.String text)
Executes this text as a script on the server. |
Cell |
find(java.lang.String text,
int type)
Returns the cell that contains the text specified. |
Cell |
findAgain()
Returns the cell that contains the text specified. |
boolean |
formatCellsDlg()
Displays the Format Cells dialog box. |
Cell |
getActiveCell()
Returns the current active cell. |
short |
getActiveSheet()
Returns the current active sheet. |
java.awt.Color |
getBGColor()
Returns the background color of the current sheet. |
int |
getBGColorBlue()
Returns the blue portion of the background color of the current sheet. |
int |
getBGColorGreen()
Returns the green portion of the background color of the current sheet. |
int |
getBGColorRed()
Returns the red portion of the background color of the current sheet. |
java.lang.String |
getBookName()
Returns the simple filename of the book (no path information). |
java.lang.String |
getBookPassword()
Returns the password setting, if any, for opening a book. |
int |
getCacheSize()
Returns the number of rows and columns to be cached in each direction. |
static int |
getCallTimeout()
Gets the current timeout for all of the communications with the server. |
java.lang.String |
getCellDisplay(Cell cell)
Returns the displayed text of the cell at row, column. |
java.lang.String |
getCellEntry(Cell cell)
Returns the value of the cell at row, column. |
java.lang.String |
getCellHTML(Cell cell,
int flags)
Returns the data in this cell as HTML. |
double |
getCellNumber(Cell cell)
Returns the number of the cell at row, column. |
CellStyle |
getCellStyle(Cell cell)
Returns the CellStyle object of the specified cell. |
java.lang.String |
getCellText(Cell cell)
Returns the data in this cell as a string. |
JSValue |
getCellValue(Cell cell)
Returns the data in this cell as a JSValue object. |
byte[] |
getChartAsBytes(java.lang.String name,
int imgType,
short sheetIdx)
Returns chart bytes based on the chart name. |
java.awt.Image |
getChartAsImage(java.lang.String name,
int imgType,
short sheetIdx)
Returns the chart image based on the chart name. |
java.lang.String[] |
getChartList()
Gets the list of all of the chart names that exist in the sheet. |
java.util.Vector |
getChartListAsVector()
Gets the list of all of the chart names that exist in the sheet. |
int |
getColWidth(int col)
Returns the column width, in pixels, for the specified column in the active sheet. |
int |
getColWidth(int col,
short sheetIndex)
Returns the column width, in pixels, for the specified column in the specified sheet. |
boolean |
getConnectAtStartup()
Returns whether JSClient will attempt to connect at startup. |
java.lang.String[] |
getDatabases()
Returns an array of database names to which you can connect. |
java.util.Vector |
getDatabasesAsVector()
Returns a Vector of database names to which you can connect. |
int |
getDefaultColWidth()
Returns the default column width of the current sheet. |
int |
getDefaultRowHeight()
Returns the default row height of the current sheet. |
com.iisc.jwc.orb.FileInfo[] |
getFileList(int mode,
java.lang.String wildcard,
java.lang.String path)
FOR INTERNAL USE ONLY! |
java.util.Vector |
getFileListAsVector(int mode,
java.lang.String wildcard,
java.lang.String path)
FOR INTERNAL USE ONLY! |
java.lang.String |
getFileName()
Returns the relative path and name of the book. |
Cell |
getFreezePaneCell()
Returns the upper left frozen cell in the current sheet. |
java.awt.Color |
getGridLineColor()
Returns the grid line color of the current sheet. |
boolean |
getHeadingStyleR1C1()
Returns the state of the row and column heading style. |
java.lang.String |
getHostName()
Returns the host name for this session. |
short |
getInitialSheet()
Returns the index of the initial sheet. |
int |
getInputCell(Cell cell1,
Cell cell2)
Returns the number of input cells that are set. |
Cell |
getLastCell(short sheetIndex,
int type,
int roworcol)
Returns the largest cell that is needed to contain all of the data in the sheet. |
boolean |
getLoadbalance()
Returns the status of loadbalance. |
int |
getMyPermissionOnBook()
Returns the book permission settings for the current user. |
int |
getMyPermissionOnCell(short sheetIndex,
Cell cell)
Returns the permission settings for the current user for a specified cell within a specified sheet. |
int |
getMyPermissionOnSheet(short sheetIndex)
Returns the sheet permission settings for the current user on the requested sheet. |
Range |
getNamedRange(java.lang.String name)
Returns the range for the specified named range. |
java.lang.String[] |
getNamedRanges()
Returns an array of all of the range names for the sheet. |
java.util.Vector |
getNamedRangesAsVector()
Returns a Vector of all of the range names for the sheet. |
com.iisc.jwc.orb.FileInfo[] |
getOpenBookList()
FOR INTERNAL USE ONLY! |
java.util.Vector |
getOpenBookListAsVector()
FOR INTERNAL USE ONLY! |
int |
getOpenMode()
Returns the sharing mode for a new book. |
boolean |
getOpenNewBook()
Returns the setting to create or open a new book. |
java.lang.String |
getOpenSheet()
Returns the sheet to start on when a book is opened. |
Protection[] |
getPermissionsOnBook()
Returns the array of permissions settings for the book. |
Protection[] |
getPermissionsOnSheet(short sheetIndex)
Returns the array of permission settings for the specified sheet. |
java.util.Vector |
getPermissionsVectorOnBook()
Returns the vector of permission values for the book. |
java.util.Vector |
getPermissionsVectorOnSheet(short sheetIndex)
Returns the vector of permission values for the specified sheet. |
int |
getPort()
Returns the port number on which the server is listening. |
Sheet |
getPrintableSheet()
Returns the current sheet. |
java.lang.String[] |
getRangeDisplay(Range range)
Returns the displayed text of the range. |
java.util.Vector |
getRangeDisplayAsVector(Range range)
Returns the displayed text of the range. |
java.lang.String |
getRangeHTML(Range range,
int flags)
Returns the data in this range as HTML. |
int |
getRecalcIterationNumber()
Returns the recalculation iteration number. |
boolean |
getRecalcMode()
Returns the recalculation mode. |
int |
getRecalcType()
Returns the recalculation type. |
int |
getRowHeight(int row)
Returns the row height, in pixels, for the specified row in the active sheet. |
int |
getRowHeight(int row,
short sheetIndex)
Returns the row height, in pixels, for the specified row, in the specified sheet. |
Range |
getSelection()
Returns the range of the first selection. |
Range[] |
getSelections()
Returns an array of the ranges that compose the current selection in the sheet. |
java.util.Vector |
getSelectionsAsVector()
Returns a vector of the ranges that compose the current selection in the sheet. |
int |
getSheetCount()
Returns the number of sheets in this book. |
short |
getSheetIndexForName(java.lang.String sheetname)
Returns the sheet index for a sheet name. |
java.lang.String |
getSheetName()
Returns the name of the current sheet. |
java.lang.String |
getSheetNameAt(short index)
Returns the name of the sheet at the specified index. |
java.lang.String[] |
getSheetNames()
Returns an array of all of the sheet names in this book. |
java.util.Vector |
getSheetNamesAsVector()
Returns a Vector of all of the sheet names in this book. |
Range |
getSheetWorkArea()
Returns the work area for the current worksheet. |
boolean |
getShowCellGrid()
Returns the state of the cell grid display. |
boolean |
getShowExceptions()
Returns the state of whether or not to show exceptions. |
boolean |
getShowFormatBar()
Returns the state of the display of the format bar. |
boolean |
getShowFormulaBar()
Returns the state of the display of the formula bar. |
boolean |
getShowFreezePane()
Returns the state of the freeze pane display. |
boolean |
getShowGridComponents()
Returns whether or not the visible grid is being used. |
boolean |
getShowHeadings()
Returns the state of the headings display. |
boolean |
getShowInfoDialogs()
Returns whether error and informational dialog boxes should be shown. |
boolean |
getShowPopupMenu()
Returns whether the context menu can be shown. |
boolean |
getShowStatusBar()
Returns the state of the display of the status bar. |
SortKeys[] |
getSortKeys()
Returns the array of sort keys. |
java.util.Vector |
getSortKeysAsVector()
Returns the sort keys as a vector. |
Range |
getSortRange()
Returns the sort range. |
Range |
getTableRange()
Returns the table range. |
boolean |
getThrowExceptions()
Returns the state of whether or not to throw exceptions. |
int |
getTimeout()
Returns the server/client timeout, in seconds. |
Cell |
getTopLeftCell()
Returns the cell that is currently at the top left corner of the visible area of the grid. |
java.lang.String |
getTracking()
Returns the current setting for cell tracking. |
java.awt.Color |
getTrackingDownColor()
Returns the color used when cell values decrease. |
int |
getTrackingDuration()
Returns the interval number (in seconds) the cell will be displayed as the tracking color. |
java.awt.Color |
getTrackingUpColor()
Returns the color used when cell values increase. |
java.lang.String[] |
getUserList()
Returns a list of the users who are sharing this book. |
java.util.Vector |
getUserListAsVector()
Returns, as a Vector, a list of users sharing this book. |
java.lang.String |
getUserName()
Returns the current user name for this session. |
java.lang.String |
getUserPassword()
Returns the current user password for this session. |
java.lang.String[] |
getUsersForBook(java.lang.String bookname)
Returns the list of users currently observing this book. |
java.util.Vector |
getUsersForBookAsVector(java.lang.String bookname)
Returns the list of users currently observing this book. |
void |
init()
Called by the browser or applet viewer to inform this applet that it has been loaded into the system. |
void |
insertBeforeSheet(java.lang.String existingSheetName,
java.lang.String newSheetName)
Inserts a new sheet in front of an existing sheet. |
void |
insertDown(Range range)
In the specified column(s) of the range, to make room for inserted blank cells, shift cells down. |
void |
insertRight(Range range)
In the specified row(s) of the range, to make room for inserted blank cells, shift cells to the right. |
void |
insertSheetAt(short index,
java.lang.String name)
Inserts a sheet into the book. |
void |
invert(Range range,
Range outputRange)
Inverts the specified worksheet range (matrix) using the Gauss-Jordan method. |
boolean |
isBookOpen()
Returns true if a book is open. |
boolean |
isConnected()
Returns true if connected to the server; false otherwise. |
boolean |
isLoggedOn()
Returns true if connected and logged on to the server; false otherwise. |
boolean |
isPasswordSet(boolean readWrite)
Returns whether the requested password is set for this book. |
boolean |
isPasteAble()
Returns true if there is something on the clipboard to paste. |
boolean |
isRedoAble()
Returns whether the last command is redoable. |
boolean |
isSpecialPasteAble()
Returns true if there are cells on the clipboard to paste. |
boolean |
isUndoAble()
Returns whether the last command is undoable. |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
static void |
main(java.lang.String[] args)
Runs JSheet as a standalone application. |
void |
messageSender()
Displays a dialog box that sends messages to other users that share the same workbook. |
void |
messageSenderSelectRecipient(java.lang.String user)
FOR INTERNAL USE ONLY! |
void |
modifySheetObserver(int index,
Range range)
Modifies the sheet observer with the given index. |
boolean |
moveSheetDlg()
Displays a dialog box for reordering sheets. |
void |
moveSheetTo(java.lang.String from,
short to)
Moves a sheet from one location to another in the book. |
void |
multiply(Range range1,
Range range2,
Range outputRange)
Multiplies two specified ranges (matrices) to produce a third range (matrix). |
void |
newBook(java.lang.String bookname,
int bookmode)
Creates a new workbook. |
void |
newBook(java.lang.String bookname,
int bookmode,
java.lang.String templatename,
java.lang.String templatepwd,
boolean publicread,
boolean publicwrite,
boolean publicsave)
Creates a new workbook. |
boolean |
newBookDlg()
Displays the New Book dialog box. |
void |
newBookFromTemplate(java.lang.String templatename,
java.lang.String templatepwd)
Creates a new workbook using a template. |
void |
newBookFromTemplate(java.lang.String bookname,
java.lang.String templatename,
java.lang.String templatepwd,
int bookmode)
Creates a new workbook from a template. |
void |
newCachedBook(java.lang.String bookname,
int bookmode,
java.lang.String templatename,
java.lang.String templatepwd,
boolean publicread,
boolean publicwrite,
boolean publicsave,
boolean cacheOnServer,
int updateInterval)
Creates a new server-cached workbook. |
void |
newCachedBookFromTemplate(java.lang.String bookname,
java.lang.String templatename,
java.lang.String templatepwd,
int bookmode,
boolean cacheOnServer,
int updateInterval)
Creates a new cached workbook from a template. |
java.lang.String |
newChart(java.lang.String cdfFileName,
java.lang.String cdfText,
Range range,
int width,
int height)
Creates a new chart based on the chart definition file and returns the name of the chart. |
byte[] |
newChartAsBytes(java.lang.String cdfFileName,
java.lang.String cdfText,
Range range,
int width,
int height)
Creates a new chart based on the chart definition file. |
java.awt.Image |
newChartAsImage(java.lang.String cdfFileName,
java.lang.String cdfText,
Range range,
int width,
int height)
Creates a new chart based on the chart definition file. |
void |
nsolve(Range range,
Range outputRange)
Solves a system of simultaneous linear equations. |
void |
openBook(java.lang.String name,
int mode,
java.lang.String pwd)
Opens a book and returns the book object. |
boolean |
openBookDlg()
Displays the open book dialog box. |
void |
openBookGetPwd(java.lang.String name,
int mode)
Opens a book and prompts for password if necessary. |
void |
openCachedBook(java.lang.String name,
int mode,
java.lang.String pwd,
boolean cacheOnServer,
int updateInterval)
Opens a book and returns the book object. |
java.util.Vector |
paste(Range range)
Pastes information from the clipboard into the sheet. |
Range[] |
pasteArray(Range[] ranges)
Pastes information from the clipboard into the specified ranges. |
void |
pasteSpecial(Range range,
int type)
Pastes data from the clipboard into the sheet. |
void |
pasteSpecial(short sheetIdx,
Range range,
int type)
Pastes data from the clipboard into the sheet. |
boolean |
pasteSpecialDlg()
Displays the paste special dialog box. |
java.util.Vector |
pasteVector(java.util.Vector ranges)
Pastes information from the clipboard into the specified ranges. |
void |
print(java.awt.Graphics g)
Prints this component. |
void |
printSelectedSheetRange()
Prints the current sheet range selection. |
void |
printSheet()
Prints the current sheet. |
void |
processBookEvent(BookEvent e)
Processes all of the book listener events. |
void |
processSessionEvent(SessionEvent e)
Processes all of the session listener events. |
void |
processSheetEvent(SheetEvent e)
Processes all of the sheet listener events. |
void |
propsDlg()
Displays a dialog box for setting properties. |
void |
recalc()
Recalculates the workbook as soon as possible. |
void |
recalcNow()
Recalculates the entire workbook immediately. |
void |
recalcRange(Range range)
Recalculates the specified range. |
void |
recalcTable()
Recalculates the current What If data table. |
Range[] |
redo(SheetHolder sheetHolder)
Redoes the last undo. |
void |
regress(Range range1,
Range range2,
Range range3)
Performs multiple linear regression analysis on a selected worksheet range. |
void |
releaseCallback(org.omg.CORBA.Object callbackObj)
Releases the callback object from the ORB. |
void |
removeBookListener(BookListener l)
Removes the specified book listener so it no longer receives book events. |
void |
removeBookProtection(java.lang.String userOrGroup,
int permission)
Removes the protection settings for the book. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the specified property change listener. |
void |
removeProtection(Range range,
java.lang.String userOrGroup,
int permission)
Removes the protection settings from a range of cells. |
void |
removeRangeName(java.lang.String name)
Removes the specified range name. |
void |
removeSessionListener(SessionListener l)
Removes the specified session listener so it no longer receives session events. |
void |
removeSheetListener(SheetListener l)
Removes the specified sheet listener so it no longer receives sheet events. |
void |
removeSheetObserver(int index)
Removes the sheet observer with the given index. |
void |
removeSheetProtection(short sheetIndex,
java.lang.String userOrGroup,
int permission)
Removes protection settings for the sheet. |
void |
removeSortKeys()
Removes the sort keys. |
void |
renameRangeName(java.lang.String currentName,
java.lang.String newName)
Renames the specified range name. |
boolean |
renameSheetDlg()
Displays a dialog box for renaming a sheet. |
int |
replaceAll(java.lang.String findText,
java.lang.String replaceText,
int type)
Replaces all of the text in the sheet based on the parameters. |
static void |
resetCallTimeout()
Resets the current timeout to the default. |
boolean |
saveAsDlg()
Displays the Save As dialog box. |
void |
saveBook()
Saves the current book on the server. |
void |
saveBookAsType(int type,
java.lang.String name)
Saves this book under a different name and/or type. |
void |
scrollToView(int row,
int col)
Scrolls the current sheet so that the cell specified by the given row and column will be visible. |
void |
setActiveCell(Cell cell)
Sets the given row and column as the current cell. |
void |
setActiveSheet(short sheet)
Sets the current active sheet. |
void |
setActiveSheetUsingString(java.lang.String sheetname)
Sets the current active sheet. |
void |
setBGColor(java.awt.Color color)
Sets the background color for the current sheet. |
void |
setBGColor(int red,
int green,
int blue)
Sets the background color for the current sheet. |
void |
setBookPassword(java.lang.String passwd)
Sets the password to be used when opening a book. |
void |
setCacheSize(int cacheSize)
Sets the number of rows and columns to be cached in each direction. |
static void |
setCallTimeout(int secs)
Sets the timeout for all of the communications with the server. |
void |
setCellEntry(Cell cell,
java.lang.String data)
Sets the value of the cell. |
void |
setCellNumber(Cell cell,
double num)
Sets the value of the cell as a number. |
void |
setCellStyleForCell(Cell cell,
CellStyle style)
Sets the style for the given cell. |
void |
setCellStyleForRange(Range range,
CellStyle style)
Sets the style for the cells within the given range. |
void |
setCellText(Cell cell,
java.lang.String text)
Sets the value of the cell as a string. |
void |
setCellValue(Cell cell,
JSValue value)
Sets the value of the cell as a JSValue object. |
void |
setColWidth(int start,
int end,
int size)
Sets the column widths. |
void |
setConnectAtStartup(boolean connectAtStartup)
Sets whether JSClient will attempt to connect at startup. |
void |
setFileName(java.lang.String name)
Sets the relative path and name of the book. |
void |
setFreezePaneCell(Cell cell)
Sets the freeze pane in the current sheet. |
void |
setGridLineColor(java.awt.Color color)
Sets the grid line color for the current sheet. |
void |
setHeadingStyleR1C1(boolean set)
Sets the state of the row and column heading style. |
void |
setHostName(java.lang.String host)
Sets the host name for the JSClient object to be created. |
void |
setInitialSheet(short index)
Sets the specified sheet as the initial sheet. |
void |
setInputCell(int count,
Cell cell1,
Cell cell2)
Defines the input cells for one-variable and two-variable What If tables. |
void |
setLoadbalance(boolean state)
Sets whether to take advantage of server load balancing. |
void |
setMessageSenderPopupState(boolean sd)
FOR INTERNAL USE ONLY! |
void |
setMessageViewerPopupState(boolean sd)
FOR INTERNAL USE ONLY! |
void |
setNamedRange(java.lang.String name,
Range range)
Defines a name for a range. |
void |
setOpenMode(java.lang.String mode)
Sets the sharing mode for a new book. |
void |
setOpenNewBook(boolean set)
Sets to true to automatically create a new book when launching this applet. |
void |
setOpenSheet(java.lang.String sheet)
Sets the sheet to open. |
void |
setPassword(java.lang.String readWrite,
java.lang.String readOnly,
boolean encryption)
Sets the password for this book. |
void |
setPort(int port)
Sets the port number for this session. |
void |
setRangeEntryUsingArray(Range range,
java.lang.Object[] values)
Sets the range values. |
void |
setRangeEntryUsingVector(Range range,
java.util.Vector values)
Sets the range values. |
void |
setRangeNumberUsingArray(Range range,
java.lang.Number[] numbers)
Sets the range values with numbers. |
void |
setRangeNumberUsingVector(Range range,
java.util.Vector numbers)
Sets the range values with numbers. |
void |
setRangeTextUsingArray(Range range,
java.lang.String[] values)
Sets the range values as text data. |
void |
setRangeTextUsingVector(Range range,
java.util.Vector values)
Sets the range values as text data. |
void |
setRangeValuesUsingArray(Range range,
JSValue[] values)
Sets the range values from the array of JSValue objects. |
void |
setRangeValuesUsingVector(Range range,
java.util.Vector values)
Sets the range values from the Vector of JSValue objects. |
void |
setRecalcIterationNumber(int number)
Sets the recalculation iteration number. |
void |
setRecalcIterationRange(Range range,
int number,
int maximum)
Sets the recalculation iteration range. |
void |
setRecalcMode(boolean auto)
Sets the recalculation mode. |
void |
setRecalcType(int type)
Sets the recalculation type. |
void |
setRowHeight(int start,
int end,
int size)
Sets the row height. |
void |
setSelectionUsingRange(Range range)
Sets the current selection to the specified range. |
void |
setSelectionUsingRanges(Range[] ranges)
Sets the current selection to the specified group of ranges. |
void |
setSheetNameAt(short index,
java.lang.String name)
Changes the name of the sheet at this index. |
void |
setSheetWorkArea(Range range)
Sets the work area range for the current sheet. |
void |
setShowCellGrid(boolean set)
Sets the visible state of the cell grid. |
void |
setShowExceptions(boolean state)
Sets the state of whether or not to show exceptions. |
void |
setShowFormatBar(boolean set)
Shows the format bar as a part of this applet. |
void |
setShowFormatBarFlag(boolean set)
Sets the format bar flag, but does not set the format bar |
void |
setShowFormulaBar(boolean set)
Shows the formula bar as a part of this applet. |
void |
setShowFormulaBarFlag(boolean set)
Sets the formula bar flag, but does not set the formula bar |
void |
setShowFreezePane(boolean set)
Sets the visible state of the freeze panes. |
void |
setShowGridComponents(boolean use)
Determines whether to use the visible grid when launching the applet. |
void |
setShowHeadings(boolean set)
Sets the display state of the headings. |
void |
setShowInfoDialogs(boolean set)
Determines if error or informational dialog boxes should be displayed. |
void |
setShowPopupMenu(boolean set)
Allows the display of the context menu bar as part of this applet. |
void |
setShowStatusBar(boolean set)
Shows the status bar as a part of this applet. |
void |
setShowStatusBarFlag(boolean set)
Sets the status bar flag, but does not set the status bar. |
void |
setSortKeys(java.util.Vector sortKeys)
Sets the sort keys. |
void |
setSortRange(Range range)
Sets the sort range. |
void |
setStatusMsg(java.lang.String str)
Displays the string in the status bar, if it is visible. |
void |
setTableRange(Range range)
Sets the data table range to the specified range. |
void |
setThrowExceptions(boolean state)
Sets the state of whether or not to throw exceptions. |
void |
setTimeout(int seconds)
Sets the number of seconds to wait before timing out a call from the client to the server. |
void |
setTopLeftCell(int row,
int col)
Scrolls the current sheet so that the cell specified by the given row and column will be visible in the top left cell of the grid. |
void |
setTracking(java.lang.String track)
Sets cell tracking for this applet. |
void |
setTrackingDownColor(java.awt.Color color)
Sets the color used when cell values decrease. |
void |
setTrackingDuration(int duration)
Sets the interval number (in seconds) for notification that a cell has changed. |
void |
setTrackingUpColor(java.awt.Color color)
Sets the color used when cell values increase. |
void |
setUserName(java.lang.String name)
Sets the user name for the JSClient object to be created. |
void |
setUserPassword(java.lang.String password)
Sets the user password for the JSClient object to be created. |
void |
sortNow(boolean byRow)
Sorts the sheet according to the sort keys set for this sheet. |
void |
start()
Called by the browser or applet viewer to inform this applet that it should start its execution. |
void |
stop()
Called by the browser or applet viewer to inform this applet that it should stop its execution. |
void |
throwException(com.iisc.jwc.orb.CException ce,
boolean javascript)
FOR INTERNAL USE ONLY! |
void |
throwException(JSException ce,
boolean javascript)
Throws Java and JavaScript exceptions. |
Range |
transpose(Range range)
Transposes the data in the specified worksheet range. |
Range[] |
undo(SheetHolder sheetHolder)
Undoes the last command. |
void |
warningMsg(java.lang.String str)
Displays a warning dialog box. |
Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PROTECTION_GRANT
public static final int PROTECTION_LOCKED
public static final int PROTECTION_READ
public static final int PROTECTION_SAVE
public static final int PROTECTION_WRITE
Constructor Detail |
public JSClient()
public JSClient(java.lang.String[] args) throws java.lang.Exception
Command Line Argument | Description |
bookname | The workbook filename |
bookpassword | The workbook password |
sheetname | The workbook sheet name |
templatename | Template name for a new workbook |
opennewbook | Open a new workbook |
openmode | Book open mode (exclusive|shared) |
saveable | Default for exit save status |
connect | Attempt to connect on start-up |
showformulabar | Display the formula bar |
showstatusbar | Display the status bar |
showformatbar | Display the format bar |
publicread | New book read access (true|false) |
publicwrite | New book write access (true|false) |
publicsave | New book save access (true|false) |
hidepopupmenu | Do not show popup menus |
hideinfodialogs | Do not show information dialog boxes |
hideexceptions | Do not show exception message windows |
hidegridcomponents | Do not initially hide the grid |
throwexceptions | Enable throwing exceptions |
tracking | Cell update tracking (None|Background|Background Fade|Foreground|Foreground Fade) |
trackingduration | The cell tracking duration (seconds) |
trackingup | Tracking up color (HTML color reference) |
trackingdown | Tracking down color (HTML color reference) |
host | The server host name |
port | The server port number |
user | The user login name |
password | The user login password |
timeout | Connection timeout value (seconds) |
bindtype | Bind type (orbixd|listen|file|ior|url) |
iorref | IOR reference string |
identity | Unique identity for the applet in a page |
poolconnection | Multiple applets share connection |
loadbalance | Indicate whether to take advantage of server load balancing |
args
- Command line arguments.
java.lang.Exception
- Used to indicate that the "usage" has been presented to the user or bad option(s).Method Detail |
public boolean aboutDlg()
true
.public void addBookListener(BookListener l)
l
- The book listener.public void addBookProtection(java.lang.String userOrGroup, int permission) throws JSException
userOrGroup
- The user or group name for which to set protection.permission
- The permission setting for the book as a bit mask.
JSException
- An exception occurred while communicating with the server.public void addNotify()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The property change listener.public void addProtection(Range range, java.lang.String userOrGroup, int permission) throws JSException
range
- The range on which to set protection.userOrGroup
- The user or group name for which to set protection.permission
- The permission setting for the range as a bit mask.
JSException
- An exception occurred while communicating with the server.public void addSessionListener(SessionListener l)
l
- The session listener.public void addSheetListener(SheetListener l)
l
- The sheet listener.public int addSheetObserver(Range range) throws JSException
range
- The range reference.
JSException
- An exception occurred while communicating with the server.public int addSheetObserver(Range range, boolean cacheOnServer, int updateInterval) throws JSException
range
- The range reference.cacheOnServer
- If true, the server will only send cells that have changed.updateInterval
- throttle updates so there is a minimum of updateinterval seconds
between each update.
JSException
- An exception occurred while communicating with the server.public void addSheetProtection(short sheetIndex, java.lang.String userOrGroup, int permission) throws JSException
sheetIndex
- The index of the sheet.userOrGroup
- The user or group name for which to set protection.permission
- The permission setting for the sheet as a bit mask.
JSException
- An exception occurred while communicating with the server.public void broadcastMessage(java.lang.String user, java.lang.String msg) throws JSException
user
- the recipient.msg
- the message to broadcast.
JSException
- An exception occurred while communicating with the server.public boolean chartsDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void clear(Range range) throws JSException
range
- The range to clear.
JSException
- An exception occurred while communicating with the server.public void clearData(Range range) throws JSException
range
- The range to clear.
JSException
- An exception occurred while communicating with the server.public boolean clearDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void clearFormat(Range range) throws JSException
range
- The range to clear.
JSException
- An exception occurred while communicating with the server.public void clearFormula(Range range) throws JSException
range
- The range to clear.
JSException
- An exception occurred while communicating with the server.public void closeBook() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean closeBookChecked() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean closeBookCheckedSelectableDlg(boolean cancelInDlg) throws JSException
cancelInDlg
- indicates the dialog should have a cancel button.
JSException
- An exception occurred while communicating with the server.public java.lang.String colorToHTMLColor(java.awt.Color color)
color
- The original color.
public void connect(java.lang.String host, java.lang.String user, java.lang.String pwd) throws JSException
host
- Hostname to which to connect.user
- User name to connect as.pwd
- User password.
JSException
- An exception occurred while connecting to the server.public boolean connectDlg()
public java.util.Vector convertDBRowSetToDBRow(JSDbRowSet dbRowSet, int index) throws JSException
dbRowSet
- The DBRowSet returned from a fetch statement.index
- The index of the row to retrieve.
JSException
- An exception occurred while communicating with the server.public void copy(Range range) throws JSException
range
on the clipboard.
Note that this method implicitly works on the current sheet. The sheet index in range
is not honoured.
range
- The range to copy.
JSException
- An exception occurred while communicating with the server.public void copy(short sheetIdx, Range range) throws JSException
range
on the clipboard.
sheetIdx
- The sheet index on which range
lives. Typically, this
should be the same as the index in the range but as the single-argument
copy
method already existed we have to make it explicit.range
- The range to copy.
JSException
- An exception occurred while communicating with the server.public void copyDown(Range range) throws JSException
Range
is ignored.
range
- The range to copy down.
JSException
- An exception occurred while communicating with the server.public void copyDown(short sheetIdx, Range range) throws JSException
Range
is ignored.
sheetIdx
- The sheet on which to do the copy.range
- The range to copy down.
JSException
- An exception occurred while communicating with the server.public void copyRight(Range range) throws JSException
range
- The range to copy right.
JSException
- An exception occurred while communicating with the server.public java.lang.Object createObject(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException
className
- The name of the object to create.
java.lang.ClassNotFoundException
- Classname invalid.
java.lang.IllegalAccessException
- Access not allowed.public java.lang.Object createObject(java.lang.String className, java.util.Vector argTypesVector, java.util.Vector argValuesVector) throws JSException
className
- The name of the object to create.
JSException
- A JSException will be thrown if there's an invalid
class name, invalid argument types, or invalid argument values.public void cut(Range range) throws JSException
range
- The range to cut.
JSException
- An exception occurred while communicating with the server.public JSDatabase dbConnect(java.lang.String dbName, java.lang.String userName, java.lang.String password) throws JSException
dbName
- The name of the database to which to connect.userName
- The name of the user to use when connecting.password
- The password for this user.
JSException
- An exception occurred while communicating with the server.public void dbDisconnect(JSDatabase db) throws JSException
db
- The database object.
JSException
- An exception occurred while communicating with the server.public void deleteBook(java.lang.String name) throws JSException
name
- The name of the book to delete.
JSException
- An exception occurred while communicating with the server.public void deleteChart(java.lang.String name) throws JSException
name
- The name of the chart to delete.
JSException
- An exception occurred while communicating with the server.public void deleteLeft(Range range) throws JSException
range
- The range to delete.
JSException
- An exception occurred while communicating with the server.public void deleteSheet(java.lang.String name) throws JSException
name
- Name of the sheet to delete.
JSException
- An exception occurred while communicating with the server.public void deleteUp(Range range) throws JSException
range
- The range to delete.
JSException
- An exception occurred while communicating with the server.public void destroy()
public void determinant(Range range, Cell output) throws JSException
range
- The source range.output
- The output cell.
JSException
- An exception occurred while calculating the determinant.public void disconnect() throws JSException
JSException
- An exception occurred while disconnecting from the server.public boolean disconnectDlg()
public void distribute(Range values, Range bin) throws JSException
values
- The values range.bin
- The bin value.
JSException
- An exception occurred while communicating with the server.public void errorMsg(java.lang.String str)
str
- The message to display.public void errorMsgForException(com.iisc.jwc.orb.CException e)
public void errorMsgForException(JSException e)
e
- the message to display.public JSEvaluateValue evaluate(short sheetIndex, java.lang.String formula) throws JSException
sheetIndex
- The sheet in which to evaluate the expression or function. If -1, use the current sheet.formula
- The expression or function to evaluate. If a function, bookname:function is the proper format
for this parameter, where the bookname is the book that contains the script and function is the name of the
function within the script.
JSException
- An exception occurred while communicating with the server.public void executeScript(java.lang.String text) throws JSException
text
- The text script to execute.
JSException
- An exception occurred while communicating with the server.public Cell find(java.lang.String text, int type) throws JSException
text
- The string for which to search.type
- The type for which to search: 1: text, 2: values, 3: formulas, 4: criteria.
JSException
- An exception occurred while communicating with the server.public Cell findAgain() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean formatCellsDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public Cell getActiveCell() throws JSException
JSException
- An exception occurred while communicating with the server.public short getActiveSheet() throws JSException
JSException
- An exception occurred while communicating with the server.public java.awt.Color getBGColor() throws JSException
JSException
- An exception occurred while communicating with the server.public int getBGColorBlue() throws JSException
JSException
- An exception occurred while communicating with the server.public int getBGColorGreen() throws JSException
JSException
- An exception occurred while communicating with the server.public int getBGColorRed() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getBookName() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getBookPassword()
public int getCacheSize()
public static int getCallTimeout()
public java.lang.String getCellDisplay(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public java.lang.String getCellEntry(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public java.lang.String getCellHTML(Cell cell, int flags) throws JSException
cell
- The cell reference.flags
- 0 = No HTML table tags, 1 = HTML table tags.
JSException
- An exception occurred while communicating with the server.public double getCellNumber(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public CellStyle getCellStyle(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public java.lang.String getCellText(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public JSValue getCellValue(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public byte[] getChartAsBytes(java.lang.String name, int imgType, short sheetIdx) throws JSException
name
- The name of the chart.imgType
- The image type to use. 1: GIF, 2: JPEGsheetIdx
- The sheet index.
JSException
- An exception occurred while communicating with the server.public java.awt.Image getChartAsImage(java.lang.String name, int imgType, short sheetIdx) throws JSException
name
- The name of the chart.imgType
- The image type to use. 1: GIF, 2: JPEGsheetIdx
- The index of the sheet.
JSException
- An exception occurred while communicating with the server.public java.lang.String[] getChartList() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getChartListAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public int getColWidth(int col) throws JSException
col
- The column whose width is to be retrieved.
JSException
- An exception occurred while communicating with the server.public int getColWidth(int col, short sheetIndex) throws JSException
col
- The column whose width is to be retrieved.sheetIndex
- The index of the sheet that contains the specified column.
JSException
- An exception occurred while communicating with the server.public boolean getConnectAtStartup()
public java.lang.String[] getDatabases() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getDatabasesAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public int getDefaultColWidth() throws JSException
JSException
- An exception occurred while communicating with the server.public int getDefaultRowHeight() throws JSException
JSException
- An exception occurred while communicating with the server.public com.iisc.jwc.orb.FileInfo[] getFileList(int mode, java.lang.String wildcard, java.lang.String path) throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getFileListAsVector(int mode, java.lang.String wildcard, java.lang.String path) throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getFileName() throws JSException
JSException
- An exception occurred while communicating with the server.public Cell getFreezePaneCell() throws JSException
JSException
- An exception occurred while communicating with the server.public java.awt.Color getGridLineColor() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getHeadingStyleR1C1() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getHostName()
public short getInitialSheet() throws JSException
JSException
- An exception occurred while communicating with the server.public int getInputCell(Cell cell1, Cell cell2) throws JSException
cell1
- The first input cell.cell2
- The second input cell.
JSException
- An exception occurred while communicating with the server.public Cell getLastCell(short sheetIndex, int type, int roworcol) throws JSException
sheetIndex
- The index of the sheet to reference.type
- 1: last row, 2: last col, 3: last row with data, 4: last col with data, 5: last cell, 6: last cell with dataroworcol
- The column for last row (types 1 and 3), row for last column (types 2 and 4), and unused for types 5 and 6
JSException
- An exception occurred while communicating with the server.public boolean getLoadbalance()
public int getMyPermissionOnBook() throws JSException
JSException
- An exception occurred while communicating with the server.public int getMyPermissionOnCell(short sheetIndex, Cell cell) throws JSException
sheetIndex
- The index of the requested sheet.cell
- The cell on which to return protection information.
JSException
- An exception occurred while communicating with the server.public int getMyPermissionOnSheet(short sheetIndex) throws JSException
sheetIndex
- the index of the sheet to get permissions from.
JSException
- An exception occurred while communicating with the server.public Range getNamedRange(java.lang.String name) throws JSException
name
- The name of the range.
JSException
- An exception occurred while communicating with the server.public java.lang.String[] getNamedRanges() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getNamedRangesAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public com.iisc.jwc.orb.FileInfo[] getOpenBookList() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getOpenBookListAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public int getOpenMode()
public boolean getOpenNewBook()
public java.lang.String getOpenSheet()
public Protection[] getPermissionsOnBook() throws JSException
JSException
- An exception occurred while communicating with the server.public Protection[] getPermissionsOnSheet(short sheetIndex) throws JSException
sheetIndex
- The index of the sheet.
JSException
- An exception occurred while communicating with the server.public java.util.Vector getPermissionsVectorOnBook() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getPermissionsVectorOnSheet(short sheetIndex) throws JSException
sheetIndex
- The index of the sheet.
JSException
- An exception occurred while communicating with the server.public int getPort()
public Sheet getPrintableSheet() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String[] getRangeDisplay(Range range) throws JSException
range
- The range reference.
JSException
- An exception occurred while communicating with the server.public java.util.Vector getRangeDisplayAsVector(Range range) throws JSException
range
- The range reference.
JSException
- An exception occurred while communicating with the server.public java.lang.String getRangeHTML(Range range, int flags) throws JSException
range
- The range reference.flags
- 0 = No HTML table tags, 3 = HTML table tags with headings.
JSException
- An exception occurred while communicating with the server.public int getRecalcIterationNumber() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getRecalcMode() throws JSException
JSException
- ORB error.public int getRecalcType() throws JSException
JSException
- An exception occurred while communicating with the server.public int getRowHeight(int row) throws JSException
row
- The row whose height is to be retrieved.
JSException
- An exception occurred while communicating with the server.public int getRowHeight(int row, short sheetIndex) throws JSException
row
- The row whose height is to be retrieved.sheetIndex
- The index of the sheet that contains the specified row.
JSException
- An exception occurred while communicating with the server.public Range getSelection() throws JSException
JSException
- An exception occurred while communicating with the server.public Range[] getSelections() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getSelectionsAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public int getSheetCount() throws JSException
JSException
- An exception occurred while communicating with the server.public short getSheetIndexForName(java.lang.String sheetname) throws JSException
sheetname
- The name of the sheet for which an index is desired.
JSException
- An exception occurred while communicating with the server.public java.lang.String getSheetName() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getSheetNameAt(short index) throws JSException
index
- The index of the sheet; 0 based.
JSException
- An exception occurred while communicating with the server.public java.lang.String[] getSheetNames() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getSheetNamesAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public Range getSheetWorkArea() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getShowCellGrid() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getShowExceptions()
public boolean getShowFormatBar()
public boolean getShowFormulaBar()
public boolean getShowFreezePane() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getShowGridComponents()
public boolean getShowHeadings() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getShowInfoDialogs()
public boolean getShowPopupMenu()
public boolean getShowStatusBar()
public SortKeys[] getSortKeys() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getSortKeysAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public Range getSortRange() throws JSException
JSException
- An exception occurred while communicating with the server.public Range getTableRange() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean getThrowExceptions()
public int getTimeout()
public Cell getTopLeftCell() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getTracking()
public java.awt.Color getTrackingDownColor()
public int getTrackingDuration()
public java.awt.Color getTrackingUpColor()
public java.lang.String[] getUserList() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector getUserListAsVector() throws JSException
JSException
- An exception occurred while communicating with the server.public java.lang.String getUserName()
public java.lang.String getUserPassword()
public java.lang.String[] getUsersForBook(java.lang.String bookname) throws JSException
bookname
- The name of the book.
JSException
- An exception occurred while communicating with the server.public java.util.Vector getUsersForBookAsVector(java.lang.String bookname) throws JSException
bookname
- The name of the book.
JSException
- An exception occurred while communicating with the server.public void init()
public void insertBeforeSheet(java.lang.String existingSheetName, java.lang.String newSheetName) throws JSException
existingSheetName
- The existing sheet name in front of which the new sheet is inserted.newSheetName
- The name of the new sheet.
JSException
- An exception occurred while communicating with the server.public void insertDown(Range range) throws JSException
range
- The range to insert.
JSException
- An exception occurred while communicating with the server.public void insertRight(Range range) throws JSException
range
- The range to insert.
JSException
- An exception occurred while communicating with the server.public void insertSheetAt(short index, java.lang.String name) throws JSException
index
- The position at which to insert the sheet; 0 based.name
- The name for the new sheet.
JSException
- An exception occurred while communicating with the server.public void invert(Range range, Range outputRange) throws JSException
range
- The range to invert.outputRange
- The range into which to output the results.
JSException
- An exception occurred while communicating with the server.public boolean isBookOpen()
public boolean isConnected()
public boolean isLoggedOn()
public boolean isPasswordSet(boolean readWrite) throws JSException
readWrite
- If true, the read/write password is checked, if false,
the read-only password is checked.
JSException
- An exception occurred while communicating with the server.public boolean isPasteAble() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean isRedoAble() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean isSpecialPasteAble() throws JSException
JSException
- An exception occurred while communicating with the server.public boolean isUndoAble() throws JSException
JSException
- An exception occurred while communicating with the server.public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
clipboard
- The clipboard that is no longer owned.contents
- The contents which this owner had placed on the clipboard.public static void main(java.lang.String[] args)
args
- The command line arguments.public void messageSender()
public void messageSenderSelectRecipient(java.lang.String user)
public void modifySheetObserver(int index, Range range) throws JSException
index
- The sheet observer index that was returned from addSheetObserver.range
- The new range for the observed area.
JSException
- An exception occurred while communicating with the server.public boolean moveSheetDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void moveSheetTo(java.lang.String from, short to) throws JSException
from
- The name of the sheet to move.to
- The position to insert the sheet at, 0 based. NOTE: the original
sheet is counted in the index to move to, such that moving the sheet from
position 0 to position 1 in effect does nothing.
JSException
- An exception occurred while communicating with the server.public void multiply(Range range1, Range range2, Range outputRange) throws JSException
range1
- The range of the first matrix.range2
- The range of the second matrix.outputRange
- The range for the ouput results.
JSException
- An exception occurred while communicating with the server.public void newBook(java.lang.String bookname, int bookmode) throws JSException
bookname
- The name of the book to create.bookmode
- The book mode (1: shared, 2: exclusive).
JSException
- An exception occurred while communicating with the server.public void newBook(java.lang.String bookname, int bookmode, java.lang.String templatename, java.lang.String templatepwd, boolean publicread, boolean publicwrite, boolean publicsave) throws JSException
bookname
- The name of the book to create.bookmode
- The book mode (1 - shared, 2 - exclusive).templatename
- The book template name.templatepwd
- The book template password.publicread
- Public read book and sheet permission.publicwrite
- Public write book and sheet permission.publicsave
- Public save book and sheet permission.
JSException
- An exception occurred while communicating with the server.public boolean newBookDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void newBookFromTemplate(java.lang.String templatename, java.lang.String templatepwd) throws JSException
templatename
- The book template name.templatepwd
- The book template password.
JSException
- An exception occurred while communicating with the server.public void newBookFromTemplate(java.lang.String bookname, java.lang.String templatename, java.lang.String templatepwd, int bookmode) throws JSException
bookname
- The name of the book to create.templatename
- The book template name.templatepwd
- The book template password.bookmode
- The book mode (1 - shared, 2 - exclusive).
JSException
- An exception occurred while communicating with the server.public void newCachedBook(java.lang.String bookname, int bookmode, java.lang.String templatename, java.lang.String templatepwd, boolean publicread, boolean publicwrite, boolean publicsave, boolean cacheOnServer, int updateInterval) throws JSException
bookname
- The name of the book to create.bookmode
- The book mode (1 - shared, 2 - exclusive).templatename
- The book template name.templatepwd
- The book template password.publicread
- Public read book and sheet permission.publicwrite
- Public write book and sheet permission.publicsave
- Public save book and sheet permission.cacheOnServer
- If true, the server sends updated cells only.updateInterval
- Let a minimum of updateInterval seconds pass between server updates.
JSException
- An exception occurred while communicating with the server.public void newCachedBookFromTemplate(java.lang.String bookname, java.lang.String templatename, java.lang.String templatepwd, int bookmode, boolean cacheOnServer, int updateInterval) throws JSException
bookname
- The name of the book to create.templatename
- The book template name.templatepwd
- The book template password.bookmode
- The book mode (1 - shared, 2 - exclusive).cacheOnServer
- If true, only cells that have changed will be sent through by the server.
JSException
- An exception occurred while communicating with the server.public java.lang.String newChart(java.lang.String cdfFileName, java.lang.String cdfText, Range range, int width, int height) throws JSException
cdfFileName
- The name of the chart definition file.cdfText
- The chart definition description.range
- The range to use for the data.width
- The width of the chart, in pixels.height
- The height of the chart, in pixels.
JSException
- An exception occurred while communicating with the server.public byte[] newChartAsBytes(java.lang.String cdfFileName, java.lang.String cdfText, Range range, int width, int height) throws JSException
cdfFileName
- The name of the chart definition file.cdfText
- The chart definition description.range
- The range to use for the data.width
- The width of the chart, in pixels.height
- The height of the chart, in pixels.
JSException
- An exception occurred while communicating with the server.public java.awt.Image newChartAsImage(java.lang.String cdfFileName, java.lang.String cdfText, Range range, int width, int height) throws JSException
cdfFileName
- The name of the chart definition file.cdfText
- The chart definition description.range
- The range to use for the data.width
- The width of the chart, in pixels.height
- The height of the chart, in pixels.
JSException
- An exception occurred while communicating with the server.public void nsolve(Range range, Range outputRange) throws JSException
range
- The source matrix.outputRange
- The resulting matrix.
JSException
- An exception occurred while communicating with the server.public void openBook(java.lang.String name, int mode, java.lang.String pwd) throws JSException
name
- The name of the book to open.mode
- 1: open shared, 2: open exclusive.pwd
- The book password.
JSException
- An exception occurred while communicating with the server.public boolean openBookDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void openBookGetPwd(java.lang.String name, int mode) throws JSException, java.lang.Exception
name
- Name of the book.mode
- 1: shared, 2: exclusive
JSException
- An exception occurred while communicating with the server.
java.lang.Exception
- Unidentified error.public void openCachedBook(java.lang.String name, int mode, java.lang.String pwd, boolean cacheOnServer, int updateInterval) throws JSException
name
- The name of the book to open.mode
- 1: open shared, 2: open exclusive.pwd
- The book password.cacheOnServer
- If true, the server will only send updates for changed cells.updateInterval
- The minimum number of seconds between updates.
JSException
- An exception occurred while communicating with the server.public java.util.Vector paste(Range range) throws JSException
range
- The range in which to paste into.
JSException
- An exception occurred while communicating with the server.public Range[] pasteArray(Range[] ranges) throws JSException
ranges
- The ranges to be pasted.
JSException
- An exception occurred while communicating with the server.public void pasteSpecial(Range range, int type) throws JSException
range
but assumes the current sheet.
range
- The range to paste into.type
- 1: add the values in the range to the pasted data, 2: divide, 3: multiply,
4: subtract, 5: values, 6: formulas, 7: format, 8: all except borders.
JSException
- An exception occurred while communicating with the server.public void pasteSpecial(short sheetIdx, Range range, int type) throws JSException
sheetIdx
.
sheetIdx
- The sheet which to copy to.range
- The range to paste into.type
- 1: add the values in the range to the pasted data, 2: divide, 3: multiply,
4: subtract, 5: values, 6: formulas, 7: format, 8: all except borders.
JSException
- An exception occurred while communicating with the server.public boolean pasteSpecialDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public java.util.Vector pasteVector(java.util.Vector ranges) throws JSException
ranges
- The ranges to be pasted.
JSException
- An exception occurred while communicating with the server.public void print(java.awt.Graphics g)
g
- the graphics context to use for printing.public void printSelectedSheetRange() throws JSException
JSException
- An exception occurred while communicating with the server.public void printSheet() throws JSException
JSException
- An exception occurred while communicating with the server.public void processBookEvent(BookEvent e)
e
- The book event.public void processSessionEvent(SessionEvent e)
e
- The session event.public void processSheetEvent(SheetEvent e)
e
- The sheet event.public void propsDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public void recalc() throws JSException
JSException
- An exception occurred while communicating with the server.public void recalcNow() throws JSException
JSException
- An exception occurred while communicating with the server.public void recalcRange(Range range) throws JSException
range
- The range reference.
JSException
- An exception occurred while communicating with the server.public void recalcTable() throws JSException
JSException
- An exception occurred while communicating with the server.public Range[] redo(SheetHolder sheetHolder) throws JSException
sheetHolder
- After the command is undone, the sheetHolder contains the sheet where the action was redone.
JSException
- An exception occurred while communicating with the server.public void regress(Range range1, Range range2, Range range3) throws JSException
range1
- The range for the regression data.range2
- The range where the regresssion coefficients are placed.range3
- The range for the optional regression report.
JSException
- An exception occurred while communicating with the server.public void releaseCallback(org.omg.CORBA.Object callbackObj)
null
is insufficient
as the Orb still holds a reference to it.
callbackObj
- The callback object to release.public void removeBookListener(BookListener l)
l
- The book listener.public void removeBookProtection(java.lang.String userOrGroup, int permission) throws JSException
userOrGroup
- The user or group name from which to remove protection.permission
- The permission being removed for the book as a bit mask.
JSException
- An exception occurred while communicating with the server.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The property change listener.public void removeProtection(Range range, java.lang.String userOrGroup, int permission) throws JSException
range
- The range from which to remove protection.userOrGroup
- The user or group name from which to remove protection.permission
- The permission being removed for the range as a bit mask.
JSException
- An exception occurred while communicating with the server.public void removeRangeName(java.lang.String name) throws JSException
name
- The name of the range.
JSException
- An exception occurred while communicating with the server.public void removeSessionListener(SessionListener l)
l
- The session listener.public void removeSheetListener(SheetListener l)
l
- The sheet listener.public void removeSheetObserver(int index) throws JSException
index
- The sheet observer index that was returned from addSheetObserver.
JSException
- An exception occurred while communicating with the server.public void removeSheetProtection(short sheetIndex, java.lang.String userOrGroup, int permission) throws JSException
sheetIndex
- The index of the sheet.userOrGroup
- The user or group name from which to remove protection.permission
- The permission being removed for the sheet as a bit mask.
JSException
- An exception occurred while communicating with the server.public void removeSortKeys() throws JSException
JSException
- An exception occurred while communicating with the server.public void renameRangeName(java.lang.String currentName, java.lang.String newName) throws JSException
currentName
- The current range name.newName
- The new name for the range.
JSException
- An exception occurred while communicating with the server.public boolean renameSheetDlg() throws JSException
JSException
- An exception occurred while communicating with the server.public int replaceAll(java.lang.String findText, java.lang.String replaceText, int type) throws JSException
findText
- The string for which to search.replaceText
- The string to replace the found text with.type
- The type to search for: 1: text, 2: values, 3: formulas, 4: criteria.
JSException
- An exception occurred while communicating with the server.public static void resetCallTimeout()
public boolean saveAsDlg() throws JSException
JSException
- ORB error.public void saveBook() throws JSException
JSException
- An exception occurred while communicating with the server.public void saveBookAsType(int type, java.lang.String name) throws JSException
type
- 1: Lotus 123 1A, 2: Lotus 123 2.0, 3: DIF, 4: SYLK, 5: TEXT,
6: HTML, 10: Wingz 2.0, 11: Wingz 3.0, 12: JSheet (default), 15: Excel 95, 16: Excel 97name
- The name to use to save the book.
JSException
- ORB Errorpublic void scrollToView(int row, int col) throws JSException
row
- The row.col
- The col.
JSException
- An exception occurred while communicating with the server.public void setActiveCell(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public void setActiveSheet(short sheet) throws JSException
sheet
- The index of the sheet that is to be made active.
JSException
- An exception occurred while communicating with the server.public void setActiveSheetUsingString(java.lang.String sheetname) throws JSException
sheetname
- The name of the sheet that is to be made active.
JSException
- An exception occurred while communicating with the server.public void setBGColor(java.awt.Color color) throws JSException
color
- The color for the background.
JSException
- An exception occurred while communicating with the server.public void setBGColor(int red, int green, int blue) throws JSException
JSException
- An exception occurred while communicating with the server.public void setBookPassword(java.lang.String passwd)
passwd
- The password for the book.public void setCacheSize(int cacheSize)
cacheSize
- The number of rows and columns to cache.public static void setCallTimeout(int secs)
secs
- Timeout in secondspublic void setCellEntry(Cell cell, java.lang.String data) throws JSException
Foo | 1.2345 | =pi() | |
---|---|---|---|
getCellEntry() | Foo | 1.2345 | =pi() |
getCellNumber() | 0 | double(1.2345) | double(3.141592654) |
getCellText() | Foo | 1.2345 | 3.141592654 |
getCellDisplay() | Foo | 1.23 | 3.14 |
cell
- The cell reference.data
- The data value.
JSException
- An exception occurred while communicating with the server.public void setCellNumber(Cell cell, double num) throws JSException
cell
- The cell reference.num
- The number to set.
JSException
- An exception occurred while communicating with the server.public void setCellStyleForCell(Cell cell, CellStyle style) throws JSException
cell
- The cell reference.style
- The CellStyle object that contains the information to change.
JSException
- An exception occurred while communicating with the server.public void setCellStyleForRange(Range range, CellStyle style) throws JSException
range
- The range reference.style
- The CellStyle object that contains the information to change.
JSException
- An exception occurred while communicating with the server.public void setCellText(Cell cell, java.lang.String text) throws JSException
cell
- The cell reference.text
- The text string to set.
JSException
- An exception occurred while communicating with the server.public void setCellValue(Cell cell, JSValue value) throws JSException
cell
- The cell reference.value
- The cell value object.
JSException
- An exception occurred while communicating with the server.public void setColWidth(int start, int end, int size) throws JSException
start
- The first column (1 based).end
- The last column (1 based).size
- The size in pixels.
JSException
- An exception occurred while communicating with the server.public void setConnectAtStartup(boolean connectAtStartup)
connectAtStartup
- The connect at startup flag.public void setFileName(java.lang.String name)
name
- The full path of the book.public void setFreezePaneCell(Cell cell) throws JSException
cell
- The cell reference.
JSException
- An exception occurred while communicating with the server.public void setGridLineColor(java.awt.Color color) throws JSException
color
- The grid line color.
JSException
- An exception occurred while communicating with the server.public void setHeadingStyleR1C1(boolean set) throws JSException
set
- True if the headings are displayed as R1C1; false if the headings are displayed as A1.
JSException
- An exception occurred while communicating with the server.public void setHostName(java.lang.String host)
host
- The name of the host machine.public void setInitialSheet(short index) throws JSException
index
- The index of the sheet to set; 0 based.
JSException
- An exception occurred while communicating with the server.public void setInputCell(int count, Cell cell1, Cell cell2) throws JSException
count
- If count = 1, then only cell1 is supplied; if count = 2, then both cell1 and cell2 are supplied.cell1
- The first input cell.cell2
- The second input cell.
JSException
- An exception occurred while communicating with the server.public void setLoadbalance(boolean state)
state
- Whether to take advantage of server load balancing.public void setMessageSenderPopupState(boolean sd)
public void setMessageViewerPopupState(boolean sd)
public void setNamedRange(java.lang.String name, Range range) throws JSException
name
- The name for the range.range
- The range reference.
JSException
- An exception occurred while communicating with the server.public void setOpenMode(java.lang.String mode)
mode
- Use "shared" for shared mode; any other value will set exclusive mode.public void setOpenNewBook(boolean set)
set
- True to create a new book; false to open an existing book.public void setOpenSheet(java.lang.String sheet)
sheet
- The name of the sheet to open.public void setPassword(java.lang.String readWrite, java.lang.String readOnly, boolean encryption) throws JSException
readWrite
- The read/write password.readOnly
- The read-only password.encryption
- If true, encrypt the file.
JSException
- An exception occurred while communicating with the server.public void setPort(int port)
port
- The port number on which the server is located.public void setRangeEntryUsingArray(Range range, java.lang.Object[] values) throws JSException
range
- The range reference.values
- An array of values to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeEntryUsingVector(Range range, java.util.Vector values) throws JSException
range
- The range reference.values
- A Vector of values to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeNumberUsingArray(Range range, java.lang.Number[] numbers) throws JSException
range
- The range reference.numbers
- An array of the numbers to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeNumberUsingVector(Range range, java.util.Vector numbers) throws JSException
range
- The range reference.numbers
- The numbers to set.
JSException
- An exception occurred while communicating with the server.public void setRangeTextUsingArray(Range range, java.lang.String[] values) throws JSException
range
- The range reference.values
- An array of values to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeTextUsingVector(Range range, java.util.Vector values) throws JSException
range
- The range reference.values
- A Vector of the values to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeValuesUsingArray(Range range, JSValue[] values) throws JSException
range
- The range reference.values
- An array of the values to be set.
JSException
- An exception occurred while communicating with the server.public void setRangeValuesUsingVector(Range range, java.util.Vector values) throws JSException
range
- The range reference.values
- A Vector of the values to be set.
JSException
- An exception occurred while communicating with the server.public void setRecalcIterationNumber(int number) throws JSException
number
- The number to set.
JSException
- An exception occurred while communicating with the server.public void setRecalcIterationRange(Range range, int number, int maximum) throws JSException
range
- The range to set.number
- The iteration number.maximum
- The maximum number of times to iterate.
JSException
- An exception occurred while communicating with the server.public void setRecalcMode(boolean auto) throws JSException
auto
- True if auto recalc; false if manual recalc.
JSException
- An exception occurred while communicating with the server.public void setRecalcType(int type) throws JSException
type
- 1: recalculate by column, 2: recalculate by row, 3: recalculate by natural iteration
JSException
- An exception occurred while communicating with the server.public void setRowHeight(int start, int end, int size) throws JSException
start
- The first row.end
- The last row.size
- The size in pixels.
JSException
- An exception occurred while communicating with the server.public void setSelectionUsingRange(Range range) throws JSException
range
- The range reference.
JSException
- An exception occurred while communicating with the server.public void setSelectionUsingRanges(Range[] ranges) throws JSException
ranges
- An array of ranges to be selected.
JSException
- An exception occurred while communicating with the server.public void setSheetNameAt(short index, java.lang.String name) throws JSException
index
- The index of the sheet; 0 based.name
- The new name of the sheet.
JSException
- An exception occurred while communicating with the server.public void setSheetWorkArea(Range range) throws JSException
range
- The new work area.
JSException
- An exception occurred while communicating with the server.public void setShowCellGrid(boolean set) throws JSException
set
- True displays the cell grid.
JSException
- An exception occurred while communicating with the server.public void setShowExceptions(boolean state)
state
- The new show state.public void setShowFormatBar(boolean set)
set
- Show the format bar if true; hides it otherwise.public void setShowFormatBarFlag(boolean set)
set
- Sets the format bar flag if true; hides it otherwise.public void setShowFormulaBar(boolean set)
set
- Show the formula bar if true; hide it otherwise.public void setShowFormulaBarFlag(boolean set)
set
- Sets the formula bar flag if true; hides it otherwise.public void setShowFreezePane(boolean set) throws JSException
set
- True displays the freeze panes.
JSException
- An exception occurred while communicating with the server.public void setShowGridComponents(boolean use)
use
- If true, use the visible grid.public void setShowHeadings(boolean set) throws JSException
set
- True displays the headings.
JSException
- An exception occurred while communicating with the server.public void setShowInfoDialogs(boolean set)
set
- Show all dialogs if true; show no dialogs if false.public void setShowPopupMenu(boolean set)
set
- Allow display of the context menu if true; do not show it otherwise.public void setShowStatusBar(boolean set)
set
- Show the status bar if true, hide it otherwise.public void setShowStatusBarFlag(boolean set)
set
- Sets the status bar flag if true; hides it otherwise.public void setSortKeys(java.util.Vector sortKeys) throws JSException
sortKeys
- A vector of SortKeys.
JSException
- An exception occurred while communicating with the server.public void setSortRange(Range range) throws JSException
range
- The range to sort.
JSException
- An exception occurred while communicating with the server.public void setStatusMsg(java.lang.String str)
str
- The message to display.public void setTableRange(Range range) throws JSException
range
- The range for the table.
JSException
- An exception occurred while communicating with the server.public void setThrowExceptions(boolean state)
state
- The new throw state.public void setTimeout(int seconds) throws JSException
seconds
- The number of seconds before timing out.
JSException
- An invalid value was passed to the seconds parameter.public void setTopLeftCell(int row, int col) throws JSException
row
- The row.col
- The column.
JSException
- An exception occurred while communicating with the server.public void setTracking(java.lang.String track)
track
- If true, turn cell tracking on.public void setTrackingDownColor(java.awt.Color color)
color
- The color to use.public void setTrackingDuration(int duration)
duration
- The amount of time (in seconds).public void setTrackingUpColor(java.awt.Color color)
color
- The color to use.public void setUserName(java.lang.String name)
name
- The user name.public void setUserPassword(java.lang.String password)
password
- The user password.public void sortNow(boolean byRow) throws JSException
byRow
- True for row sorting; false for column sorting.
JSException
- An exception occurred while communicating with the server.public void start()
public void stop()
public void throwException(com.iisc.jwc.orb.CException ce, boolean javascript) throws JSException
JSException
- An exception occurred while communicating with the server.public void throwException(JSException ce, boolean javascript) throws JSException
ce
- The exception to throw.javascript
- if javascript exception should be thrown.
JSException
- JSServer exceptionpublic Range transpose(Range range) throws JSException
range
- The range to transpose.
JSException
- An exception occurred while communicating with the server.public Range[] undo(SheetHolder sheetHolder) throws JSException
sheetHolder
- After the command is undone, the sheetHolder contains the sheet where the action was undone.
JSException
- An exception occurred while communicating with the server.public void warningMsg(java.lang.String str)
str
- The message to display.
|
Email JSheet Support | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |