Package io.micronaut.controlpanel.core
Record Class ControlPanel.Category
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.core.ControlPanel.Category
- Record Components:
- id- category id, used in links.
- name- category name, displayed in the menu.
- iconClass- category icon class, displayed in the menu.
- order- category order, used to sort the menu items.
- Enclosing interface:
- ControlPanel<B>
public static record ControlPanel.Category(String id, String name, String iconClass, Integer order)
extends Record
Control panels are grouped by category. Categories are used to render the menu items of the
 control panel UI.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theiconClassrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.order()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
MAIN
 
- 
- 
Constructor Details
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
iconClassReturns the value of theiconClassrecord component.- Returns:
- the value of the iconClassrecord component
 
- 
orderReturns the value of theorderrecord component.- Returns:
- the value of the orderrecord component
 
 
-