Record Class ComponentPropertyGroup
java.lang.Object
java.lang.Record
com.vaadin.copilot.plugins.propertypanel.ComponentPropertyGroup
- Record Components:
groupName- display name of the group (for example,General).order- sort order for rendering groups in the property panel.propertyNames- property identifiers assigned to the group.
public record ComponentPropertyGroup(String groupName, int order, List<String> propertyNames)
extends Record
Represents a UI-facing group of component property names.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentPropertyGroup(String groupName, int order) Creates an empty property group.ComponentPropertyGroup(String groupName, int order, List<String> propertyNames) Creates an instance of aComponentPropertyGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.intorder()Returns the value of theorderrecord component.Returns the value of thepropertyNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentPropertyGroup
Creates an empty property group.- Parameters:
groupName- display name of the group.order- sort order for the group.
-
ComponentPropertyGroup
Creates an instance of aComponentPropertyGrouprecord class.- Parameters:
groupName- the value for thegroupNamerecord componentorder- the value for theorderrecord componentpropertyNames- the value for thepropertyNamesrecord 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 '=='. -
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
propertyNames
Returns the value of thepropertyNamesrecord component.- Returns:
- the value of the
propertyNamesrecord component
-