Class LocalizedComposite<T extends com.vaadin.flow.component.Component>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
de.codecamp.messages.spring.vaadin.LocalizedComposite<T>
Type Parameters:
T - the type of the content
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, HasLocalization, Serializable

public abstract class LocalizedComposite<T extends com.vaadin.flow.component.Component> extends com.vaadin.flow.component.Composite<T> implements HasLocalization
A convenient base class for Composites that will be localized.
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Localizes components stored in fields of this composite.

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

    getChildren, getContent, getElement, initContent

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

    addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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 de.codecamp.messages.spring.vaadin.HasLocalization

    getL10n
  • Constructor Details

    • LocalizedComposite

      protected LocalizedComposite()
  • Method Details

    • localizeComponents

      protected void localizeComponents()
      Localizes components stored in fields of this composite. Call this method once all localizable components have been created within Composite.initContent().
      See Also: