Class InputSubmitFormElementRenderer
java.lang.Object
io.micronaut.views.fields.render.secondary.InputSubmitFormElementRenderer
- All Implemented Interfaces:
FormElementRenderer<InputSubmitFormElement>
@Internal
@Secondary
@Singleton
public class InputSubmitFormElementRenderer
extends Object
implements FormElementRenderer<InputSubmitFormElement>
FormElementRenderer
implementation for InputSubmitFormElement
.- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.views.fields.render.FormElementRenderer
ATTR_CHECKED, ATTR_COLS, ATTR_DISABLED, ATTR_FOR, ATTR_ID, ATTR_MAX, ATTR_MAX_LENGTH, ATTR_MIN, ATTR_MIN_LENGTH, ATTR_NAME, ATTR_PATTERN, ATTR_PLACEHOLDER, ATTR_READ_ONLY, ATTR_REQUIRED, ATTR_ROWS, ATTR_SELECTED, ATTR_SIZE, ATTR_STEP, ATTR_TYPE, ATTR_VALUE, GREATER_THAN, LESS_THAN, SLASH, SPACE
-
Constructor Summary
ConstructorDescriptionInputSubmitFormElementRenderer
(io.micronaut.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<HtmlAttribute>
attributes
(@NonNull InputSubmitFormElement el, @NonNull Locale locale) @NonNull String
render
(@NonNull InputSubmitFormElement formElement, @NonNull Locale locale) Renders a Form Element as HTML.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.views.fields.render.FormElementRenderer
attributes, content, render, render, renderCloseTag, renderLabel, renderOpenTag, typeHtmlAttribute
-
Constructor Details
-
InputSubmitFormElementRenderer
public InputSubmitFormElementRenderer(io.micronaut.context.MessageSource messageSource) - Parameters:
messageSource
- Message Source
-
-
Method Details
-
render
@NonNull public @NonNull String render(@NonNull @NonNull InputSubmitFormElement formElement, @NonNull @NonNull Locale locale) Description copied from interface:FormElementRenderer
Renders a Form Element as HTML.- Specified by:
render
in interfaceFormElementRenderer<InputSubmitFormElement>
- Parameters:
formElement
- Form Elementlocale
- Locale- Returns:
- HTML
-
attributes
protected List<HtmlAttribute> attributes(@NonNull @NonNull InputSubmitFormElement el, @NonNull @NonNull Locale locale) - Parameters:
el
- input radiolocale
- Request Locale- Returns:
- a List of HTML attributes
-