|
Community Map Builder 21 Aug 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Listener | +--ModelBase
Defined in ModelBase.js
Author: Cameron Shorter
Field Summary | |
Object |
async
|
Object |
config
Widgets can place configurations in a model. |
Object |
contentType
|
Object |
id
|
Object |
modelNode
|
Object |
parentModel
|
Object |
template
|
Object |
title
|
Object |
url
|
Fields inherited from class Listener |
listeners, values
|
Constructor Summary | |
ModelBase
(modelNode, parentModel)
Base Model class to be inherited by all Model objects and provdes methods and properties common to all models. |
Method Summary | |
void
|
clearModel(objRef)
Listener registered with the parent model to remove the doc and url of child models whenever the parent is reloaded. |
Object
|
createObject(configNode)
Creates all mapbuilder JavaScript objects based on the Object nodes defined in the configuration file. |
void
|
deleteTemplates()
deletes all template models and clears their widgets |
void
|
finishLoading()
Common steps to be carried out after all manner of model loading Called to set the namespace for XPath selections and call the loadModel listeners. |
Object
|
getXpathValue(objRef,xpath)
Get the value of a node as selected by an XPath expression.1 |
void
|
init(objRef)
Listener registered with the parent model to call init listeners when the parent model is init'ed |
void
|
loadModelDoc(objRef)
Load a Model's document. |
void
|
loadObjects(objectXpath)
Creates all the mapbuilder objects from the config file as selected by the XPath value passed in. |
void
|
newRequest(objRef, httpPayload)
Load XML for a model from an httpPayload object. |
void
|
parseConfig(objRef)
Initialization of all javascript model, widget and tool objects for this model. |
void
|
refresh(objRef)
Listener registered with the parent model to call refresh listeners when the model document is loaded |
void
|
saveModel(objRef)
save the model by posting it to the serializeUrl, which is defined as a property of config. |
void
|
setModel(objRef,newModel)
Set the model's XML document using an XML object as a parameter. |
Object
|
setXpathValue(objRef,xpath,value,refresh)
Update the value of a node within this model's XML document. |
Methods inherited from class Listener |
addListener, addFirstListener, removeListener, callListeners, setParam, getParam
|
Field Detail |
Object async
Object config
Object contentType
Object id
Object modelNode
Object parentModel
Object template
Object title
Object url
Constructor Detail |
ModelBase(modelNode, parentModel)
modelNode
- The model's XML object node from the configuration document.
parentModel
- The model object that this model belongs to.
Method Detail |
void clearModel(objRef)
objRef
- Pointer to this object.
Object createObject(configNode)
configNode
- The node from config for the model to be created
void deleteTemplates()
void finishLoading()
Object getXpathValue(objRef,xpath)
objRef
- Reference to this node.
xpath
- XPath of the node to update.
void init(objRef)
objRef
- Pointer to this object.
void loadModelDoc(objRef)
objRef
- Pointer to the model object being loaded.
void loadObjects(objectXpath)
objectXpath
- The XPath for the set of nodes being created
void newRequest(objRef, httpPayload)
objRef
- Pointer to the model object being loaded.
httpPayload
- an object to fully specify the request to be made
void parseConfig(objRef)
objRef
- Pointer to this object.
void refresh(objRef)
objRef
- Pointer to this object.
void saveModel(objRef)
objRef
- Pointer to this object.
void setModel(objRef,newModel)
objRef
- Pointer to this object.
newModel
- XML object to be inserted into the new model.
Object setXpathValue(objRef,xpath,value,refresh)
objRef
- Reference to this node.
xpath
- Xpath of the node to update.
value
- Node's new value.
refresh
- determines if the model should be refreshed (optional).
|
Community Map Builder 21 Aug 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |