@Nonnull public BootstrapBreadcrumbs addLink (@Nonnull final ISimpleURL aURL, @Nonnull final String sText) { addItem (new HCA (aURL).addChild (sText)); return this; }
@Nonnull public IHCNode renderMenuItemPage (@Nonnull final ISimpleWebExecutionContext aSWEC, @Nonnull final IMenuItemPage aMenuItem, final boolean bHasChildren, final boolean bIsSelected, final boolean bIsExpanded) { final HCA aLink = new HCA (aSWEC.getLinkToMenuItem (aMenuItem.getID ())); aLink.addChild (getMenuItemPageLabel (aMenuItem, bHasChildren, bIsSelected, bIsExpanded)); if (bHasChildren && !bIsExpanded) aLink.addChildren (new HCTextNode (" "), EBootstrapIcon.CHEVRON_RIGHT.getAsNode ()); return aLink; }
@Nonnull public BootstrapNav addItem (@Nullable final String sText, @Nonnull final ISimpleURL aTarget, final boolean bDisabled, @Nullable final IIcon aIcon) { return addItem (new HCA (aTarget).addChild (sText), bDisabled, aIcon); }
@Nonnull public IHCNode renderMenuItemExternal (@Nonnull final ISimpleWebExecutionContext aSWEC, @Nonnull final IMenuItemExternal aMenuItem, final boolean bHasChildren, final boolean bIsSelected, final boolean bIsExpanded) { final HCA aLink = new HCA (aMenuItem.getURL ()); aLink.setTargetBlank (); aLink.addChild (getMenuItemExternalLabel (aMenuItem, bHasChildren, bIsSelected, bIsExpanded)); if (bHasChildren && !bIsExpanded) aLink.addChildren (new HCTextNode (" "), EBootstrapIcon.CHEVRON_RIGHT.getAsNode ()); return aLink; }
@Nonnull public BootstrapNavbar addBrand (@Nonnull final EBootstrapNavbarPosition ePos, @Nonnull final IHCNode aBrand, @Nonnull final ISimpleURL aHomeLink) { return _addNode (ePos, new HCA (aHomeLink).addChild (aBrand).addClass (CBootstrapCSS.NAVBAR_BRAND)); }
@Nonnull public static HCA createDeleteLink (@Nonnull final ILayoutExecutionContext aLEC, @Nonnull final IHasID <String> aCurObject, @Nullable final String sTitle) { final ISimpleURL aURL = createDeleteURL (aLEC, aCurObject); return new HCA (aURL).setTitle (sTitle).addChild (getDeleteImg ()); }
@Nonnull public static HCA createCopyLink (@Nonnull final ILayoutExecutionContext aLEC, @Nonnull final IHasID <String> aCurObject, @Nullable final String sTitle) { final ISimpleURL aCopyURL = createCopyURL (aLEC, aCurObject); return new HCA (aCopyURL).setTitle (sTitle).addChild (getCopyImg ()); }
@Nonnull public static HCA createEditLink (@Nonnull final ILayoutExecutionContext aLEC, @Nonnull final IHasID <String> aCurObject, @Nullable final String sTitle, @Nullable final Map <String, String> aParams) { final ISimpleURL aEditURL = createEditURL (aLEC, aCurObject).addAll (aParams); return new HCA (aEditURL).setTitle (sTitle).addChild (getEditImg ()); }
@Nullable public IHCNode createWebLink (@Nullable final String sWebSite, @Nullable final HC_Target aTarget) { if (StringHelper.hasNoText (sWebSite)) return null; if (!URLValidator.isValid (sWebSite)) return new HCTextNode (sWebSite); return new HCA (sWebSite).setTarget (aTarget).addChild (sWebSite); }
@Nonnull public static HCA createNestedCreateLink (@Nonnull final ILayoutExecutionContext aLEC, @Nonnull final IHasID <String> aCurObject, @Nullable final String sTitle) { final ISimpleURL aURL = createCreateURL (aLEC).add (CHCParam.PARAM_OBJECT, aCurObject.getID ()); return new HCA (aURL).setTitle (sTitle).addChild (getCreateImg ()); } }
@Nonnull public BootstrapDropdownMenu addDropdownMenu (@Nullable final IHCNode aText) { final HCLI aLI = addItem ().addClass (CBootstrapCSS.DROPDOWN); aLI.addChild (BootstrapDropdownMenu.makeDropdownToggle (new HCA (new SimpleURL ()).addChild (aText))); final BootstrapDropdownMenu aMenu = aLI.addAndReturnChild (new BootstrapDropdownMenu ()); return aMenu; } }
@Nonnull private static IHCNode _getModuleHCNode (@Nonnull final IThirdPartyModule aModule, @Nonnull final Locale aDisplayLocale) { final HCNodeList aNL = new HCNodeList (); // Module name String sModuleText = aModule.getDisplayName (); if (aModule.getVersion () != null) sModuleText += ' ' + aModule.getVersion ().getAsString (); // Link (if available) if (aModule.getWebSiteURL () == null) aNL.addChild (sModuleText); else aNL.addChild (new HCA (aModule.getWebSiteURL ()).setTarget (HC_Target.BLANK).addChild (sModuleText)); aNL.addChild (EText.MSG_LICENSED_UNDER.getDisplayText (aDisplayLocale)); // License text String sLicenseText = aModule.getLicense ().getDisplayName (); if (aModule.getLicense ().getVersion () != null) sLicenseText += ' ' + aModule.getLicense ().getVersion ().getAsString (); // Link (if available) if (aModule.getLicense ().getURL () == null) aNL.addChild (sLicenseText); else aNL.addChild (new HCA (aModule.getLicense ().getURL ()).setTarget (HC_Target.BLANK).addChild (sLicenseText)); return aNL; }
aRow.addCell (new HCA (aViewLink).addChild (aRole.getName ())); aRow.addCell (EWebBasicsText.getYesOrNo (!aAssignedUserGroups.isEmpty (), aDisplayLocale));
aRow.addCell (new HCA (aViewLink).addChild (aCurObject.getName ())); aRow.addCell (aSettings.getHostName () + (aSettings.getPort () > 0 ? ":" + aSettings.getPort () : "")); aRow.addCell (aSettings.getUserName ()); aActionCell.addChild (createEmptyAction ()); aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CHCParam.PARAM_ACTION, ACTION_TEST_MAIL) .add (CHCParam.PARAM_OBJECT, aCurObject.getID ())).setTitle (EText.MSG_SEND_TEST_MAIL.getDisplayText (aDisplayLocale))
aRow.addCell (new HCA (aViewURL).addChild (aItem.getID ())); aRow.addCell (aItem.getErrorTimeDisplayText (aDisplayLocale)); aRow.addCell (aItem.getSMTPServerDisplayText ());
aActionCell.addChild (new HCA (aWPEC.getLinkToMenuItem (aFormState.getPageID ()) .add (CHCParam.PARAM_ACTION, sAction) .addIfNonNull (CHCParam.PARAM_OBJECT, sObjectID)
aRow.addCell (new HCA (aViewLink).addChild (aSessionScope.getID ())); aRow.addCell (Integer.toString (aSessionScope.getAttributeCount ())); if (aWebScope != null)
aRow.addCell (new HCA (aViewLink).addChild (SecurityUtils.getUserDisplayName (aLoginInfo.getUser (), aDisplayLocale))); aRow.addCell (PDTToString.getAsString (aLoginInfo.getLoginDT (), aDisplayLocale)); aActionCell.addChild (new HCA (aWPEC.getSelfHref () .add (CHCParam.PARAM_ACTION, ACTION_LOGOUT_USER) .add (CHCParam.PARAM_OBJECT, aLoginInfo.getID ())).setTitle (EText.MSG_LOGOUT_USER.getDisplayTextWithArgs (aDisplayLocale,
aRow.addCell (new HCA (aViewLink).addChild (aUserGroup.getName ())); aRow.addCell (EWebBasicsText.getYesOrNo (aUserGroup.hasContainedUsers (), aDisplayLocale));