|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Noodle.Leftnav
Standard left hand side navigation functions.
Defined in leftnav.js
Nested Class Summary | |
<static class> |
Noodle.Leftnav.Model |
<static class> |
Noodle.Leftnav.BranchModel |
<static class> |
Noodle.Leftnav.ApplicationModel |
<static class> |
Noodle.Leftnav.ToolModel |
<static class> |
Noodle.Leftnav.WSpaceModel |
<static class> |
Noodle.Leftnav.WSpaceFolderModel |
<static class> |
Noodle.Leftnav.RowToolModel |
Constructor Summary | |
Noodle.Leftnav
()
|
Method Summary | |
<static> void
|
addWorkspace(<string> workspaceURI, <string> folderID)
Add an item to the Recently Added workspaces section There are two default Noodle.Leftnav.folderID = wsfolder;-analysis and wsfolder-recent should always exist |
<static> void
|
addWorkspaceFolder(<string> parentFolderID, <string> folderName)
Add a workspace folder to an existing workspace folder There are two default Noodle.Leftnav.folderID = wsfolder;-analysis and wsfolder-recent should always exist |
<static> void
|
addWorkspaceWithUI( <string> name, <Noodle.Page.WorkspaceType> type, <string> contextURI, <string> templateURI, <boolean> createView, <boolean> createTab, <boolean> redirect )
Creates a new workspace without a prompt for its name. |
<static> void
|
collapseBranch(<string> configurationID, <CAF.Oak.Branch> branch, <string> boughID, <optional> branchID)
Saves collapse branch state. |
<static> void
|
createChildBranches(configurationId, <string> lhsId, <CAF.Oak.Branch> branch, <array> nodeData)
Creates noodle oak child branches from JSON data. |
<static> void
|
expandBranch(<optional> configurationID, <CAF.Oak.Branch> branch, <optional> boughID, <optional> branchID)
Expands a noodle oak branch. |
<static> Object
|
getBranch(<string> branchID)
Gets the noodle branch model for the specified branch id. |
<static> Object
|
handleNoodleEvents(<string> name)
Creates a noodle event handler for leftnav branches. |
<static> Object
|
handleOakEvents(<string> name)
Creates a oak event handler for leftnav branches. |
<static> void
|
handlePageLoad(<string> ename, <Noodle.Page.Model> page)
Handles page load event. |
<static> void
|
handleTabDeselect(<string> n, <Noodle.Tab.Model> tab)
Handles tab deselection event. |
<static> void
|
handleTabSelect(<string> n, <Noodle.Tab.Model> tab)
Handles tab selection event. |
<static> void
|
handleWorkspaceAddEvent(<string> n, <event> o)
Handle node rename events from the tab. |
<static> void
|
handleWorkspaceDeleteEvent(<string> n, <string> workspaceID)
Handle workspace deletion events (to keep leftnav workspace view in sync). |
<static> void
|
handleWorkspaceFolderAddEvent(<string> n, o )
Handle workspace folder add events (to keep leftnav workspace view in sync). |
<static> void
|
handleWorkspaceRenameEvent(<string> n, <event> o)
Handle workspace rename events (to sync tabs and left nav nodes). |
<static> Object
|
modelAnnotator(<Noodle.Model> m)
Standard leftnav model annotator. |
<static> void
|
promptAddWorkspaceWithUI( <Noodle.Page.WorkspaceType> type, <string> contextURI, <string> templateURI, <boolean> createView, <boolean> createTab, <boolean> redirect )
Creates a new workspace, prompting for the name if not specified. |
<static> void
|
removeWorkspace(<string> workspaceID)
Add an item to the Recently Added workspaces section |
Constructor Detail |
Noodle.Leftnav()
Method Detail |
<static> void addWorkspace(<string> workspaceURI, <string> folderID)
workspaceURI
- Workspace to add.
folderID
- Folder to which to add workspace.
<static> void addWorkspaceFolder(<string> parentFolderID, <string> folderName)
parentFolderID
- ID of parent folder to add new folder to
folderName
- Name of new folder
<static> void addWorkspaceWithUI( <string> name, <Noodle.Page.WorkspaceType> type, <string> contextURI, <string> templateURI, <boolean> createView, <boolean> createTab, <boolean> redirect )
name
- New name for workspace.
type
- Workspace type.
contextURI
- URI of thing being analyzed (may be null or undefined).
templateURI
- URI of template workspace to copy (may be null or undefined).
createView
- True to add the workspace to the leftnav.
createTab
- True to create a new tab for the workspace.
redirect
- True to display workspace after creating.
options
- Map of options.
<static> void collapseBranch(<string> configurationID, <CAF.Oak.Branch> branch, <string> boughID, <optional> branchID)
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 createChildBranches(configurationId, <string> lhsId, <CAF.Oak.Branch> branch, <array> nodeData)
lhsId
- LHS gobal id.
branch
- Existing oak branch.
nodeData
- JSON data.
configurationID
- Portlet ID with LHS configuration.
<static> void expandBranch(<optional> configurationID, <CAF.Oak.Branch> branch, <optional> boughID, <optional> branchID)
configurationID
- PortletID with LHS configuration.
branch
- Existing oak branch.
boughID
- Logical id of bough to expand.
branchID
- Logical row id of branch to expand.
<static> Object getBranch(<string> branchID)
branchID
- Branch id (ex "wsfolder-recent").
<static> Object handleNoodleEvents(<string> name)
name
- Name of method on leftnav-branch model to call to handle event.
<static> Object handleOakEvents(<string> name)
name
- Name of method on leftnav-branch model to call to handle event.
<static> void handlePageLoad(<string> ename, <Noodle.Page.Model> page)
ename
- Event name.
page
- Loaded page.
<static> void handleTabDeselect(<string> n, <Noodle.Tab.Model> tab)
n
- Event name.
tab
- Deseleted tab.
<static> void handleTabSelect(<string> n, <Noodle.Tab.Model> tab)
n
- Event name.
tab
- Selected tab.
<static> void handleWorkspaceAddEvent(<string> n, <event> o)
n
- Event name.
o
- Event object.
<static> void handleWorkspaceDeleteEvent(<string> n, <string> workspaceID)
n
- Event name.
workspaceID
- Workspace ID.
<static> void handleWorkspaceFolderAddEvent(<string> n, o )
n
- Event name.
folderID
- - folder ID.
<static> void handleWorkspaceRenameEvent(<string> n, <event> o)
n
- Event name.
o
- Event object.
<static> Object modelAnnotator(<Noodle.Model> m)
m
- Model to annotate.
<static> void promptAddWorkspaceWithUI( <Noodle.Page.WorkspaceType> type, <string> contextURI, <string> templateURI, <boolean> createView, <boolean> createTab, <boolean> redirect )
type
- Workspace type.
contextURI
- URI of thing being analyzed (may be null or undefined).
templateURI
- URI of template workspace to copy (may be null or undefined).
createView
- True to add the workspace to the leftnav.
createTab
- True to create a new tab for the workspace.
redirect
- True to display workspace after creating.
options
- Map of options.
<static> void removeWorkspace(<string> workspaceID)
workspaceID
- Workspace to remove.
|
CAF Noodle JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |