Record Class AccountSettingsMenuElement
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.api.plugins.web.page.ui.AccountSettingsMenuElement
- Record Components:
key- unique setting key used to identify element (conflict may cause unexpected effects)category- category under which element will be displayed (Rarog will use this name as translation key). Empty string for no category.name- translation key for nameresources- list of relative urls to js script that should be loaded when menu item is selected. Exactly one item should be module that returns react component.
public record AccountSettingsMenuElement(String key, String category, String name, List<String> resources)
extends Record
Represents single menu element that will be presented on account settings page for users.
NOTE: elements are showed in alphabetical order under each category and categories are also sort alphabetically
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.Returns the value of theresourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountSettingsMenuElement
Creates an instance of aAccountSettingsMenuElementrecord class.
-
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-