|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Noodle.Model | +--Noodle.Leftnav.Model
Noodle leftnav container model.
Defined in leftnav.js
Constructor Summary | |
Noodle.Leftnav.Model
()
|
Method Summary | |
<static> void
|
collapseLeftNav(<boolean> preserveState)
Display left nav in collapsed state. |
<static> void
|
displayLeftNav(<boolean> preserveState)
Displays the left nav expanded or collapsed. |
<static> void
|
expandLeftNav(<boolean> preserveState)
Display left nav in expanded state. |
<static> void
|
hideDragResize(<object> event)
Hide drag resize icon. |
<static> void
|
highlightSelectedBranch(thingID)
This function highlights the branch for the current page. |
<static> void
|
initialize()
Initialize noodle leftnav model. |
<static> void
|
layoutComponents()
Set positioning, widths, paddings, and borders of the left nav based upon the current left nav state. |
<static> void
|
load()
Loads the leftnav. |
<static> void
|
onLeftNavDrag(<object> draggableObject, <object> event)
Drag event handler called as left nav resize icon is dragged. |
<static> void
|
onLeftNavDragEnd(<object> draggableObject, <object> event)
Drag event handler called when drag is completed (user releases mouse button). |
<static> void
|
onLeftNavDragStart(<object> draggableObject, <object> event)
Drag event handler called when drag is initiated.. |
<static> void
|
onWindowResize()
Called on window resize to resize the leftnav's height. |
<static> void
|
preserveLeftNavCollapseState()
Save collapse state to the user portlet preferences. |
<static> void
|
preserveLeftNavSelectedTab(index)
Save which tab has been selected to the server. |
<static> void
|
preserveLHSPosition(<String> configurationID, <int> xStartPosition, <int> xLastPosition)
Save the initial start position and last position of the left nav resize icon to the user portlet preferences. |
<static> void
|
refresh()
Refresh the LHS after flushing the server side caching |
<static> void
|
release()
Releases tabs data structure. |
<static> void
|
setUserPreferences(<int> selectedTabIndex, <boolean> showLHS, <int> xLHSDragStart, <int> xLHSDragLast)
Set the left nav user portlet preferences. |
<static> void
|
showDragResize(<object> event)
Display drag resize icon. |
<static> void
|
toggleTab(<int> index, preserve)
Toggles specified leftnav tab visible. |
<static> void
|
unhighlightSelectedBranch(thingID)
This function removes highlighting for the specified page id. |
Constructor Detail |
Noodle.Leftnav.Model()
Method Detail |
<static> void collapseLeftNav(<boolean> preserveState)
preserveState
- Preserve the collapsed state to the portlet.
<static> void displayLeftNav(<boolean> preserveState)
preserveState
- Preserve the expanded or collapsed state to the portlet.
<static> void expandLeftNav(<boolean> preserveState)
preserveState
- Preserve the expanded state to the portlet.
<static> void hideDragResize(<object> event)
event
- Mouse event.
<static> void highlightSelectedBranch(thingID)
<static> void initialize()
<static> void layoutComponents()
<static> void load()
<static> void onLeftNavDrag(<object> draggableObject, <object> event)
draggableObject
- Left nav draggable icon.
event
- Mouse event.
<static> void onLeftNavDragEnd(<object> draggableObject, <object> event)
draggableObject
- Left nav draggable icon.
event
- Mouse event.
<static> void onLeftNavDragStart(<object> draggableObject, <object> event)
draggableObject
- Left nav draggable icon.
event
- Mouse event.
<static> void onWindowResize()
<static> void preserveLeftNavCollapseState()
<static> void preserveLeftNavSelectedTab(index)
<static> void preserveLHSPosition(<String> configurationID, <int> xStartPosition, <int> xLastPosition)
configurationID
- Portlet ID for left nav.
xStartPosition
- Initial start position of left nav resize icon.
xLastPosition
- Last position of the left nav resize icon.
<static> void refresh()
configurationID
- PortletID with LHS configuration.
branch
- Existing oak branch.
boughID
- Logical id of bough to collapse.
branchID
- Logical row id of branch to collapse.
<static> void release()
<static> void setUserPreferences(<int> selectedTabIndex, <boolean> showLHS, <int> xLHSDragStart, <int> xLHSDragLast)
selectedTabIndex
- Index of the selected LHS tab.
showLHS
- Boolean indicator of whether to display LHS in expanded or collapsed state.
xLHSDragStart
- Initial right x coordinate position of LHS.
xLHSDragLast
- Last resized resize x coordinate position of LHS.
<static> void showDragResize(<object> event)
event
- Mouse event.
<static> void toggleTab(<int> index, preserve)
index
- Index of tab to show.
<static> void unhighlightSelectedBranch(thingID)
|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |