Package io.jmix.ui.component.impl
Class AbstractResourceView<T extends com.vaadin.ui.AbstractEmbedded>
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<T>
io.jmix.ui.component.impl.AbstractResourceView<T>
- All Implemented Interfaces:
AttachNotifier,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,ResourceView
- Direct Known Subclasses:
BrowserFrameImpl,ImageImpl
public abstract class AbstractResourceView<T extends com.vaadin.ui.AbstractEmbedded>
extends AbstractComponent<T>
implements ResourceView
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.ResourceView
ResourceView.HasMimeType, ResourceView.HasStreamSettings, ResourceView.SourceChangeEvent -
Field Summary
FieldsFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a listener that will be notified when a source is changed.Gets this component's alternate text that can be presented instead of the component's normal content for accessibility purposes.voidsetAlternateText(String alternateText) Sets this component's alternate text that can be presented instead of the component's normal content for accessibility purposes.voidSets the givenResourceto the component.<R extends Resource>
RCreates the resource with the giventypeand sets it to the component.protected voidupdateValue(Resource value) Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
-
Field Details
-
resource
-
resourceUpdateHandler
-
-
Constructor Details
-
AbstractResourceView
protected AbstractResourceView()
-
-
Method Details
-
getSource
- Specified by:
getSourcein interfaceResourceView- Returns:
Resourceinstance
-
setSource
Description copied from interface:ResourceViewSets the givenResourceto the component.- Specified by:
setSourcein interfaceResourceView- Parameters:
resource- Resource instance
-
updateValue
-
setSource
Description copied from interface:ResourceViewCreates the resource with the giventypeand sets it to the component.- Specified by:
setSourcein interfaceResourceView- Type Parameters:
R-Resourceinheritor- Parameters:
type- resource class to be created- Returns:
- new resource instance
-
setAlternateText
Description copied from interface:ResourceViewSets this component's alternate text that can be presented instead of the component's normal content for accessibility purposes.- Specified by:
setAlternateTextin interfaceResourceView- Parameters:
alternateText- a short, human-readable description of this component's content
-
getAlternateText
Description copied from interface:ResourceViewGets this component's alternate text that can be presented instead of the component's normal content for accessibility purposes.- Specified by:
getAlternateTextin interfaceResourceView- Returns:
- alternate text
-
addSourceChangeListener
Description copied from interface:ResourceViewAdds a listener that will be notified when a source is changed.- Specified by:
addSourceChangeListenerin interfaceResourceView
-