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 thecategory
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.name()
Returns the value of thename
record component.Returns the value of theresources
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AccountSettingsMenuElement
Creates an instance of aAccountSettingsMenuElement
record 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 thekey
record component.- Returns:
- the value of the
key
record component
-
category
Returns the value of thecategory
record component.- Returns:
- the value of the
category
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-