/** * Return a new instance of the Horizontal Rule * * @return */ public static HorizontalRule getNewInstance() { return new HorizontalRule(); }
public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
/** * Adds a divider with MarginBottom_3 * * @return */ @Override public HorizontalRule<?> addHorizontalRule() { HorizontalRule hr = HorizontalRule.getInstance() .addClass(BSMarginOptions.MarginBottom_3); add(hr); return hr; }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }
/** * Adds a divider with MarginBottom_3 * * @return */ @Override public HorizontalRule<?> addHorizontalRule() { HorizontalRule hr = HorizontalRule.getInstance() .addClass(BSMarginOptions.MarginBottom_3); add(hr); return hr; }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }
/** * Adds a divider with MarginBottom_3 * * @return */ @Override public HorizontalRule<?> addHorizontalRule() { HorizontalRule hr = HorizontalRule.getInstance() .addClass(BSMarginOptions.MarginBottom_3); add(hr); return hr; }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }
public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
/** * Return a new instance of the Horizontal Rule * * @return */ public static HorizontalRule<?> getNewInstance() { return new HorizontalRule<>(); }
public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
/** * Return a new instance of the Horizontal Rule * * @return */ public static HorizontalRule<?> getNewInstance() { return new HorizontalRule<>(); }