|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Noodle.Model | +--Noodle.Portlet.Model
Base noodle portlet model methods.
Defined in portlet.js
Constructor Summary | |
Noodle.Portlet.Model
()
|
Method Summary | |
<static> void
|
_copyTo(pageID, name)
Copy portlet to the specified page. |
<static> void
|
_del()
Delete implementation. |
<static> Object
|
allowDragDrop(<object> cur, <Draggable> drag, <Droppable> drop)
Returns true if this draggable is droppable. |
<static> void
|
attachResize()
Attach drag-to-resize behavior to this portlet. |
<static> void
|
attachSelect()
Attach click-to-select behavior to this portlet. |
<static> void
|
autoPosition()
Make this portlet a hobo. |
<static> void
|
autoSize()
Make this portlet auto-sized. |
<static> Object
|
canAddToHome()
True if current user can add this portlet to user's home. |
<static> Object
|
canMaximize()
True if current user can maximize this portlet. |
<static> Object
|
canMinimize()
True if current user can minimize this portlet. |
<static> Object
|
canNormal()
True if current user can restore this portlet's window state. |
<static> void
|
copyTo()
Copy contents of the workspace picker to the page. |
<static> Object
|
createDraggable()
Create noodle portlet draggable items. |
<static> Object
|
createMenuItems()
Create noodle portlet menu items. |
<static> void
|
del()
Deletes this portlet. |
<static> void
|
detachResize()
Detach drag-to-resize behavior from this portlet. |
<static> void
|
detachSelect()
Detach click-to-select behavior from this portlet. |
<static> void
|
drawBorder(<boolean> show)
Shows/hides this portlet's border, but does not change the portlet's layout state (use setBordered() instead). |
<static> void
|
drawTitlebar(<boolean> show)
Shows/hides this portlet's titlebar, but does not change the portlet's layout state (use setTitlebared() instead). |
<static> void
|
edit()
Toggles portlet into edit mode. |
<static> void
|
editSubmit()
Submits edit mode. |
<static> Object
|
editValidate()
Validates edit mode. |
<static> void
|
float(<Position.Rect> rect)
Makes this portlet absolutely positioned. |
<static> Object
|
getBody()
Inner portlet content container. |
<static> Object
|
getBodyOrOther()
Inner portlet content container, or whatever portlet panel is visible (like help mode or edit mode, etc.) |
<static> Object
|
getContainer()
Outer portlet container. |
<static> Object
|
getContentURL(<boolean> resetState)
Gets the async-content url for this portlet. |
<static> Object
|
getHorizontalPadding()
Calculate's portlet's horizontal padding. |
<static> Object
|
getMenuCSS()
Get noodle portlet menu CSS. |
<static> Object
|
getMode()
Returns the current mode. |
<static> Object
|
getModes()
List of modes the portlet has. |
<static> Object
|
getPage()
Object model of this portlet's page. |
<static> Object
|
getPortletMode()
Returns the current portlet-mode. |
<static> Object
|
getPortletModes()
List the portlet-modes the portlet has. |
<static> Object
|
getPropertiesModeLabel(<string> mode)
Localized label for specified mode. |
<static> Object
|
getPropertiesModes()
List the properties-modes the portlet has. |
<static> Object
|
getScratchDbID()
Calculate scratch thing's db id. |
<static> Object
|
getTitlebar()
Portlet titlebar. |
<static> Object
|
getVerticalPadding()
Calculate's portlet's vertical padding. |
<static> Object
|
getWindowState()
Returns portlet's current window state ("normal", "minimized", or "maximized"). |
<static> Object
|
getWiring(<string> name)
Returns the thing wiring of the modeled object. |
<static> Object
|
hasMode(<string> mode)
True if portlet has the specified mode. |
<static> Object
|
hasPortletMode(<string> mode)
True if portlet has the specified portlet-mode. |
<static> Object
|
hasPropertiesMode(<string> mode)
True if portlet has specified properties-mode. |
<static> void
|
help()
Toggles portlet into help mode. |
<static> void
|
initialize()
Initialize noodle portlet. |
<static> Object
|
isBordered()
True if portlet's border is displayed. |
<static> Object
|
isFloated()
True if this portlet is a floater. |
<static> Object
|
isMaximized()
True if portlet is minimized. |
<static> Object
|
isMinimized()
True if portlet is minimized. |
<static> Object
|
isPositioned()
True if portlet has been manually positioned. |
<static> Object
|
isSized()
True if portlet has been manually sized. |
<static> Object
|
isStyled()
True if portlet has been manually styled. |
<static> Object
|
isTitlebared()
True if portlet's titlebar is displayed. |
<static> void
|
layoutMode()
Toggles portlet into layout mode. |
<static> void
|
layoutSubmit()
Submits layout properties panel. |
<static> void
|
load()
Further initializes portlet once page is loaded. |
<static> void
|
manualPosition()
Find this portlet a home. |
<static> void
|
manualSize()
Make this portlet manual-sized. |
<static> void
|
maximize()
Maximizes this portlet's window. |
<static> void
|
metadataMode()
Toggles portlet into metadata mode. |
<static> void
|
metadataSubmit()
Submits metadata properties panel. |
<static> Object
|
metadataValidate()
Validates metadata properties panel. |
<static> void
|
minimize()
Minimizes this portlet's window. |
<static> void
|
normal()
Restores this portlet's window. |
<static> void
|
onDragFinish(cur, drag)
Called when the portlet finishes dragging. |
<static> void
|
onDragStart(cur, drag)
Called when the portlet start to be dragged. |
<static> void
|
onExpertMode(<event> event)
Handles expertMode changes for the this portlet. |
<static> void
|
onResizeFinish(<object> cur, <element> handle, <Position.Point> mouse)
Handles onresizefinish event for this portlet. |
<static> void
|
onResizeStart(<object> cur, <element> handle, <Position.Point> mouse)
Handles onresizestart event for this portlet. |
<static> void
|
onResizing(<object> cur, <element> handle, <Position.Point> mouse)
Handles onresizing event for this portlet. |
<static> void
|
onUpdateContentSuccess(<string> html)
Refreshes this portlet's content with the specified html. |
<static> void
|
onUpdateMetadata(<event> event)
Handle update-metadata events for this portlet. |
<static> void
|
onUpdatePageLayout(<event> event)
Handle update-page-layout events for this portlet. |
<static> void
|
onUpdateWiring(<event> event)
Handle update-wiring events for this portlet. |
<static> void
|
permissions()
Toogles portlet into permissions mode |
<static> void
|
properties()
Toggles portlet into properties mode. |
<static> void
|
propertiesSubmit()
Submits metadata properties panel. |
<static> Object
|
propertiesValidate()
Validates metadata properties panel. |
<static> Object
|
recalculateContainerWidth()
Recalculates whath the portlet's container width should be for the portlet's current body width. |
<static> void
|
release()
Release noodle portlet data structures. |
<static> void
|
select(<boolean> scroll)
Selects this portlet (makes it top-most, etc). |
<static> void
|
setBordered(<boolean> show)
Shows/hides this portlet's border. |
<static> void
|
setFloated(<boolean> float)
Floats/unfloats this portlet. |
<static> void
|
setMaximized(maximize)
Maximizes/restores this portlet's window. |
<static> void
|
setMinimized(<boolean> minimize)
Minimizes/restores this portlet's window. |
<static> void
|
setMode(<string> mode)
Sets the current mode. |
<static> void
|
setPortletMode(<string> mode)
Sets the current portlet-mode. |
<static> void
|
setPositioned(position)
Flags this portlet as manually positioned. |
<static> void
|
setSized(<string> width, <string> height)
Resizes this portlet. |
<static> void
|
setStyled(<string> cssClass, <string> cssStyle, <string> bgImg)
Restyles this portlet. |
<static> void
|
setTitlebared(<boolean> show)
Shows/hides this portlet's titlebar. |
<static> void
|
setWindowState(<string> state)
Sets the portlet's window state ("normal", "minimized", or "maximized"). |
<static> void
|
setWiring(<string> name, <Noodle.Portlet.WiredProperty> value)
Sets the thing wiring of the modeled object. |
<static> Object
|
toggleMode(<string> mode)
Hides div for current mode, and creates div for specified mode. |
<static> void
|
togglePosition()
Toggles between auto- and manual-positioned. |
<static> void
|
toggleSize()
Toggles between auto- and manual-sized. |
<static> void
|
unfloat(<element> cell)
Makes this portlet positioned in a table. |
<static> void
|
updateContent(<boolean> resetState)
Refreshes this portlet's content from the server. |
<static> void
|
updateTitlebar()
Update freshly rendered titlebar with current titlebar state. |
<static> void
|
view()
Toggles portlet into view mode. |
<static> void
|
wiringMode()
Toggles portlet into wiring mode. |
<static> void
|
wiringSubmit()
Submits wiring properties panel. |
Constructor Detail |
Noodle.Portlet.Model()
Method Detail |
<static> void _copyTo(pageID, name)
pageID
- Page to copy to.
name
- Portlet name.
<static> void _del()
<static> Object allowDragDrop(<object> cur, <Draggable> drag, <Droppable> drop)
cur
- Current drag operation data.
drag
- Draggable object.
drop
- Droppable object.
<static> void attachResize()
<static> void attachSelect()
<static> void autoPosition()
<static> void autoSize()
<static> Object canAddToHome()
<static> Object canMaximize()
<static> Object canMinimize()
<static> Object canNormal()
<static> void copyTo()
<static> Object createDraggable()
<static> Object createMenuItems()
<static> void del()
<static> void detachResize()
<static> void detachSelect()
<static> void drawBorder(<boolean> show)
show
- True to show, false to hide (defaults to true).
<static> void drawTitlebar(<boolean> show)
show
- True to show, false to hide (default to true).
<static> void edit()
<static> void editSubmit()
<static> Object editValidate()
<static> void float(<Position.Rect> rect)
rect
- New absolute positioning rectangle.
<static> Object getBody()
<static> Object getBodyOrOther()
<static> Object getContainer()
<static> Object getContentURL(<boolean> resetState)
resetState
- True to kill page-flow state (defaults to true).
<static> Object getHorizontalPadding()
<static> Object getMenuCSS()
<static> Object getMode()
<static> Object getModes()
<static> Object getPage()
<static> Object getPortletMode()
<static> Object getPortletModes()
<static> Object getPropertiesModeLabel(<string> mode)
mode
- Mode.
<static> Object getPropertiesModes()
<static> Object getScratchDbID()
<static> Object getTitlebar()
<static> Object getVerticalPadding()
<static> Object getWindowState()
<static> Object getWiring(<string> name)
name
- Name of wired property to get.
<static> Object hasMode(<string> mode)
mode
- Mode (like "wiring").
<static> Object hasPortletMode(<string> mode)
mode
- Portlet-mode ("view", "edit", or "help").
<static> Object hasPropertiesMode(<string> mode)
mode
- Properties-mode (like "properties", "layout", "wiring", etc.).
<static> void help()
<static> void initialize()
<static> Object isBordered()
<static> Object isFloated()
<static> Object isMaximized()
<static> Object isMinimized()
<static> Object isPositioned()
<static> Object isSized()
<static> Object isStyled()
<static> Object isTitlebared()
<static> void layoutMode()
<static> void layoutSubmit()
<static> void load()
<static> void manualPosition()
<static> void manualSize()
<static> void maximize()
<static> void metadataMode()
<static> void metadataSubmit()
<static> Object metadataValidate()
<static> void minimize()
<static> void normal()
<static> void onDragFinish(cur, drag)
<static> void onDragStart(cur, drag)
<static> void onExpertMode(<event> event)
event
- Event object.
<static> void onResizeFinish(<object> cur, <element> handle, <Position.Point> mouse)
cur
- Current resize operation data.
handle
- Resize handle.
mouse
- Mouse coords top, left point.
<static> void onResizeStart(<object> cur, <element> handle, <Position.Point> mouse)
cur
- Current resize operation data.
handle
- Resize handle.
mouse
- Mouse coords top, left point.
<static> void onResizing(<object> cur, <element> handle, <Position.Point> mouse)
cur
- Current resize operation data.
handle
- Resize handle.
mouse
- Mouse coords top, left point.
<static> void onUpdateContentSuccess(<string> html)
html
- Updated content.
<static> void onUpdateMetadata(<event> event)
event
- Event.
<static> void onUpdatePageLayout(<event> event)
event
- Event.
<static> void onUpdateWiring(<event> event)
event
- Event.
<static> void permissions()
<static> void properties()
<static> void propertiesSubmit()
<static> Object propertiesValidate()
<static> Object recalculateContainerWidth()
<static> void release()
<static> void select(<boolean> scroll)
scroll
- True to scroll portlet into view (defaults to false).
<static> void setBordered(<boolean> show)
show
- True to show, false to hide (defaults to true).
<static> void setFloated(<boolean> float)
float
- True to float (defaults to true).
<static> void setMaximized(maximize)
minimize
- True to minimize, false to restore (defaults to true).
<static> void setMinimized(<boolean> minimize)
minimize
- True to minimize, false to restore (defaults to true).
<static> void setMode(<string> mode)
mode
- Mode to make current.
<static> void setPortletMode(<string> mode)
mode
- Portlet-mode to make current.
<static> void setPositioned(position)
positioned
- True to flag as positioned, false to flag as hobo (defaults to true).
<static> void setSized(<string> width, <string> height)
width
- New width.
height
- New height.
size
- True to size manually to current size, false to auto-size.
<static> void setStyled(<string> cssClass, <string> cssStyle, <string> bgImg)
cssClass
- New css class.
cssStyle
- New css style.
bgImg
- New skin background-image.
<static> void setTitlebared(<boolean> show)
show
- True to show, false to hide (default to true).
<static> void setWindowState(<string> state)
state
- Window state.
<static> void setWiring(<string> name, <Noodle.Portlet.WiredProperty> value)
name
- Name of wired property to set.
value
- New value of the wired property.
map
- Map of all wired properties.
<static> Object toggleMode(<string> mode)
mode
- New mode name.
<static> void togglePosition()
<static> void toggleSize()
<static> void unfloat(<element> cell)
cell
- Table column to which to add this portlet.
<static> void updateContent(<boolean> resetState)
resetState
- True to kill page-flow state (defaults to true).
<static> void updateTitlebar()
<static> void view()
<static> void wiringMode()
<static> void wiringSubmit()
|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |