Class SpecificConfigComponent<T extends SpecificConfig>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout>
software.xdev.vaadin.grid_exporter.format.SpecificConfigComponent<T>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable, Translator
Direct Known Subclasses:
CSVSeparatorConfigComponent, EncodingConfigComponent, HeaderConfigComponent, HighlightConfigComponent, PageConfigComponent, TitleConfigComponent

public abstract class SpecificConfigComponent<T extends SpecificConfig> extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.formlayout.FormLayout> implements Translator
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.data.binder.Binder<T>
     
    protected final String
     
    protected final Supplier<T>
     
    protected final Translator
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SpecificConfigComponent(Translator translator, Supplier<T> newConfigSupplier, String headerToTranslate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    boolean
     
     
    void
    updateFrom(T value)
     

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement, initContent

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

  • Constructor Details

    • SpecificConfigComponent

      protected SpecificConfigComponent(Translator translator, Supplier<T> newConfigSupplier, String headerToTranslate)
  • Method Details

    • getNewConfigSupplier

      public Supplier<T> getNewConfigSupplier()
    • getHeader

      public String getHeader()
    • updateFrom

      public void updateFrom(T value)
    • getBean

      public T getBean()
    • isValid

      public boolean isValid()
    • translate

      public String translate(String key)
      Specified by:
      translate in interface Translator
      Parameters:
      key - to translate
      Returns:
      translated String