public class BootstrapMenuItemRenderer
extends com.helger.webbasics.app.menu.ui.AbstractMenuItemRenderer<com.helger.html.hc.html.HCUL>
IMenuItemRenderer| Constructor and Description |
|---|
BootstrapMenuItemRenderer(Locale aContentLocale) |
| Modifier and Type | Method and Description |
|---|---|
static com.helger.html.hc.IHCElement<?> |
createSideBarMenu(com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC) |
static com.helger.html.hc.IHCElement<?> |
createSideBarMenu(com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC,
com.helger.appbasics.app.menu.IMenuTree aMenuTree,
com.helger.appbasics.app.menu.IMenuItemDeterminatorCallback aDeterminator,
BootstrapMenuItemRenderer aRenderer) |
static com.helger.html.hc.IHCElement<?> |
createSideBarMenu(com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC,
com.helger.appbasics.app.menu.IMenuTree aMenuTree,
com.helger.appbasics.app.menu.MenuItemDeterminatorCallback aDeterminator) |
static com.helger.html.hc.IHCElement<?> |
createSideBarMenu(com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC,
com.helger.appbasics.app.menu.MenuItemDeterminatorCallback aDeterminator) |
protected String |
getMenuItemExternalLabel(com.helger.appbasics.app.menu.IMenuItemExternal aMenuItem,
boolean bHasChildren,
boolean bIsSelected,
boolean bIsExpanded)
Get the label to display.
|
protected String |
getMenuItemPageLabel(com.helger.appbasics.app.menu.IMenuItemPage aMenuItem,
boolean bHasChildren,
boolean bIsSelected,
boolean bIsExpanded)
Get the label to display.
|
void |
onLevelDown(com.helger.html.hc.html.HCUL aNewLevel) |
void |
onMenuItemExternalItem(com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC,
com.helger.html.hc.html.HCLI aLI,
boolean bHasChildren,
boolean bSelected,
boolean bExpanded) |
void |
onMenuItemPageItem(com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC,
com.helger.html.hc.html.HCLI aLI,
boolean bHasChildren,
boolean bSelected,
boolean bExpanded) |
com.helger.html.hc.IHCNode |
renderMenuItemExternal(com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC,
com.helger.appbasics.app.menu.IMenuItemExternal aMenuItem,
boolean bHasChildren,
boolean bIsSelected,
boolean bIsExpanded) |
com.helger.html.hc.IHCNode |
renderMenuItemPage(com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC,
com.helger.appbasics.app.menu.IMenuItemPage aMenuItem,
boolean bHasChildren,
boolean bIsSelected,
boolean bIsExpanded) |
com.helger.html.hc.IHCNode |
renderSeparator(com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC,
com.helger.appbasics.app.menu.IMenuSeparator aSeparator) |
@Nonnull public com.helger.html.hc.IHCNode renderSeparator(@Nonnull com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC, @Nonnull com.helger.appbasics.app.menu.IMenuSeparator aSeparator)
@Nonnull @OverrideOnDemand protected String getMenuItemPageLabel(@Nonnull com.helger.appbasics.app.menu.IMenuItemPage aMenuItem, boolean bHasChildren, boolean bIsSelected, boolean bIsExpanded)
aMenuItem - Menu item. Never null.bHasChildren - true if the item has childrenbIsSelected - true if it is selectedbIsExpanded - true if it is expanded.null.AbstractMenuItemRenderer.getContentLocale()@Nonnull public com.helger.html.hc.IHCNode renderMenuItemPage(@Nonnull com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC, @Nonnull com.helger.appbasics.app.menu.IMenuItemPage aMenuItem, boolean bHasChildren, boolean bIsSelected, boolean bIsExpanded)
@Nonnull @OverrideOnDemand protected String getMenuItemExternalLabel(@Nonnull com.helger.appbasics.app.menu.IMenuItemExternal aMenuItem, boolean bHasChildren, boolean bIsSelected, boolean bIsExpanded)
aMenuItem - Menu item. Never null.bHasChildren - true if the item has childrenbIsSelected - true if it is selectedbIsExpanded - true if it is expanded.null.AbstractMenuItemRenderer.getContentLocale()@Nonnull public com.helger.html.hc.IHCNode renderMenuItemExternal(@Nonnull com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC, @Nonnull com.helger.appbasics.app.menu.IMenuItemExternal aMenuItem, boolean bHasChildren, boolean bIsSelected, boolean bIsExpanded)
public void onLevelDown(@Nonnull com.helger.html.hc.html.HCUL aNewLevel)
onLevelDown in interface com.helger.webbasics.app.menu.ui.IMenuItemRenderer<com.helger.html.hc.html.HCUL>onLevelDown in class com.helger.webbasics.app.menu.ui.AbstractMenuItemRenderer<com.helger.html.hc.html.HCUL>public void onMenuItemPageItem(@Nonnull com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC, @Nonnull com.helger.html.hc.html.HCLI aLI, boolean bHasChildren, boolean bSelected, boolean bExpanded)
onMenuItemPageItem in interface com.helger.webbasics.app.menu.ui.IMenuItemRenderer<com.helger.html.hc.html.HCUL>onMenuItemPageItem in class com.helger.webbasics.app.menu.ui.AbstractMenuItemRenderer<com.helger.html.hc.html.HCUL>public void onMenuItemExternalItem(@Nonnull com.helger.webbasics.app.ISimpleWebExecutionContext aSWEC, @Nonnull com.helger.html.hc.html.HCLI aLI, boolean bHasChildren, boolean bSelected, boolean bExpanded)
onMenuItemExternalItem in interface com.helger.webbasics.app.menu.ui.IMenuItemRenderer<com.helger.html.hc.html.HCUL>onMenuItemExternalItem in class com.helger.webbasics.app.menu.ui.AbstractMenuItemRenderer<com.helger.html.hc.html.HCUL>@Nonnull public static com.helger.html.hc.IHCElement<?> createSideBarMenu(@Nonnull com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC)
@Nonnull public static com.helger.html.hc.IHCElement<?> createSideBarMenu(@Nonnull com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC, @Nonnull com.helger.appbasics.app.menu.MenuItemDeterminatorCallback aDeterminator)
@Nonnull public static com.helger.html.hc.IHCElement<?> createSideBarMenu(@Nonnull com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC, @Nonnull com.helger.appbasics.app.menu.IMenuTree aMenuTree, @Nonnull com.helger.appbasics.app.menu.MenuItemDeterminatorCallback aDeterminator)
@Nonnull public static com.helger.html.hc.IHCElement<?> createSideBarMenu(@Nonnull com.helger.webbasics.app.layout.ILayoutExecutionContext aLEC, @Nonnull com.helger.appbasics.app.menu.IMenuTree aMenuTree, @Nonnull com.helger.appbasics.app.menu.IMenuItemDeterminatorCallback aDeterminator, @Nonnull BootstrapMenuItemRenderer aRenderer)
Copyright © 2014–2015 Philip Helger. All rights reserved.