|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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 |
<private> Hash _attributes
<private> Hash _metaData
String className
String id
this.id=new Date().getTime() + "" + Math.random();
String META_DATA_NAME_PROPERTY_PATH
String META_DATA_NAME_VALUE
Constructor Detail |
JsmObject()
Method Detail |
void addAttributesToViewComponent(theViewComponent)
theViewComponent
- The view component, eg. document.createElement("table");
String/Array getAttribute(<String> name)
name
- Optional: Name of the attribute
String getId()
String/Array getMetaData(<String> name)
name
- Optional: Name of the meta data
String identify()
Object setAttribute(<String> name, <String> value)
name
- Name of the attribute
value
- Value of the attribute
Object setId(<String> theId)
theId
-
Object setMetaData(<String> name, <String> value)
name
- Name of the meta data
value
- Value of the meta data
String toString()
|
jsm | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |