@Nonnull public THISTYPE setEmitAfterFiles (final boolean bEmitAfterFiles) { m_bEmitAfterFiles = bEmitAfterFiles; return thisAsT (); }
@Nonnull public THISTYPE setHeight (final long nHeight) { m_nHeight = nHeight; return thisAsT (); }
public AbstractHCScriptInline (@Nonnull final IHasJSCode aProvider) { this (); setJSCodeProvider (aProvider); }
@Override public String toString () { return ToStringGenerator.getDerived (super.toString ()) .appendIfNotNull ("OnDocumentReadyCode", m_aOnDocumentReadyCode) .toString (); } }
@Override protected void onFinalizeNodeState (@Nonnull final IHCConversionSettingsToNode aConversionSettings, @Nonnull final IHCHasChildrenMutable <?, ? super IHCNode> aTargetNode) { super.onFinalizeNodeState (aConversionSettings, aTargetNode); setOnDocumentReadyCode (jsAttach ()); } }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); // m_sJSCode is set in canConvertToNode which is called before this method! setInlineScript (aElement, m_sCachedJSCode, m_eScriptMode, aConversionSettings.getXMLWriterSettings ().getNewLineString ()); }
/** * Check if the passed node is a file JS node after unwrapping. * * @param aNode * The node to be checked - may be <code>null</code>. * @return <code>true</code> if the node implements {@link HCScriptFile}. */ public static boolean isJSFileNode (@Nullable final IHCNode aNode) { final IHCNode aUnwrappedNode = HCHelper.getUnwrappedNode (aNode); return isDirectJSFileNode (aUnwrappedNode); }
public HCScriptInlineOnDocumentReady (@Nonnull final IHasJSCode aOnDocumentReadyCode) { setOnDocumentReadyCode (aOnDocumentReadyCode); }
@Override public String toString () { return ToStringGenerator.getDerived (super.toString ()) .appendIfNotNull ("src", m_aSrc) .append ("defer", m_bDefer) .append ("async", m_bAsync) .appendIfNotNull ("JSPathProvider", m_aJSPathProvider) .toString (); } }
@Nonnull public THISTYPE setCharset (@Nullable final String sCharset) { m_sCharset = sCharset; return thisAsT (); }
/** * Check if the passed node is a JS node after unwrapping. * * @param aNode * The node to be checked - may be <code>null</code>. * @return <code>true</code> if the node implements {@link IHCScript}. */ public static boolean isJSNode (@Nullable final IHCNode aNode) { final IHCNode aUnwrappedNode = HCHelper.getUnwrappedNode (aNode); return isDirectJSNode (aUnwrappedNode); }
/** * Check if the passed node is an inline JS node after unwrapping. * * @param aNode * The node to be checked - may be <code>null</code>. * @return <code>true</code> if the node implements {@link HCScriptInline}. */ public static boolean isJSInlineNode (@Nullable final IHCNode aNode) { final IHCNode aUnwrappedNode = HCHelper.getUnwrappedNode (aNode); return isDirectJSInlineNode (aUnwrappedNode); }
@Override public String toString () { return ToStringGenerator.getDerived (super.toString ()).append ("DTP", m_aDTP).getToString (); } }
@Override protected void onFinalizeNodeState (@Nonnull final IHCConversionSettingsToNode aConversionSettings, @Nonnull final IHCHasChildrenMutable <?, ? super IHCNode> aTargetNode) { super.onFinalizeNodeState (aConversionSettings, aTargetNode); setOnDocumentReadyCode (jsAttach ()); }
public HCScriptInlineOnDocumentReady (@Nonnull final IHCOnDocumentReadyProvider aODRProvider, @Nonnull final IHasJSCode aOnDocumentReadyCode) { setOnDocumentReadyCode (aODRProvider, aOnDocumentReadyCode); }
@Nonnull public THISTYPE setJSCodeProvider (@Nonnull final IHasJSCode aProvider) { m_aJSProvider = ValueEnforcer.notNull (aProvider, "Provider"); return thisAsT (); }
@Nonnull public THISTYPE setWidth (final long nWidth) { m_nWidth = nWidth; return thisAsT (); }
@Override public String toString () { return ToStringGenerator.getDerived (super.toString ()) .append ("provider", m_aJSProvider) .append ("mode", m_eScriptMode) .append ("emitAfterFiles", m_bEmitAfterFiles) .append ("cachedJSCode", m_sCachedJSCode) .toString (); } }
@Nonnull public THISTYPE setIntegrity (@Nullable final String sIntegrity) { m_sIntegrity = sIntegrity; return thisAsT (); }
@Override public String toString () { return ToStringGenerator.getDerived (super.toString ()).append ("DTP", m_aDTP).getToString (); } }