|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Noodle.Model
Base noodle model methods.
Defined in noodle.js
Constructor Summary | |
Noodle.Model
()
|
Method Summary | |
<static> Object
|
createDraggable()
Returns a new Draggable created for this object, or null. |
<static> Object
|
createMenu()
Returns a new menu created for this object, or null. |
<static> Object
|
createMenuItems()
Returns an array of menu items to create, or an empty array. |
<static> Object
|
getDraggable()
Returns the Draggable for this object, or null. |
<static> Object
|
getElement()
Returns the html element of the modeled object. |
<static> Object
|
getID()
Returns the html element id of the modeled object. |
<static> Object
|
getMenu()
Returns the menu for this object, or null. |
<static> Object
|
getMenuCSS()
Returns the css class for this object's menu, or empty string (""). |
<static> Object
|
getMetadata(<string> name)
Returns the thing metadata of the modeled object. |
<static> void
|
initialize()
Initializes this object. |
<static> Object
|
loadDescriptor(<function> fn)
Loads metadata descriptor data. |
<static> void
|
onDragFinish(<object> cur, <Draggable> drag)
Handles ondragfinish event for this object. |
<static> void
|
onDragStart(<object> cur, <Draggable> drag)
Handles ondragstart event for this object. |
<static> void
|
release()
Cleans up this object. |
<static> void
|
setMetadata(<string> name, <object> value)
Sets the thing metadata of the modeled object. |
Constructor Detail |
Noodle.Model()
Method Detail |
<static> Object createDraggable()
<static> Object createMenu()
<static> Object createMenuItems()
<static> Object getDraggable()
<static> Object getElement()
<static> Object getID()
<static> Object getMenu()
<static> Object getMenuCSS()
<static> Object getMetadata(<string> name)
name
- Name of metadata property to get.
<static> void initialize()
<static> Object loadDescriptor(<function> fn)
fn
- Function to call with descriptor data.
<static> void onDragFinish(<object> cur, <Draggable> drag)
cur
- Current drag operation data.
drag
- Draggable object.
<static> void onDragStart(<object> cur, <Draggable> drag)
cur
- Current drag operation data.
drag
- Draggable object.
<static> void release()
<static> void setMetadata(<string> name, <object> value)
name
- Name of metadata property to set.
value
- New value of the metadata property.
map
- Map of all metadata properties.
|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |