@Nullable public static IHCNode getExtensionDisplay (@Nonnull final ISMPHasExtension aHasExtension) { final ICommonsList <com.helger.peppol.bdxr.ExtensionType> aExtensions = aHasExtension.getAllExtensions (); if (aExtensions.isEmpty ()) return null; final HCNodeList aNL = new HCNodeList (); for (final com.helger.peppol.bdxr.ExtensionType aExtension : aExtensions) { if (aNL.hasChildren ()) { // add a separator line aNL.addChild (new HCHR ()); } // Use only the XML element of the first extension final Element aAny = (Element) aExtension.getAny (); final String sXML = XMLWriter.getNodeAsString (aAny); aNL.addChild (new HCPrismJS (EPrismLanguage.MARKUP).addChild (sXML)); } return aNL; } }
@Nullable public static IHCNode getExtensionDisplay (@Nonnull final ISMPHasExtension aHasExtension) { final ICommonsList <com.helger.peppol.bdxr.ExtensionType> aExtensions = aHasExtension.getAllExtensions (); if (aExtensions.isEmpty ()) return null; final HCNodeList aNL = new HCNodeList (); for (final com.helger.peppol.bdxr.ExtensionType aExtension : aExtensions) { if (aNL.hasChildren ()) { // add a separator line aNL.addChild (new HCHR ()); } // Use only the XML element of the first extension final Element aAny = (Element) aExtension.getAny (); final String sXML = XMLWriter.getNodeAsString (aAny); aNL.addChild (new HCPrismJS (EPrismLanguage.MARKUP).addChild (sXML)); } return aNL; }
@Override protected void onFinalizeNodeState (@Nonnull final IHCConversionSettingsToNode aConversionSettings, @Nonnull final IHCHasChildrenMutable <?, ? super IHCNode> aTargetNode) { super.onFinalizeNodeState (aConversionSettings, aTargetNode); addClasses (CBootstrapCSS.INPUT_GROUP, m_eSize); if (m_aPrefixes.hasChildren ()) for (final IHCNode aPrefix : m_aPrefixes.getChildren ()) { if (aPrefix instanceof BootstrapButton) addChild (new HCSpan ().addClass (CBootstrapCSS.INPUT_GROUP_BTN).addChild (aPrefix)); else addChild (new HCSpan ().addClass (CBootstrapCSS.INPUT_GROUP_ADDON).addChild (aPrefix)); } addChild (m_aInput); if (m_aSuffixes.hasChildren ()) for (final IHCNode aSuffix : m_aSuffixes.getChildren ()) { if (aSuffix instanceof BootstrapButton) addChild (new HCSpan ().addClass (CBootstrapCSS.INPUT_GROUP_BTN).addChild (aSuffix)); else addChild (new HCSpan ().addClass (CBootstrapCSS.INPUT_GROUP_ADDON).addChild (aSuffix)); } } }
addClasses (CBootstrapCSS.INPUT_GROUP, m_eSize); if (m_aPrefixes.hasChildren ()) if (m_aSuffixes.hasChildren ())
for (final ConnectionListener aListener : EmailGlobalSettings.getAllConnectionListeners ()) aCtrl.addChild (new HCDiv ().addChild (String.valueOf (aListener))); if (!aCtrl.hasChildren ()) aCtrl.addChild (new HCEM ().addChild (EText.MSG_NONE.getDisplayText (aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_CONNECTION_LISTENER.getDisplayText (aDisplayLocale)) for (final IEmailDataTransportListener aListener : EmailGlobalSettings.getAllEmailDataTransportListeners ()) aCtrl.addChild (new HCDiv ().addChild (String.valueOf (aListener))); if (!aCtrl.hasChildren ()) aCtrl.addChild (new HCEM ().addChild (EText.MSG_NONE.getDisplayText (aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_EMAILDATA_TRANSPORT_LISTENER.getDisplayText (aDisplayLocale))
for (final ConnectionListener aListener : EmailGlobalSettings.getAllConnectionListeners ()) aCtrl.addChild (new HCDiv ().addChild (String.valueOf (aListener))); if (!aCtrl.hasChildren ()) aCtrl.addChild (new HCEM ().addChild (EText.MSG_NONE.getDisplayText (aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_CONNECTION_LISTENER.getDisplayText (aDisplayLocale)) for (final IEmailDataTransportListener aListener : EmailGlobalSettings.getAllEmailDataTransportListeners ()) aCtrl.addChild (new HCDiv ().addChild (String.valueOf (aListener))); if (!aCtrl.hasChildren ()) aCtrl.addChild (new HCEM ().addChild (EText.MSG_NONE.getDisplayText (aDisplayLocale))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_EMAIL_EMAILDATA_TRANSPORT_LISTENER.getDisplayText (aDisplayLocale))