Class PresetEditorBase<T>

  • All Implemented Interfaces:
    pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor<pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T>>
    Direct Known Subclasses:
    PresetAttributeEditor, PresetIdentityEditor, PresetMembershipEditor

    public abstract class PresetEditorBase<T>
    extends java.lang.Object
    implements pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor<pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T>>
    Base class for editors of prefilled entries
    Author:
    Krzysztof Benedyczak
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected pl.edu.icm.unity.MessageSource msg  
    • Constructor Summary

      Constructors 
      Constructor Description
      PresetEditorBase​(pl.edu.icm.unity.MessageSource msg)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      pl.edu.icm.unity.webui.common.ComponentsContainer getEditorComponent​(pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> value, int position)  
      protected abstract com.vaadin.ui.Component getEditorComponentsInternal​(pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> value, int position)  
      pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> getValue()  
      protected abstract java.util.Optional<T> getValueInternal()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor

        setEditedComponentPosition
    • Field Detail

      • msg

        protected pl.edu.icm.unity.MessageSource msg
    • Constructor Detail

      • PresetEditorBase

        public PresetEditorBase​(pl.edu.icm.unity.MessageSource msg)
    • Method Detail

      • getEditorComponent

        public pl.edu.icm.unity.webui.common.ComponentsContainer getEditorComponent​(pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> value,
                                                                                    int position)
        Specified by:
        getEditorComponent in interface pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor<T>
      • getValueInternal

        protected abstract java.util.Optional<T> getValueInternal()
                                                           throws pl.edu.icm.unity.webui.common.FormValidationException
        Returns:
        the edited value
        Throws:
        pl.edu.icm.unity.webui.common.FormValidationException
      • getEditorComponentsInternal

        protected abstract com.vaadin.ui.Component getEditorComponentsInternal​(pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> value,
                                                                               int position)
        Returns:
        the components of the editor
      • getValue

        public pl.edu.icm.unity.types.registration.invite.PrefilledEntry<T> getValue()
                                                                              throws pl.edu.icm.unity.webui.common.FormValidationException
        Specified by:
        getValue in interface pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.Editor<T>
        Throws:
        pl.edu.icm.unity.webui.common.FormValidationException