@Nonnull public static HCEntityNode newNBSP () { return new HCEntityNode (EHTMLEntity.nbsp, " "); }
@Nonnull public IHCNode renderSeparator (@Nonnull final ISimpleWebExecutionContext aSWEC, @Nonnull final IMenuSeparator aSeparator) { return HCEntityNode.newNBSP (); }
out.append (new HCEntityNode (new HTMLEntity (tempSB.substring (1, tempSB.length () - 1)), " ")); pos = b; out.append (HCEntityNode.newCopy ()); pos += 2; break; case X_REG: out.append (new HCEntityNode (EHTMLEntity.copy, "(r)")); pos += 2; break; case X_TRADE: out.append (new HCEntityNode (EHTMLEntity.trade, "TM")); pos += 3; break; case X_NDASH: out.append (new HCEntityNode (EHTMLEntity.ndash, "--")); pos++; break; case X_MDASH: out.append (new HCEntityNode (EHTMLEntity.mdash, "---")); pos += 2; break; case X_HELLIP: out.append (new HCEntityNode (EHTMLEntity.hellip, "...")); pos += 2; break; case X_LAQUO: out.append (new HCEntityNode (EHTMLEntity.laquo, "<<")); pos++;
public BootstrapCloseIcon () { addClass (CBootstrapCSS.CLOSE); // TODO translate customAttrs ().setAriaLabel ("Close"); final HCSpan aTimes = new HCSpan ().addChild (HCEntityNode.times ()); aTimes.customAttrs ().setAriaHidden (true); addChild (aTimes); } }
public BootstrapCloseIcon () { addClass (CBootstrapCSS.CLOSE); customAttrs ().setAriaLabel ("Close"); final HCSpan aTimes = new HCSpan ().addChild (HCEntityNode.times ()); aTimes.customAttrs ().setAriaHidden (true); addChild (aTimes); } }
@Nonnull public static HCEntityNode newDownArrow () { return new HCEntityNode (EHTMLEntity.darr, "v"); }
@Override protected void onFinalizeNodeState (@Nonnull final IHCConversionSettingsToNode aConversionSettings, @Nonnull final IHCHasChildrenMutable <?, ? super IHCNode> aTargetNode) { super.onFinalizeNodeState (aConversionSettings, aTargetNode); /* * bug fix for IE9 table layout bug * (http://msdn.microsoft.com/en-us/library/ms531161%28v=vs.85%29.aspx) IE9 * only interprets column widths if the first row does not use colspan (i.e. * at least one row does not use colspan) */ if (m_aColGroup != null && m_aColGroup.hasColumns () && hasBodyRows () && getFirstBodyRow ().isColspanUsed ()) { // Create a dummy row with explicit widths final HCRow aRow = new HCRow (false).addClass (CSS_FORCE_COLSPAN); for (final IHCCol <?> aCol : m_aColGroup.getAllColumns ()) { final IHCCell <?> aCell = aRow.addAndReturnCell (HCEntityNode.newNBSP ()); final int nWidth = StringParser.parseInt (aCol.getWidth (), -1); if (nWidth >= 0) aCell.addStyle (CCSSProperties.WIDTH.newValue (ECSSUnit.px (nWidth))); } addBodyRowAt (0, aRow); } }
@Nonnull public static HCEntityNode newUpArrow () { return new HCEntityNode (EHTMLEntity.uarr, "^"); }
/** * @return dash of length "n" */ @Nonnull public static HCEntityNode newNDash () { return new HCEntityNode (EHTMLEntity.ndash, "-"); }
@Nonnull public static HCEntityNode newEuro () { return new HCEntityNode (EHTMLEntity.euro, "€"); }
@Nonnull public static HCEntityNode newRightArrow () { return new HCEntityNode (EHTMLEntity.rarr, "->"); }
/** * @return per mille sign */ @Nonnull public static HCEntityNode newPerMille () { return new HCEntityNode (EHTMLEntity.permil, "‰"); } }
@Nonnull public static HCEntityNode newCopy () { return new HCEntityNode (EHTMLEntity.copy, "©"); }
@Nonnull public static HCEntityNode newLeftArrow () { return new HCEntityNode (EHTMLEntity.larr, "<-"); }
/** * @return soft hyphen */ @Nonnull public static HCEntityNode newShy () { return new HCEntityNode (EHTMLEntity.shy, ""); }
public BootstrapCloseIcon () { addClass (CBootstrapCSS.CLOSE); setCustomAttr (CHTMLAttributes.ARIA_HIDDEN, "true"); addChild (new HCEntityNode (EHTMLEntity.times, "x")); } }