Class CheckBox

    • Method Detail

      • createConverter

        protected org.apache.wicket.util.convert.IConverter<?> createConverter​(java.lang.Class<?> type)
        Description copied from class: Component
        Factory method for converters to be used by this component, returns null by default.
        Overrides:
        createConverter in class Component
        Parameters:
        type - The type to convert to
        Returns:
        a converter to be used by this component
      • checkRequired

        public boolean checkRequired()
        Description copied from class: FormComponent
        Checks if the form component's 'required' requirement is met by first checking FormComponent.isRequired() to see if it has to check for requirement. If that is true then by default it checks if the input is null or an empty String Strings.isEmpty(CharSequence)

        Subclasses that overwrite this method should also call FormComponent.isRequired() first.

        Overrides:
        checkRequired in class FormComponent<java.lang.Boolean>
        Returns:
        true if the 'required' requirement is met, false otherwise
        See Also:
        Strings.isEmpty(CharSequence), FormComponent.isInputNullable()