Package dev.turboism.sdk.ui
Record Class PanelView.Image
java.lang.Object
java.lang.Record
dev.turboism.sdk.ui.PanelView.Image
- All Implemented Interfaces:
PanelView
- Enclosing interface:
- PanelView
public static record PanelView.Image(byte[] pngBytes, String altText)
extends Record
implements PanelView
PNG image node (for example a recent-file preview thumbnail) with accessibility
alt text. The runtime renders it as an image label sized to the decoded pixels.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.turboism.sdk.ui.PanelView
PanelView.Button, PanelView.Chart, PanelView.CollapsibleSection, PanelView.Column, PanelView.Image, PanelView.Option, PanelView.Row, PanelView.Scroll, PanelView.Select, PanelView.Separator, PanelView.SeriesSpec, PanelView.Text, PanelView.TextInput, PanelView.Toggle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaltText()Returns the value of thealtTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]pngBytes()Returns the value of thepngBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Image
Creates an instance of aImagerecord class.- Parameters:
pngBytes- the value for thepngBytesrecord componentaltText- the value for thealtTextrecord component
-
-
Method Details
-
pngBytes
public byte[] pngBytes()Returns the value of thepngBytesrecord component.- Returns:
- the value of the
pngBytesrecord component
-
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). -
altText
Returns the value of thealtTextrecord component.- Returns:
- the value of the
altTextrecord component
-