|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--PulsarCalc
Defined in pulsarcalc.js
| Field Summary | |
Object |
background
Default collection of background colors: normal, selected and f0..f12 for foreign cursors. |
Object |
button
Collection of default buttons: - (Spacer), Print, Users, Bold, Italic, Underline. |
Object |
dataTable
DataTable-element. |
Object |
functions
Functions that are supported by the praser ar defined in this object. |
Object |
toolbarButtons
Button names that will be created in the toolbar during the initialization. |
| Constructor Summary | |
PulsarCalc()
PulsarCalc is the basic constructor for the spreadsheet object. |
|
| Method Summary | |
Number
|
calculate(str)
This will iterate over all known functions and return the result of the expression. |
void
|
create(<String> toolbarId, <String> containerId, <String> sessionName)
This method creates the new PulsarCalc object. |
void
|
doEdit()
This starts the editiong of the cell where user is currently on. |
String
|
getCellId(<Number> x, <Number> y)
Convert number representation of a cell into string representation. |
Object
|
getCellObject(<String> cellId)
Returns reference to the DOM element of a particular cell |
String
|
getCursorPosition()
Returns the cell name where the own cursor is currently on |
Object
|
getForeignCells()
Positions of foreign users and cells where they currently are. |
Number
|
getForeignId(cellId)
Returns the id of a foreign user in a partucular cell. |
Format
|
getFormat(cellId)
Returns format options for a particular cell. |
Object
|
getInputObject()
Returns the input element (where we change the cell content) |
String
|
getInputValue()
Get the value of the input object |
String
|
getValue(<String> cell)
Getting a value of a particular cell |
Boolean
|
isForeignCell(cellId)
Check whether if there is somebody but me in a particular cell. |
void
|
onCellClick(<Number> x, <Number> y)
This method will be called if the user clicks on a cell of tries to change cursor position with the arrow keys. |
void
|
onConnectionStatusChanges(<Boolean> status)
This notifier will be called if connectoin status to the PULSAR server changes. |
Boolean
|
onCursorPositionChanges(<String> cell)
This notifier will be called if user is goint to change the current cell. |
Boolean
|
onStartEditing(<String> cell)
This notifier will be called if user is going to edit a particular cell. |
void
|
setFormat(<String> cellId, <Format> format)
Setting format of a particular cell. |
void
|
setInputFocus(<Boolean> focus)
Set focus to the input object or blur |
void
|
setInputValue(<String> value)
Set the value of the input object |
void
|
setSize(<Number> rows, <Number> columns)
Defining table size. |
void
|
setValue(<String> cell, <String> value)
Setting a value of a particular cell |
void
|
updateContent()
This method updates content for each cell of the table. |
void
|
updateCursors(<Boolean> fromMe)
Updates cursor of each cell of the data table. |
void
|
updateFormat()
Update format of each cell of the data table. |
| Field Detail |
Object background
Object button
Object dataTable
Object functions
Object toolbarButtons
| Constructor Detail |
PulsarCalc()
| Method Detail |
Number calculate(str)
void create(<String> toolbarId, <String> containerId, <String> sessionName)
toolbarId - The DOM-ID of the DIV-container where the toolbar will be created
containerId - The DOM-ID of the DIV-container where the table will be created
sessionName - The name of the PULSAR-session that will be shared or created
void doEdit()
String getCellId(<Number> x, <Number> y)
x - X-coordinates of a cell
y - Y-coordinates of a cell
Object getCellObject(<String> cellId)
cellId - Cell-ID
String getCursorPosition()
Object getForeignCells()
Number getForeignId(cellId)
cell - -ID
Format getFormat(cellId)
cell - -ID
Object getInputObject()
String getInputValue()
String getValue(<String> cell)
cell - Cell-ID
Boolean isForeignCell(cellId)
cell - -ID
void onCellClick(<Number> x, <Number> y)
x - X-position of the cursor
y - Y-position of the cursor
void onConnectionStatusChanges(<Boolean> status)
status - Current connection status: true - connected, false - not connected.
Boolean onCursorPositionChanges(<String> cell)
cell - Cell-ID where the user is going to change to.
Boolean onStartEditing(<String> cell)
cell - Cell-ID where the user is going to change to.
void setFormat(<String> cellId, <Format> format)
cellId - Cell-ID
format - New format or new format elements
void setInputFocus(<Boolean> focus)
focus - true - focus will be set, false - object will be blured.
void setInputValue(<String> value)
value - New value
void setSize(<Number> rows, <Number> columns)
rows - Rows number
columns - Columns number
void setValue(<String> cell, <String> value)
cell - Cell name
value - New value
void updateContent()
void updateCursors(<Boolean> fromMe)
fromMe - true - if called by me, false - if called by another user
void updateFormat()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||