|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Noodle
Defined in noodle.js
Nested Class Summary | |
<static class> |
Noodle.Leftnav |
<static class> |
Noodle.HTML |
<static class> |
Noodle.CSS |
<static class> |
Noodle.Model |
<static class> |
Noodle.Page |
<static class> |
Noodle.PageAndPortletModelHelpers |
<static class> |
Noodle.Portlet |
<static class> |
Noodle.Row |
<static class> |
Noodle.Tab |
<static class> |
Noodle.User |
Field Summary | |
<static> Object |
ALL
{int} All right-bits. |
<static> Object |
ATTR
{int} Property not intended to be changed by end user. |
<static> Object |
BOOLEAN
{int} Boolean data-type. |
<static> Object |
canvasMinHeight
{int} Minimum height for canvas in pixels. |
<static> Object |
canvasMinWidth
{int} Minimum width for canvas in pixels. |
<static> Object |
CLOB
{int} String (unbounded) data-type. |
<static> Object |
CONFIG
{int} Property persisted per-portlet-type. |
<static> Object |
CONTENT
{int} Property persisted per-portlet-instance. |
<static> Object |
contextPath
{string} Noode webapp context path. |
<static> Object |
CREATE_CONTAINER
{int} Create-container right-bits. |
<static> Object |
CREATE_ITEM
{int} Create-non-container right-bits. |
<static> Object |
CREATE_REFERENCE
{int} Add-reference right-bits. |
<static> Object |
DATETIME
{int} Date data-type. |
<static> Object |
DELETE
{int} Delete right-bits. |
<static> Object |
DELETE_REFERENCE
{int} Remove-reference right-bits. |
<static> Object |
DISABLED
{int} Portlet enabled. |
<static> Object |
ENABLED
{int} Portlet enabled. |
<static> Object |
FLOAT
{int} Real-number data-type. |
<static> Object |
HIDDEN
{int} Portlet enabled. |
<static> Object |
INTEGER
{int} Integer data-type. |
<static> Object |
LONG
{int} Long-integer data-type. |
<static> Object |
MODIFY
{int} Update right-bits. |
<static> Object |
MODIFY_PERMISSION
{int} Change-permission right-bits. |
<static> Object |
MODIFY_REFERENCE
{int} Change-reference right-bits. |
<static> Object |
NONE
{int} No right-bits. |
<static> Object |
PORTLET_MODIFY_PROP_USER
{int} modify user-scoped properties right-bits. |
<static> Object |
READ
{int} View right-bits. |
<static> Object |
RELATED_CHILDREN
{int} Property is a related-child. |
<static> Object |
RELATED_CONTAINERS
{int} Property is a related-container. |
<static> Object |
requestScope
{string} Scope for ajax requests. |
<static> Object |
SESSION
{int} Property persisted per-session. |
<static> Object |
STRING
{int} String (fixed-length) data-type. |
<static> Object |
SYSTEM
{int} Property defined by system at run-time. |
<static> Object |
USER
{int} Property persisted per-user. |
Constructor Summary | |
Noodle
()
|
Method Summary | |
<static> Object
|
addModelAnnotator(<function> fn, key)
Registers a new model-annotator function, to be invoked every time a new noodle model is initialized. |
<static> Object
|
ancestor(element)
Returns the closest noodle model object for the specified id or html element. |
<static> Object
|
baseModelAnnotator(<Noodle.Model> m)
Base noodle model annotator. |
<static> Object
|
can(<int> needs, <int> has)
Returns true if the current user has the right bits she needs. |
<static> Object
|
convert(<DataType> type, value)
Converts specified value to specified type. |
<static> Object
|
dispatchToModelMethod(<string> methodName)
Creates an event subscriber which dispatches to the specified method of the model for which the event was published. |
<static> void
|
error(<string> err, <string[]> args)
Display error message for specified error id. |
<static> Object
|
getExpertMode()
Editor expert-mode. |
<static> void
|
go(<string> url, options)
Opens the specified page. |
<static> Object
|
isLoadPagesAsync()
True if navigating loads pages asynchronously. |
<static> Object
|
model(x)
Builds the noodle model object for the specified id, html element, or initial object. |
<static> void
|
release()
Clean up any data that needs to be cleared when editor is closed. |
<static> Object
|
removeModelAnnotator(key)
Unregisters an existing model-annotator function. |
<static> void
|
setExpertMode(<string> mode)
Editor expert-mode. |
<static> void
|
waitForDND(<function> fn)
Executes specified function if noodle drag-n-drop api is available now, or executes function when noodle drag-n-drop api becomes available. |
<static> void
|
warn(<string> err, <string[]> args)
Display warning message for specified error id. |
Field Detail |
<static> Object ALL
<static> Object ATTR
<static> Object BOOLEAN
<static> Object canvasMinHeight
<static> Object canvasMinWidth
<static> Object CLOB
<static> Object CONFIG
<static> Object CONTENT
<static> Object contextPath
<static> Object CREATE_CONTAINER
<static> Object CREATE_ITEM
<static> Object CREATE_REFERENCE
<static> Object DATETIME
<static> Object DELETE
<static> Object DELETE_REFERENCE
<static> Object DISABLED
<static> Object ENABLED
<static> Object FLOAT
<static> Object HIDDEN
<static> Object INTEGER
<static> Object LONG
<static> Object MODIFY
<static> Object MODIFY_PERMISSION
<static> Object MODIFY_REFERENCE
<static> Object NONE
<static> Object PORTLET_MODIFY_PROP_USER
<static> Object READ
<static> Object RELATED_CHILDREN
<static> Object RELATED_CONTAINERS
<static> Object requestScope
<static> Object SESSION
<static> Object STRING
<static> Object SYSTEM
<static> Object USER
Constructor Detail |
Noodle()
Method Detail |
<static> Object addModelAnnotator(<function> fn, key)
fn
- Function to invoke. Passed a single arg -- the initial model object; must return the annotated model object (which may be the same object as passed, or may be different).
key
- Key to use to unregister the function (defaults to the function itself).
<static> Object ancestor(element)
element
- Element id or dom element.
<static> Object baseModelAnnotator(<Noodle.Model> m)
m
- Model to annotate.
<static> Object can(<int> needs, <int> has)
needs
- Bits user needs.
has
- Bits user has.
<static> Object convert(<DataType> type, value)
type
- Type to which to convert.
value
- Value to convert.
<static> Object dispatchToModelMethod(<string> methodName)
methodName
- Name of method on portlet model to call to handle event.
<static> void error(<string> err, <string[]> args)
err
- Error message id (from Noodle.RESOURCES).
args
- Message arguments.
<static> Object getExpertMode()
<static> void go(<string> url, options)
url
- URL of page to open.
options
- Map of options.
method
- HTTP method (defaults to "get").
parameters
- Map of request parameters (ie post body; defaults to empty).
skipHistory
- True to avoid a history entry with async page loading (defaults to false).
<static> Object isLoadPagesAsync()
<static> Object model(x)
x
- Element id, dom element, or initial object.
<static> void release()
<static> Object removeModelAnnotator(key)
key
- Key used originally to register the function.
<static> void setExpertMode(<string> mode)
mode
- Expert mode.
<static> void waitForDND(<function> fn)
fn
- Function to execute.
<static> void warn(<string> err, <string[]> args)
err
- Error message id (from Noodle.RESOURCES).
args
- Message arguments.
|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |