Package dev.turboism.sdk.ui
Record Class PanelView.CollapsibleSection
java.lang.Object
java.lang.Record
dev.turboism.sdk.ui.PanelView.CollapsibleSection
- All Implemented Interfaces:
PanelView
- Enclosing interface:
- PanelView
-
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
ConstructorsConstructorDescriptionCollapsibleSection(String title, boolean expandedByDefault, List<PanelView> children) Creates an instance of aCollapsibleSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexpandedByDefaultrecord component.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollapsibleSection
Creates an instance of aCollapsibleSectionrecord class.- Parameters:
title- the value for thetitlerecord componentexpandedByDefault- the value for theexpandedByDefaultrecord componentchildren- the value for thechildrenrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
expandedByDefault
public boolean expandedByDefault()Returns the value of theexpandedByDefaultrecord component.- Returns:
- the value of the
expandedByDefaultrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-