Package dev.turboism.sdk.ui
Record Class CollapsibleSectionContribution
java.lang.Object
java.lang.Record
dev.turboism.sdk.ui.CollapsibleSectionContribution
public record CollapsibleSectionContribution(EmbeddedPanelId targetPanelId, String sectionId, String title, int order, boolean expandedByDefault, PanelView content)
extends Record
Injects a collapsible section into an existing embedded panel, including the
Turboism tab
turboism.panel.main.
Injected sections ("B") are appended after the target panel's declared
content ("A") during render synthesis; B sections are ordered by
order ascending, then sectionId lexicographically, regardless
of plugin load order.
-
Constructor Summary
ConstructorsConstructorDescriptionCollapsibleSectionContribution(EmbeddedPanelId targetPanelId, String sectionId, String title, int order, boolean expandedByDefault, PanelView content) Creates an instance of aCollapsibleSectionContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord 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.intorder()Returns the value of theorderrecord component.Returns the value of thesectionIdrecord component.Returns the value of thetargetPanelIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollapsibleSectionContribution
public CollapsibleSectionContribution(EmbeddedPanelId targetPanelId, String sectionId, String title, int order, boolean expandedByDefault, PanelView content) Creates an instance of aCollapsibleSectionContributionrecord class.- Parameters:
targetPanelId- the value for thetargetPanelIdrecord componentsectionId- the value for thesectionIdrecord componenttitle- the value for thetitlerecord componentorder- the value for theorderrecord componentexpandedByDefault- the value for theexpandedByDefaultrecord componentcontent- the value for thecontentrecord 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 '=='. -
targetPanelId
Returns the value of thetargetPanelIdrecord component.- Returns:
- the value of the
targetPanelIdrecord component
-
sectionId
Returns the value of thesectionIdrecord component.- Returns:
- the value of the
sectionIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
expandedByDefault
public boolean expandedByDefault()Returns the value of theexpandedByDefaultrecord component.- Returns:
- the value of the
expandedByDefaultrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-