Package io.jmix.flowui.download
Record Class SupportDownloadSuccessHandler.DownloadSuccessContext
java.lang.Object
java.lang.Record
io.jmix.flowui.download.SupportDownloadSuccessHandler.DownloadSuccessContext
- Record Components:
owningComponent- the component that initiated the download operationfileName- the name of the downloaded filecontentType- the MIME content type of the downloaded file
- Enclosing interface:
- SupportDownloadSuccessHandler
public static record SupportDownloadSuccessHandler.DownloadSuccessContext(com.vaadin.flow.component.Component owningComponent, String fileName, String contentType)
extends Record
Represents context information about a successful download operation.
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadSuccessContext(com.vaadin.flow.component.Component owningComponent, String fileName, String contentType) Creates an instance of aDownloadSuccessContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.com.vaadin.flow.component.ComponentReturns the value of theowningComponentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadSuccessContext
public DownloadSuccessContext(com.vaadin.flow.component.Component owningComponent, String fileName, String contentType) Creates an instance of aDownloadSuccessContextrecord class.- Parameters:
owningComponent- the value for theowningComponentrecord componentfileName- the value for thefileNamerecord componentcontentType- the value for thecontentTyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
owningComponent
public com.vaadin.flow.component.Component owningComponent()Returns the value of theowningComponentrecord component.- Returns:
- the value of the
owningComponentrecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-