Package org.javlo.helper
Class XHTMLNavigationHelper
- java.lang.Object
-
- org.javlo.helper.XHTMLNavigationHelper
-
public class XHTMLNavigationHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description XHTMLNavigationHelper()
-
Method Summary
-
-
-
Method Detail
-
getBreadcrumb
public static String getBreadcrumb(ContentContext ctx) throws Exception
- Throws:
Exception
-
getBreadcrumb
public static String getBreadcrumb(ContentContext ctx, boolean displayRoot) throws Exception
- Throws:
Exception
-
getBreadcrumbList
public static String getBreadcrumbList(ContentContext ctx) throws Exception
- Throws:
Exception
-
getBreadcrumbList
public static String getBreadcrumbList(ContentContext ctx, boolean withRoot) throws Exception
- Throws:
Exception
-
getRSSHeader
public static final String getRSSHeader(ContentContext ctx, MenuElement page) throws Exception
- Throws:
Exception
-
menuExist
public static boolean menuExist(ContentContext ctx, int level) throws Exception
- Throws:
Exception
-
renderComboNavigation
public static String renderComboNavigation(ContentContext ctx, Collection<MenuElement> pages) throws Exception
- Throws:
Exception
-
renderComboNavigation
public static String renderComboNavigation(ContentContext ctx, Collection<MenuElement> pages, String id, String currentPath, boolean filter) throws Exception
- Throws:
Exception
-
renderComboNavigation
public static String renderComboNavigation(ContentContext ctx, MenuElement rootPage, String id, String currentValue, boolean filter) throws Exception
- Throws:
Exception
-
renderPageResult
public static String renderPageResult(ContentContext ctx, MenuElement page, String selectJSMethod) throws Exception
- Throws:
Exception
-
renderPageResult
public static String renderPageResult(ContentContext ctx, SearchResult.SearchElement page, String selectJSMethod) throws Exception
- Throws:
Exception
-
renderComboNavigationAjax
public static String renderComboNavigationAjax(ContentContext ctx, MenuElement rootPage, String id, String currentValue, String selectJSMethod) throws Exception
- Throws:
Exception
-
renderDefinedMenu
public static String renderDefinedMenu(ContentContext ctx, boolean onlyVisible, boolean moveIcon) throws Exception
- Throws:
Exception
-
renderDefinedMenu
public static String renderDefinedMenu(ContentContext ctx, String parentId, boolean onlyVisible) throws Exception
- Throws:
Exception
-
renderDefinedMenu
public static String renderDefinedMenu(ContentContext ctx, String parentId, boolean onlyVisible, boolean moveIcon) throws Exception
render a sub element of the navigation tree.- Parameters:
parentId
- the id of parent.- Returns:
- a html list with the defined sub menu.
- Throws:
Exception
-
renderMenu
public static String renderMenu(ContentContext ctx, int fromDepth, int toDepth) throws Exception
- Throws:
Exception
-
renderMenu
public static String renderMenu(ContentContext ctx, int fromDepth, int toDepth, boolean extended) throws Exception
- Throws:
Exception
-
renderMenu
public static String renderMenu(ContentContext ctx, MenuElement fromPage, int fromDepth, int toDepth) throws Exception
- Throws:
Exception
-
renderMenu
public static String renderMenu(ContentContext ctx, MenuElement fromPage, int fromDepth, int toDepth, boolean extended) throws Exception
- Throws:
Exception
-
renderPageStructure
public static String renderPageStructure(ContentContext ctx, MenuElement page) throws Exception
- Throws:
Exception
-
renderSelectableBetweenMenu
public static String renderSelectableBetweenMenu(ContentContext ctx, MenuElement menu, MenuElement value) throws Exception
- Throws:
Exception
-
renderSelectableMenu
public static String renderSelectableMenu(ContentContext ctx, MenuElement menu, List<MenuElement> values) throws Exception
- Throws:
Exception
-
renderSelectableMenu
public static String renderSelectableMenu(ContentContext ctx, MenuElement menu, MenuElement value) throws Exception
- Throws:
Exception
-
-