Class PresetAttributeEditor

  • All Implemented Interfaces:
    pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor<pl.edu.icm.unity.types.registration.invite.PrefilledEntry<pl.edu.icm.unity.types.basic.Attribute>>

    public class PresetAttributeEditor
    extends PresetEditorBase<pl.edu.icm.unity.types.basic.Attribute>
    Editor of a prefilled invitation Attribute.
    Author:
    Krzysztof Benedyczak
    • Field Summary

      • Fields inherited from class io.imunity.webconsole.signupAndEnquiry.invitations.PresetEditorBase

        msg
    • Constructor Summary

      Constructors 
      Constructor Description
      PresetAttributeEditor​(pl.edu.icm.unity.MessageSource msg, java.util.List<pl.edu.icm.unity.types.registration.AttributeRegistrationParam> formParams, pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlersRegistry, java.util.Map<java.lang.String,​pl.edu.icm.unity.types.basic.AttributeType> attrTypes)  
    • Constructor Detail

      • PresetAttributeEditor

        public PresetAttributeEditor​(pl.edu.icm.unity.MessageSource msg,
                                     java.util.List<pl.edu.icm.unity.types.registration.AttributeRegistrationParam> formParams,
                                     pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlersRegistry,
                                     java.util.Map<java.lang.String,​pl.edu.icm.unity.types.basic.AttributeType> attrTypes)
    • Method Detail

      • getValueInternal

        protected java.util.Optional<pl.edu.icm.unity.types.basic.Attribute> getValueInternal()
                                                                                       throws pl.edu.icm.unity.webui.common.FormValidationException
        Specified by:
        getValueInternal in class PresetEditorBase<pl.edu.icm.unity.types.basic.Attribute>
        Returns:
        the edited value
        Throws:
        pl.edu.icm.unity.webui.common.FormValidationException
      • setEditedComponentPosition

        public void setEditedComponentPosition​(int position)
      • getEditorComponentsInternal

        protected com.vaadin.ui.Component getEditorComponentsInternal​(pl.edu.icm.unity.types.registration.invite.PrefilledEntry<pl.edu.icm.unity.types.basic.Attribute> value,
                                                                      int position)
        Specified by:
        getEditorComponentsInternal in class PresetEditorBase<pl.edu.icm.unity.types.basic.Attribute>
        Returns:
        the components of the editor