Package io.jmix.flowui.component.image
Class JmixImage<V>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Image
io.jmix.flowui.component.image.JmixImage<V>
- Type Parameters:
- V- type of value, e.g.- FileRef, byte array
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Image>,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasAriaLabel,- com.vaadin.flow.component.HasComponents,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasEnabled,- com.vaadin.flow.component.HasSize,- com.vaadin.flow.component.HasStyle,- com.vaadin.flow.component.HasText,- com.vaadin.flow.component.HasTheme,- com.vaadin.flow.component.shared.HasThemeVariant<JmixImageVariant>,- SupportsValueSource<V>,- Serializable,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ApplicationContextAware
public class JmixImage<V>
extends com.vaadin.flow.component.html.Image
implements SupportsValueSource<V>, com.vaadin.flow.component.shared.HasThemeVariant<JmixImageVariant>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Component supports data binding with entity properties.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.vaadin.flow.component.HasTextcom.vaadin.flow.component.HasText.WhiteSpace
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected FileStorageLocatorprotected com.vaadin.flow.shared.Registrationprotected ValueSource<V>protected com.vaadin.flow.shared.Registrationprotected com.vaadin.flow.shared.Registration
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidprotected voidbind()protected voidonValueSourceInstanceChange(EntityValueSource.InstanceChangeEvent<?> instanceChangeEvent) protected voidprotected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetValueSource(ValueSource<V> valueSource) protected voidunbind()protected voidMethods inherited from class com.vaadin.flow.component.html.ImagegetAlt, getSrc, setAlt, setSrc, setSrcMethods inherited from class com.vaadin.flow.component.HtmlComponentgetTitle, setTitleMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getChildren, getElement, 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, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifieraddClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasAriaLabelgetAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledByMethods inherited from interface com.vaadin.flow.component.HasComponentsadd, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElementgetElementMethods inherited from interface com.vaadin.flow.component.HasEnabledisEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSizegetHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTextgetText, getWhiteSpace, setText, setWhiteSpaceMethods inherited from interface com.vaadin.flow.component.HasThemeaddThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariantaddThemeVariants, removeThemeVariants
- 
Field Details- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
fileStorageLocator
- 
valueSource
- 
valueSourceValueChangeRegistrationprotected com.vaadin.flow.shared.Registration valueSourceValueChangeRegistration
- 
valueSourceStateChangeRegistrationprotected com.vaadin.flow.shared.Registration valueSourceStateChangeRegistration
- 
instanceChangeSubscriptionprotected com.vaadin.flow.shared.Registration instanceChangeSubscription
 
- 
- 
Constructor Details- 
JmixImagepublic JmixImage()
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- Exception
 
- 
autowireDependenciesprotected void autowireDependencies()
- 
getValueSource- Specified by:
- getValueSourcein interface- SupportsValueSource<V>
 
- 
setValueSource- Specified by:
- setValueSourcein interface- SupportsValueSource<V>
 
- 
bindprotected void bind()
- 
unbindprotected void unbind()
- 
onValueSourceValueChange
- 
onValueSourceStateChange
- 
onValueSourceInstanceChangeprotected void onValueSourceInstanceChange(EntityValueSource.InstanceChangeEvent<?> instanceChangeEvent) 
- 
updateSourceprotected void updateSource()
 
-