@ Nullable @ OverrideOnDemand public IHCNode renderMenuItemExternal ( @ Nonnull final IWebPageExecutionContext aWPEC , @ Nonnull final IMenuItemExternal aMenuItemExternal ) { if ( ! aMenuItemExternal . matchesDisplayFilter ( ) ) return null ; final Locale aDisplayLocale = aWPEC . getDisplayLocale ( ) ; final HCA ret = new HCA ( aMenuItemExternal . getURL ( ) ) ; // Set window target (if defined) if ( aMenuItemExternal . hasTarget ( ) ) ret . setTarget ( new HC_Target ( aMenuItemExternal . getTarget ( ) ) ) ; ret . addChild ( aMenuItemExternal . getDisplayText ( aDisplayLocale ) ) ; return ret ; }
Render a menu item to an external page