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

    Constructors
    Constructor
    Description
    NavbarSection(org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBar menuBarSelect, org.apache.causeway.commons.collections.Can<MenuDropdown> topLevelEntries)
    Creates an instance of a NavbarSection record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.apache.causeway.applib.annotation.DomainServiceLayout.MenuBar
    Returns the value of the menuBarSelect record component.
    org.apache.causeway.commons.collections.Can<MenuDropdown>
    Returns the value of the topLevelEntries record component.
    final String
    Returns a string representation of this record class.
    void
    Depth-first visit of the model.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a NavbarSection record class.
      Parameters:
      menuBarSelect - the value for the menuBarSelect record component
      topLevelEntries - the value for the topLevelEntries record component
  • Method Details

    • cssClass

      public String cssClass()
    • visitMenuItems

      public void visitMenuItems(@Nullable MenuVisitor menuVisitor)
      Depth-first visit of the model.
      Parameters:
      menuVisitor -
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • topLevelEntries

      public org.apache.causeway.commons.collections.Can<MenuDropdown> topLevelEntries()
      Returns the value of the topLevelEntries record component.
      Returns:
      the value of the topLevelEntries record component