public BootstrapForm (@Nullable final ISimpleURL aAction, @Nonnull final EBootstrapFormType eFormType) { this (aAction == null ? null : aAction.getAsString (), eFormType); }
@Nonnull public static JSInvocation updateElementViaAjax (@Nonnull @Nonempty final String sFieldID, @Nonnull final ISimpleURL aUpdateCallURL) { return updateElementViaAjax (sFieldID, aUpdateCallURL.getAsString ()); }
@Nonnull public static JSInvocation serverLogInit (@Nonnull final ISimpleURL aURL, @Nonnull final String sKey, final boolean bDebugMode) { return new JSInvocation ("serverLogInit").arg (aURL.getAsString ()).arg (sKey).arg (bDebugMode); }
@Override @OverrideOnDemand protected void applyProperties (@Nonnull final IMicroElement aElement, @Nonnull final IHCConversionSettingsToNode aConversionSettings) { aElement.setAttribute ("href", m_aURL.getAsString ()); if (m_bWithSendButton) aElement.setAttribute ("send", Boolean.TRUE.toString ()); if (m_aLayout != null) aElement.setAttribute ("layout", m_aLayout.getID ()); if (m_bShowFaces) aElement.setAttribute ("show_faces", Boolean.TRUE.toString ()); aElement.setAttribute ("width", m_nWidth); if (m_aAction != null) aElement.setAttribute ("action", m_aAction.getID ()); if (m_aFont != null) aElement.setAttribute ("font", m_aFont.getID ()); if (m_aColorScheme != null) aElement.setAttribute ("colorscheme", m_aColorScheme.getID ()); if (StringHelper.hasText (m_sRefInfo)) aElement.setAttribute ("ref", m_sRefInfo); }
.arg (m_aSWFURL.getAsString ()) .arg (getID ()) .arg (m_sWidth) aInvocation.arg (m_aExpressInstallSWFURL.getAsString ()); else aInvocation.argNull ();
public HCYouTubeEmbed (final int nWidth, final int nHeight, @Nonnull @Nonempty final String sVideoID, final boolean bAllowFullScreen) { final ISimpleURL aBaseURL = new SimpleURL (PREFIX + sVideoID); setWidth (nWidth); setHeight (nHeight); final HCParam aParamMovie = addAndReturnChild (new HCParam ("movie")); final HCParam aParamAllowFullScreen = addAndReturnChild (new HCParam ("allowFullScreen")); aParamAllowFullScreen.setValue (Boolean.toString (bAllowFullScreen)); addChild (new HCParam ("allowscriptaccess").setValue ("always")); final HCEmbed aEmbed = addAndReturnChild (new HCEmbed ()); aEmbed.setType (CMimeType.APPLICATION_SHOCKWAVE_FLASH); aEmbed.setCustomAttr ("allowscriptaccess", "always"); aEmbed.setWidth (nWidth); aEmbed.setHeight (nHeight); aEmbed.setCustomAttr ("allowfullscreen", Boolean.toString (bAllowFullScreen)); // Build the correct URL based on the passed settings final SMap aURLParams = new SMap ("hl", "en_US"); aURLParams.add ("fs", bAllowFullScreen ? "1" : "0"); final ISimpleURL aURL = new SimpleURL (aBaseURL).addAll (aURLParams); aParamMovie.setValue (aURL.getAsString ()); aEmbed.setSrc (aURL); } }
JQuery.jQueryThis ().parents (EHTMLElement.TR).component0 ()); final JSConditional aIf = aOpenCloseCallback.body ()._if (jsTable.invoke ("fnIsOpen").arg (jsTR)); aIf._then ().assign (JSExpr.THIS.ref (CHTMLAttributes.SRC), aExpandImgURL.getAsString ()); aIf._then ().invoke (jsTable, "fnClose").arg (jsTR); aIf._else ().assign (JSExpr.THIS.ref (CHTMLAttributes.SRC), aCollapseImgURL.getAsString ()); aIf._else () .invoke (jsTable, "fnOpen")
aRequest.add ("endpoint", m_aRequestEndpoint.getAsString ()); if (!m_aRequestParams.isEmpty ())
aParams.add ("sAjaxSource", m_aAjaxSource.getAsString ()); if (m_eServerMethod != null) aParams.add ("sServerMethod", m_eServerMethod.getName ());