/** * Readonly plain text * If you want to have input readonly elements in your form styled as plain text, use the .form-control-plaintext class to remove the * default form field styling and preserve the correct margin and padding. * * @param asPlainText * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J setPlainText(boolean asPlainText) { if (getInput() == null) { throw new UnsupportedOperationException("Can't set plain text on a non-existent input....."); } if (asPlainText) { getInput().removeClass(BSFormGroupOptions.Form_Control); getInput().addClass(BSFormGroupOptions.Form_Control_PlainText); } else { getInput().addClass(BSFormGroupOptions.Form_Control); getInput().removeClass(BSFormGroupOptions.Form_Control_PlainText); } return (J) this; }
/** * Readonly plain text * If you want to have input readonly elements in your form styled as plain text, use the .form-control-plaintext class to remove the * default form field styling and preserve the correct margin and padding. * * @param asPlainText * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J setPlainText(boolean asPlainText) { if (getInput() == null) { throw new UnsupportedOperationException("Can't set plain text on a non-existent input....."); } if (asPlainText) { getInput().removeClass(BSFormGroupOptions.Form_Control); getInput().addClass(BSFormGroupOptions.Form_Control_PlainText); } else { getInput().addClass(BSFormGroupOptions.Form_Control); getInput().removeClass(BSFormGroupOptions.Form_Control_PlainText); } return (J) this; }
/** * Readonly plain text * If you want to have input readonly elements in your form styled as plain text, use the .form-control-plaintext class to remove the * default form field styling and preserve the correct margin and padding. * * @param asPlainText * * @return */ @Override @SuppressWarnings("unchecked") @NotNull public J setPlainText(boolean asPlainText) { if (getInput() == null) { throw new UnsupportedOperationException("Can't set plain text on a non-existent input....."); } if (asPlainText) { getInput().removeClass(BSFormGroupOptions.Form_Control); getInput().addClass(BSFormGroupOptions.Form_Control_PlainText); } else { getInput().addClass(BSFormGroupOptions.Form_Control); getInput().removeClass(BSFormGroupOptions.Form_Control_PlainText); } return (J) this; }