jsm

Class JsmObject

Object
   |
   +--JsmObject
Direct Known Subclasses:
JsmCell, JsmTable, JsmTr, JsmWidget

class JsmObject


Root of all other jsm classes. It can be considered an abstract class.
Defined in net/sf/jsm/+jsmObject.js


Field Summary
<private>  Hash _attributes
          Holds all specified attributes
<private>  Hash _metaData
          Holds all specified meta data
 String className
          Holds the name of the class, in this case 'JsmObject'
 String id
          The id of the object; Has to be defined in the constructor of each object to: this.id=new Date().getTime() + "" + Math.random();
 String META_DATA_NAME_PROPERTY_PATH
          Constant: Meta data name: propertyPath: The property path to a member of variable of a JavaBean according to Jakarta BeanUtils Used to store back dirty values into the server side bean
 String META_DATA_NAME_VALUE
          Constant: Meta data name: value: For example a table cell uses this to store the value in its meta data.
 
Constructor Summary
JsmObject ()
            Can not be instatiated.
 
Method Summary
 void addAttributesToViewComponent(theViewComponent)
           Adds all the attributes of the object to the view component
 String/Array getAttribute(<String> name)
           Gets the specified attribute value or the array of attributes
 String getId()
           Get the objects id
 String/Array getMetaData(<String> name)
           Get the specified meta data value or the array of meta data
 String identify()
           Returns the identity of each object
 Object setAttribute(<String> name, <String> value)
           Add an attribute to the object
 Object setId(<String> theId)
           Set the objects id
 Object setMetaData(<String> name, <String> value)
           Add a meta data to the object
 String toString()
          

Field Detail

_attributes

<private> Hash _attributes

_metaData

<private> Hash _metaData

className

String className

id

String id

META_DATA_NAME_PROPERTY_PATH

String META_DATA_NAME_PROPERTY_PATH

META_DATA_NAME_VALUE

String META_DATA_NAME_VALUE

Constructor Detail

JsmObject

JsmObject()

Method Detail

addAttributesToViewComponent

void addAttributesToViewComponent(theViewComponent)

getAttribute

String/Array getAttribute(<String> name)

getId

String getId()

getMetaData

String/Array getMetaData(<String> name)

identify

String identify()

setAttribute

Object setAttribute(<String> name, <String> value)

setId

Object setId(<String> theId)

setMetaData

Object setMetaData(<String> name, <String> value)

toString

String toString()

jsm

Documentation generated by JSDoc on Tue Sep 26 08:42:57 2006