Class PulsarCalc

Object
   |
   +--PulsarCalc

class 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

background

Object background

button

Object button

dataTable

Object dataTable

functions

Object functions

toolbarButtons

Object toolbarButtons

Constructor Detail

PulsarCalc

PulsarCalc()

Method Detail

calculate

Number calculate(str)

create

void create(<String> toolbarId, <String> containerId, <String> sessionName)

doEdit

void doEdit()

getCellId

String getCellId(<Number> x, <Number> y)

getCellObject

Object getCellObject(<String> cellId)

getCursorPosition

String getCursorPosition()

getForeignCells

Object getForeignCells()

getForeignId

Number getForeignId(cellId)

getFormat

Format getFormat(cellId)

getInputObject

Object getInputObject()

getInputValue

String getInputValue()

getValue

String getValue(<String> cell)

isForeignCell

Boolean isForeignCell(cellId)

onCellClick

void onCellClick(<Number> x, <Number> y)

onConnectionStatusChanges

void onConnectionStatusChanges(<Boolean> status)

onCursorPositionChanges

Boolean onCursorPositionChanges(<String> cell)

onStartEditing

Boolean onStartEditing(<String> cell)

setFormat

void setFormat(<String> cellId, <Format> format)

setInputFocus

void setInputFocus(<Boolean> focus)

setInputValue

void setInputValue(<String> value)

setSize

void setSize(<Number> rows, <Number> columns)

setValue

void setValue(<String> cell, <String> value)

updateContent

void updateContent()

updateCursors

void updateCursors(<Boolean> fromMe)

updateFormat

void updateFormat()


Documentation generated by JSDoc on Tue Feb 9 05:47:39 2010