@Nonnull public HCScriptInlineOnDocumentReady setOnDocumentReadyCode (@Nonnull final IHasJSCode aOnDocumentReadyCode) { return setOnDocumentReadyCode (HCSettings.getOnDocumentReadyProvider (), aOnDocumentReadyCode); }
/** * Extract all out-of-band nodes of the source node, merge JS and CSS and * finally extract all special nodes into the passed object. * * @param aNode * Source node. May not be <code>null</code>. * @param aSpecialNodes * Target special node object to be filled. May not be * <code>null</code>. * @param bKeepOnDocumentReady * if <code>true</code> than all combined document.ready() scripts are * kept as document.ready() scripts. If <code>false</code> than all * document.ready() scripts are converted to regular scripts and are * executed after all other scripts. For AJAX calls, this should be * <code>false</code>. */ public static void extractSpecialContent (@Nonnull final IHCNode aNode, @Nonnull final AbstractHCSpecialNodes <?> aSpecialNodes, final boolean bKeepOnDocumentReady) { extractSpecialContent (aNode, aSpecialNodes, bKeepOnDocumentReady ? HCSettings.getOnDocumentReadyProvider () : null); }
/** * Merge all inline CSS and JS elements contained in the source nodes into one * script elements * * @param aNodes * Source list of nodes. May not be <code>null</code>. * @param bKeepOnDocumentReady * if <code>true</code> than all combined document.ready() scripts are * kept as document.ready() scripts. If <code>false</code> than all * document.ready() scripts are converted to regular scripts and are * executed after all other scripts. For AJAX calls, this should be * <code>false</code>. * @return Target list. JS and CSS and other nodes are mixed. Inline JS and * CSS that comes before files, is first. Than come the CSS and JS * external as well as other elements. Finally the inline JS and CSS * nodes to be emitted after the files are contained. So the resulting * order is at it should be except that JS and CSS and other nodes are * mixed. */ @Nonnull @ReturnsMutableCopy public static ICommonsList <IHCNode> getMergedInlineCSSAndJSNodes (@Nonnull final Iterable <? extends IHCNode> aNodes, final boolean bKeepOnDocumentReady) { // Default to the global "on document ready" provider return getMergedInlineCSSAndJSNodes (aNodes, bKeepOnDocumentReady ? HCSettings.getOnDocumentReadyProvider () : null); }
setJSCodeProvider (m_bGenerateOnDocumentReady ? HCSettings.getOnDocumentReadyProvider () .createOnDocumentReady (aJSCode) : aJSCode);
!HCSettings.isAutoCompleteOffForPasswordEdits ())))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_ON_DOCUMENT_READY_PROVIDER.getDisplayText (aDisplayLocale)) .setCtrl (String.valueOf (HCSettings.getOnDocumentReadyProvider ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPT_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getScriptInlineMode ().name ()));
!HCSettings.isAutoCompleteOffForPasswordEdits ())))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_ON_DOCUMENT_READY_PROVIDER.getDisplayText (aDisplayLocale)) .setCtrl (String.valueOf (HCSettings.getOnDocumentReadyProvider ()))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPT_INLINE_MODE.getDisplayText (aDisplayLocale)) .setCtrl (HCSettings.getScriptInlineMode ().name ()));