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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidLocalizes components stored in fields of this composite.Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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 withinComposite.initContent().
-