public interface Image extends ResourceView, HasValueSource<FileDescriptor>
Modifier and Type | Interface and Description |
---|---|
static class |
Image.ClickEvent
A
Image.ClickEvent is fired when the user clicks on an Image . |
static class |
Image.ScaleMode
Defines image scale mode.
|
ResourceView.HasMimeType, ResourceView.HasStreamSettings, ResourceView.SourceChangeEvent
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
Subscription |
addClickListener(java.util.function.Consumer<Image.ClickEvent> listener) |
default Datasource |
getDatasource()
Deprecated.
Use
HasValueSource.getValueSource() instead. |
default MetaPropertyPath |
getMetaPropertyPath() |
Image.ScaleMode |
getScaleMode() |
void |
removeClickListener(java.util.function.Consumer<Image.ClickEvent> listener)
Deprecated.
Use
Subscription instead |
default void |
reset()
Resets the component source and disposes of the corresponding resource.
|
default void |
setDatasource(Datasource datasource,
java.lang.String property)
Deprecated.
Use
HasValueSource.setValueSource(ValueSource) instead. |
void |
setScaleMode(Image.ScaleMode scaleMode)
Applies the given scale mode to the image.
|
addSourceChangeListener, createResource, getAlternateText, getSource, removeSourceChangeListener, setAlternateText, setSource, setSource
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
getValueSource, setValueSource
static final java.lang.String NAME
@Deprecated default void setDatasource(Datasource datasource, java.lang.String property)
HasValueSource.setValueSource(ValueSource)
instead.@Deprecated @Nullable default Datasource getDatasource()
HasValueSource.getValueSource()
instead.@Nullable default MetaPropertyPath getMetaPropertyPath()
default void reset()
Image.ScaleMode getScaleMode()
void setScaleMode(Image.ScaleMode scaleMode)
scaleMode
- scale modeSubscription addClickListener(java.util.function.Consumer<Image.ClickEvent> listener)
void removeClickListener(java.util.function.Consumer<Image.ClickEvent> listener)
Subscription
insteadlistener
- a listener to remove