@Override @SuppressWarnings("unchecked") public void preConfigure() { if (!isConfigured()) { add((C) getIconSpan()); } super.preConfigure(); }
@Override @SuppressWarnings("unchecked") public void preConfigure() { if (!isConfigured()) { add((C) getIconSpan()); } super.preConfigure(); }
@Override @SuppressWarnings("unchecked") public void preConfigure() { if (!isConfigured()) { add((C) getIconSpan()); } super.preConfigure(); }
/** * Button tags * <p> * The .btn classes are designed to be used with the <button> element. * <p> * However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering). <p> When using button * classes on <a> * elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should * be given a * role="button" to appropriately convey their purpose to assistive technologies such as screen readers. */ @Override public void preConfigure() { if (!isConfigured() && "a".equalsIgnoreCase(getTag())) { addAttribute(BSButtonAttributes.Role, BSButton.roleAttribute); } super.preConfigure(); }
/** * Button tags * <p> * The .btn classes are designed to be used with the <button> element. * <p> * However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering). <p> When using button * classes on <a> * elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should * be given a * role="button" to appropriately convey their purpose to assistive technologies such as screen readers. */ @Override public void preConfigure() { if (!isConfigured() && "a".equalsIgnoreCase(getTag())) { addAttribute(BSButtonAttributes.Role, BSButton.roleAttribute); } super.preConfigure(); }
/** * Button tags * <p> * The .btn classes are designed to be used with the <button> element. * <p> * However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different * rendering). <p> When using button classes on <a> * elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections * within the current page, these links should be given a * role="button" to appropriately convey their purpose to assistive technologies such as screen readers. */ @Override public void preConfigure() { if (!isConfigured() && ComponentTypes.Link.getComponentTag() .equalsIgnoreCase(getTag())) { addAttribute(BSButtonAttributes.Role, BSButton.roleAttribute); } super.preConfigure(); }
/** * Button tags * <p> * The .btn classes are designed to be used with the <button> element. * <p> * However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different * rendering). <p> When using button classes on <a> * elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections * within the current page, these links should be given a * role="button" to appropriately convey their purpose to assistive technologies such as screen readers. */ @Override public void preConfigure() { if (!isConfigured() && ComponentTypes.Link.getComponentTag() .equalsIgnoreCase(getTag())) { addAttribute(BSButtonAttributes.Role, BSButton.roleAttribute); } super.preConfigure(); }
/** * Button tags * <p> * The .btn classes are designed to be used with the <button> element. * <p> * However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different * rendering). <p> When using button classes on <a> * elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections * within the current page, these links should be given a * role="button" to appropriately convey their purpose to assistive technologies such as screen readers. */ @Override public void preConfigure() { if (!isConfigured() && ComponentTypes.Link.getComponentTag() .equalsIgnoreCase(getTag())) { addAttribute(BSButtonAttributes.Role, BSButton.roleAttribute); } super.preConfigure(); }
@Override public void preConfigure() { if (!isConfigured()) { Span iconSpan = new Span(); iconSpan.addClass(getIconClass()); add(iconSpan); } super.preConfigure(); }
@Override public void preConfigure() { if (!isConfigured()) { Span iconSpan = new Span(); iconSpan.addClass(getIconClass()); add(iconSpan); } super.preConfigure(); }