Package com.onec.ui
Record Class ShellConfig
java.lang.Object
java.lang.Record
com.onec.ui.ShellConfig
App-shell presentation config: the
NavStyle this layout's navigation
uses, plus the consumer's BrandingConfig (app name, logo, favicon, brand
palette). Since a Layout is now authored per Viewport, the shell
carries a single style — author a separate layout to present the nav differently
on another device. A null style means "let the renderer pick a sensible
default for the viewport". Authored via UiLayoutBuilder.shell().-
Constructor Summary
ConstructorsConstructorDescriptionShellConfig(NavStyle nav) Back-compat: a shell with just a nav style and default (empty) branding.ShellConfig(NavStyle nav, BrandingConfig branding) Creates an instance of aShellConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranding()Returns the value of thebrandingrecord component.static ShellConfigdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nav()Returns the value of thenavrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
defaults
-
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). -
branding
Returns the value of thebrandingrecord component.- Returns:
- the value of the
brandingrecord component
-