Package de.esoco.process.ui.component
Klasse UiImage
java.lang.Object
org.obrel.core.RelatedObject
- Alle implementierten Schnittstellen:
org.obrel.core.Relatable
A component that displays an image and can create click events.
-
Konstruktorübersicht
KonstruktorBeschreibungUiImage
(UiContainer<?> parent, UiImageDefinition<?> image) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungFluent variant ofsetCaption(String)
.getImage()
Returns the image that is displayed by this image component.final UiImage
Sets the event handler for click events on images.void
setCaption
(String caption) Sets a caption label to be displayed over the image (if supported by the container layout).void
setImage
(UiImageDefinition<?> image) Sets the image to be displayed.Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
applyProperties, attachTo, cell, cell, getComponentStyleName, getParent, getRootView, getValueImpl, getView, height, icon, image, label, placeBefore, resid, setValueImpl, size, style, style, styleName, tooltip, toString, update, visibleOn, width
Von Klasse geerbte Methoden de.esoco.process.param.ParameterWrapper
clear, disable, enable, fragment, get, getParam, has, hide, id, initiateDownload, isEnabled, isVisible, remove, set, set, set, setEnabled, setFragment, setParam, setParameterEventHandler, setParameterType, setVisible, show, type
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Konstruktordetails
-
UiImage
Creates a new instance.- Parameter:
parent
- The parent containerimage
- The initial image
-
-
Methodendetails
-
getImage
Returns the image that is displayed by this image component.- Setzt außer Kraft:
getImage
in KlasseUiComponent<String,
UiImage> - Gibt zurück:
- The image definition
-
onClick
Sets the event handler for click events on images.- Parameter:
eventHandler
- The event handler- Gibt zurück:
- This instance for concatenation
-
setCaption
Sets a caption label to be displayed over the image (if supported by the container layout).- Parameter:
caption
- The caption label or null for none
-
setImage
Sets the image to be displayed.- Parameter:
image
- The image