C# 클래스 Orchard.UI.Navigation.NavigationHelper

파일 보기 프로젝트 열기: ucdavis/Orchard

공개 메소드들

메소드 설명
BuildLocalMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic

Builds a local menu item shape.

BuildMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic

Builds a menu item shape.

FindParentLocalTask ( Stack selectedPath ) : MenuItem

Find the first level in the selection path, starting from the bottom, that is not a local task.

PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void

Populates the local menu shapes.

PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, Stack selectedPath ) : void

Populates the local menu starting from the first non local task parent.

PopulateMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void

Populates the menu shapes.

RouteMatches ( RouteValueDictionary itemValues, RouteValueDictionary requestValues ) : bool

Determines if a menu item corresponds to a given route.

SetSelectedPath ( IEnumerable menuItems, System.Web.Routing.RouteData currentRouteData ) : Stack

Identifies the currently selected path, starting from the selected node.

메소드 상세

BuildLocalMenuItemShape() 공개 정적인 메소드

Builds a local menu item shape.
public static BuildLocalMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic
shapeFactory dynamic The shape factory.
parentShape dynamic The parent shape.
menu dynamic The menu shape.
menuItem MenuItem The menu item to build the shape for.
리턴 dynamic

BuildMenuItemShape() 공개 정적인 메소드

Builds a menu item shape.
public static BuildMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic
shapeFactory dynamic The shape factory.
parentShape dynamic The parent shape.
menu dynamic The menu shape.
menuItem MenuItem The menu item to build the shape for.
리턴 dynamic

FindParentLocalTask() 공개 정적인 메소드

Find the first level in the selection path, starting from the bottom, that is not a local task.
public static FindParentLocalTask ( Stack selectedPath ) : MenuItem
selectedPath Stack The selection path stack. The bottom node is the currently selected one.
리턴 MenuItem

PopulateLocalMenu() 공개 정적인 메소드

Populates the local menu shapes.
public static PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
menuItems IEnumerable The current level to populate.
리턴 void

PopulateLocalMenu() 공개 정적인 메소드

Populates the local menu starting from the first non local task parent.
public static PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, Stack selectedPath ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
selectedPath Stack The selection path.
리턴 void

PopulateMenu() 공개 정적인 메소드

Populates the menu shapes.
public static PopulateMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
menuItems IEnumerable The current level to populate.
리턴 void

RouteMatches() 공개 정적인 메소드

Determines if a menu item corresponds to a given route.
public static RouteMatches ( RouteValueDictionary itemValues, RouteValueDictionary requestValues ) : bool
itemValues RouteValueDictionary The menu item.
requestValues RouteValueDictionary The route data.
리턴 bool

SetSelectedPath() 공개 정적인 메소드

Identifies the currently selected path, starting from the selected node.
public static SetSelectedPath ( IEnumerable menuItems, System.Web.Routing.RouteData currentRouteData ) : Stack
menuItems IEnumerable All the menuitems in the navigation menu.
currentRouteData System.Web.Routing.RouteData The current route data.
리턴 Stack