public class BreadcrumbNavComponentBuilder extends NavComponentBuilder<BreadcrumbNavComponentBuilder>
Menu to a breadcrumb list.NavComponentBuilder.SeparatorATTR_ICON, ATTR_ICON_ONLY, ATTR_INSERT_SEPARATOR, ATTR_ITEM_VIEW_ELEMENT, ATTR_KEEP_AS_GROUP, ATTR_KEEP_GROUP_ITEM, ATTR_LINK_VIEW_ELEMENT, ATTR_VIEW_ELEMENT_WITHER, CTX_CURRENT_MENU_ITEM| Constructor and Description |
|---|
BreadcrumbNavComponentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBreadcrumbSegment(com.foreach.across.modules.web.ui.elements.NodeViewElement list,
com.foreach.across.modules.web.menu.Menu item,
com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext,
int level,
boolean isLastItem) |
protected LinkViewElement |
addItemLink(com.foreach.across.modules.web.ui.elements.NodeViewElement container,
com.foreach.across.modules.web.menu.Menu item,
boolean iconAllowed,
boolean iconOnly,
com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) |
protected com.foreach.across.modules.web.ui.elements.NodeViewElement |
buildMenu(com.foreach.across.modules.web.menu.Menu menu,
com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) |
BreadcrumbNavComponentBuilder |
iconAllowedLevels(int iconLevels)
Set the number of levels (breadcrumb segments) for which the icon will be rendered if there is one.
|
BreadcrumbNavComponentBuilder |
iconOnlyLevels(int iconOnlyLevels)
Set the number of levels (breadcrumb segments) that will be rendered as just the icon if
NavComponentBuilder.ATTR_ICON_ONLY is true. |
addHtmlAttributes, addIconAndText, addViewElementIfAttributeExists, createElement, customizeViewElement, customizeViewElement, filter, findFirstIncludedChild, findItemToRender, getFirstNonGroupSelectedItem, htmlAttribute, htmlAttributesOf, includedItems, includePathAsDataAttribute, keepGroupsAsGroup, menu, menu, numberOfChildrenToInclude, shouldIncludeItem, shouldKeepAsGroup, witherAttributebuildLink, linkBuilderescapeHtml, isEscapeHtml, resolveTextElement, toTextElementapply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCssadd, add, addAll, addFirst, addFirst, sortbuild, configure, customTemplate, elementSupplier, elementSupplier, name, postProcess, postProcessor, registerWebResources, withclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic BreadcrumbNavComponentBuilder iconAllowedLevels(int iconLevels)
iconLevels - number of levels for which icon should be renderediconOnlyLevelspublic BreadcrumbNavComponentBuilder iconOnlyLevels(int iconOnlyLevels)
NavComponentBuilder.ATTR_ICON_ONLY is true.
By default all segments might be rendered this way.
Set this attribute to 1 if you want to allow only the root item to be rendered as an icon.
Set to 0 if you never want an item to be rendered as only the icon in the breadcrumb.iconOnlyLevels - number of levels for which icon should be renderediconAllowedLevels(int)protected com.foreach.across.modules.web.ui.elements.NodeViewElement buildMenu(com.foreach.across.modules.web.menu.Menu menu,
com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext)
buildMenu in class NavComponentBuilder<BreadcrumbNavComponentBuilder>protected void addBreadcrumbSegment(com.foreach.across.modules.web.ui.elements.NodeViewElement list,
com.foreach.across.modules.web.menu.Menu item,
com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext,
int level,
boolean isLastItem)
protected LinkViewElement addItemLink(com.foreach.across.modules.web.ui.elements.NodeViewElement container, com.foreach.across.modules.web.menu.Menu item, boolean iconAllowed, boolean iconOnly, com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext)
addItemLink in class NavComponentBuilder<BreadcrumbNavComponentBuilder>Copyright © 2020. All rights reserved.