@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_bOpen) aElement.setAttribute (CHTMLAttributes.OPEN, CHTMLAttributeValues.OPEN); } }
@Override @OverrideOnDemand @OverridingMethodsMustInvokeSuper protected void fillMicroElement (@Nonnull final IMicroElement eHead, @Nonnull final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (eHead, aConversionSettings); } }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_nHeight >= 0) aElement.setAttribute (CHTMLAttributes.HEIGHT, m_nHeight); if (m_nWidth >= 0) aElement.setAttribute (CHTMLAttributes.WIDTH, m_nWidth); } }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sDatetime)) aElement.setAttribute (CHTMLAttributes.DATETIME, m_sDatetime); } }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_nCols > 0) aElement.setAttribute (CHTMLAttributes.COLS, m_nCols); if (m_nRows > 0) aElement.setAttribute (CHTMLAttributes.ROWS, m_nRows); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sValue)) aElement.setAttribute (CHTMLAttributes.VALUE, m_sValue); } }
@Override @OverridingMethodsMustInvokeSuper protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); /** * <pre> * The value attribute, if present, must have a value equal to or * greater than zero, and less than or equal to the value of the max * attribute, if present, or 1.0, otherwise. The max attribute, if * present, must have a value greater than zero. * </pre> */ if (!EqualsHelper.equals (m_dValue, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.VALUE, Double.toString (m_dValue)); if (!EqualsHelper.equals (m_dMax, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.MAX, Double.toString (m_dMax)); } }
@Override @OverridingMethodsMustInvokeSuper protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_nColspan > 1) aElement.setAttribute (CHTMLAttributes.COLSPAN, m_nColspan); if (m_nRowspan > 1) aElement.setAttribute (CHTMLAttributes.ROWSPAN, m_nRowspan); if (m_eAlign != null) aElement.setAttribute (CHTMLAttributes.ALIGN, m_eAlign); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sFor)) aElement.setAttribute (CHTMLAttributes.FOR, m_sFor); if (StringHelper.hasText (m_sForm)) aElement.setAttribute (CHTMLAttributes.FORM, m_sForm); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { /** * <pre> * The following inequalities must hold, as applicable: * * minimum ≤ value ≤ maximum * minimum ≤ low ≤ maximum (if low is specified) * minimum ≤ high ≤ maximum (if high is specified) * minimum ≤ optimum ≤ maximum (if optimum is specified) * low ≤ high (if both low and high are specified) * </pre> */ super.fillMicroElement (aElement, aConversionSettings); if (!EqualsHelper.equals (m_dValue, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.VALUE, Double.toString (m_dValue)); if (!EqualsHelper.equals (m_dMin, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.MIN, Double.toString (m_dMin)); if (!EqualsHelper.equals (m_dMax, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.MAX, Double.toString (m_dMax)); if (!EqualsHelper.equals (m_dLow, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.LOW, Double.toString (m_dLow)); if (!EqualsHelper.equals (m_dHigh, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.HIGH, Double.toString (m_dHigh)); if (!EqualsHelper.equals (m_dOptimum, CGlobal.ILLEGAL_DOUBLE)) aElement.setAttribute (CHTMLAttributes.OPTIMUM, Double.toString (m_dOptimum)); } }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sFor)) aElement.setAttribute (CHTMLAttributes.FOR, m_sFor); if (StringHelper.hasText (m_sForm)) aElement.setAttribute (CHTMLAttributes.FORM, m_sForm); if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); }
@Override @OverridingMethodsMustInvokeSuper protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_bDisabled) aElement.setAttribute (CHTMLAttributes.DISABLED, CHTMLAttributeValues.DISABLED); if (StringHelper.hasText (m_sForm)) aElement.setAttribute (CHTMLAttributes.FORM, m_sForm); if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) super.fillMicroElement (aElement, aConversionSettings); if (m_aSrc != null) aElement.setAttribute (CHTMLAttributes.SRC,
@Override protected void fillMicroElement (@Nonnull final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (StringHelper.hasText (m_sAcceptCharset)) aElement.setAttribute (CHTMLAttributes.ACCEPTCHARSET, m_sAcceptCharset); m_aAction.applyProperties (CHTMLAttributes.ACTION, aElement, aConversionSettings.getJSWriterSettings (), aConversionSettings.getCharset ()); if (m_eAutoComplete.isDefined ()) aElement.setAttribute (CHTMLAttributes.AUTOCOMPLETE, m_eAutoComplete.isTrue () ? CHTMLAttributeValues.ON : CHTMLAttributeValues.OFF); if (m_aEncType != null) aElement.setAttribute (CHTMLAttributes.ENCTYPE, m_aEncType.getAsString ()); if (m_eMethod != null) aElement.setAttribute (CHTMLAttributes.METHOD, m_eMethod); if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); if (m_aTarget != null) aElement.setAttribute (CHTMLAttributes.TARGET, m_aTarget); }
@Override @OverridingMethodsMustInvokeSuper protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_aHref != null) aElement.setAttribute (CHTMLAttributes.HREF, m_aHref.getAsStringWithEncodedParameters (aConversionSettings.getCharset ())); if (m_aTarget != null) { // Note: attribute "target" is not allowed in XHTML 1.0 strict (but in // 1.1) aElement.setAttribute (CHTMLAttributes.TARGET, m_aTarget); } if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); if (m_aType != null) aElement.setAttribute (CHTMLAttributes.TYPE, m_aType.getAsString ()); // HTML5 only: if (StringHelper.hasText (m_sMediaQuery)) aElement.setAttribute (CHTMLAttributes.MEDIA, m_sMediaQuery); }
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_bAutoFocus) aElement.setAttribute (CHTMLAttributes.AUTOFOCUS, CHTMLAttributeValues.AUTOFOCUS); if (m_bDisabled) aElement.setAttribute (CHTMLAttributes.DISABLED, CHTMLAttributeValues.DISABLED); if (StringHelper.hasText (m_sForm)) aElement.setAttribute (CHTMLAttributes.FORM, m_sForm); m_aFormAction.applyProperties (CHTMLAttributes.FORMACTION, aElement, aConversionSettings.getJSWriterSettings (), aConversionSettings.getCharset ()); if (m_aFormEncType != null) aElement.setAttribute (CHTMLAttributes.FORMENCTYPE, m_aFormEncType.getAsString ()); if (m_eFormMethod != null) aElement.setAttribute (CHTMLAttributes.FORMMETHOD, m_eFormMethod); if (m_bFormNoValidate) aElement.setAttribute (CHTMLAttributes.FORMNOVALIDATE, CHTMLAttributeValues.FORMNOVALIDATE); if (m_aFormTarget != null) aElement.setAttribute (CHTMLAttributes.FORMTARGET, m_aFormTarget); if (StringHelper.hasText (m_sName)) aElement.setAttribute (CHTMLAttributes.NAME, m_sName); aElement.setAttribute (CHTMLAttributes.TYPE, m_eType); if (StringHelper.hasText (m_sValue)) aElement.setAttribute (CHTMLAttributes.VALUE, m_sValue); }
@Nonnull final IHCConversionSettingsToNode aConversionSettings) super.fillMicroElement (aElement, aConversionSettings); if (m_nWidth > 0) aElement.setAttribute (CHTMLAttributes.WIDTH, m_nWidth);
@Override protected void fillMicroElement (final IMicroElement aElement, final IHCConversionSettingsToNode aConversionSettings) { super.fillMicroElement (aElement, aConversionSettings); if (m_eChecked.isDefined ()) aElement.setAttribute (CHTMLAttributes.CHECKED, m_eChecked.isTrue () ? CHTMLAttributeValues.CHECKED : null); if (StringHelper.hasText (m_sCommand)) aElement.setAttribute (CHTMLAttributes.COMMAND, m_sCommand); if (m_eDefault.isDefined ()) aElement.setAttribute (CHTMLAttributes.DEFAULT, m_eDefault.isTrue () ? CHTMLAttributeValues.DEFAULT : null); if (m_eDisabled.isDefined ()) aElement.setAttribute (CHTMLAttributes.DISABLED, m_eDisabled.isTrue () ? CHTMLAttributeValues.DISABLED : null); if (m_aIcon != null) aElement.setAttribute (CHTMLAttributes.ICON, m_aIcon.getAsStringWithEncodedParameters (aConversionSettings.getCharset ())); if (StringHelper.hasText (m_sLabel)) aElement.setAttribute (CHTMLAttributes.LABEL, m_sLabel); if (StringHelper.hasText (m_sRadioGroup)) aElement.setAttribute (CHTMLAttributes.RADIOGROUP, m_sRadioGroup); if (m_eType != null) aElement.setAttribute (CHTMLAttributes.TYPE, m_eType.getAttrValue ()); }