Record Class NavbarSection
java.lang.Object
java.lang.Record
org.apache.causeway.viewer.commons.applib.services.menu.model.NavbarSection
public record NavbarSection(org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBar menuBarSelect, org.apache.causeway.commons.collections.Can<MenuDropdown> topLevelEntries)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNavbarSection(org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBar menuBarSelect, org.apache.causeway.commons.collections.Can<MenuDropdown> topLevelEntries) Creates an instance of aNavbarSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncssClass()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBarReturns the value of themenuBarSelectrecord component.org.apache.causeway.commons.collections.Can<MenuDropdown>Returns the value of thetopLevelEntriesrecord component.final StringtoString()Returns a string representation of this record class.voidvisitMenuItems(MenuVisitor menuVisitor) Depth-first visit of the model.
-
Constructor Details
-
NavbarSection
public NavbarSection(org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBar menuBarSelect, org.apache.causeway.commons.collections.Can<MenuDropdown> topLevelEntries) Creates an instance of aNavbarSectionrecord class.- Parameters:
menuBarSelect- the value for themenuBarSelectrecord componenttopLevelEntries- the value for thetopLevelEntriesrecord component
-
-
Method Details
-
cssClass
-
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
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). -
topLevelEntries
Returns the value of thetopLevelEntriesrecord component.- Returns:
- the value of the
topLevelEntriesrecord component
-