Package com.vaadin.flow.server.menu
Record Class AvailableViewInfo
java.lang.Object
java.lang.Record
com.vaadin.flow.server.menu.AvailableViewInfo
- Record Components:
title- title of viewrolesAllowed- logged in roles allowed for viewloginRequired- requires loginroute- path stringlazy- lazy loadedregister- register view- menu item informationchildren- view childrenrouteParameters- view parametersflowLayout- if server layout should be useddetail- additional information to be used in the menu, encoded in JSON format
- All Implemented Interfaces:
Serializable
public record AvailableViewInfo(String title, String[] rolesAllowed, boolean loginRequired, String route, boolean lazy, boolean register, MenuData menu, List<AvailableViewInfo> children, Map<String,RouteParamType> routeParameters, boolean flowLayout, String detail)
extends Record
implements Serializable
Represents a view configuration for use with a menu.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionAvailableViewInfo(String title, String[] rolesAllowed, boolean loginRequired, String route, boolean lazy, boolean register, MenuData menu, List<AvailableViewInfo> children, Map<String, RouteParamType> routeParameters, boolean flowLayout, String detail) Creates an instance of aAvailableViewInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.detail()Returns the value of thedetailrecord component.booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theflowLayoutrecord component.inthashCode()Returns a hash code value for this object.booleanlazy()Returns the value of thelazyrecord component.booleanReturns the value of theloginRequiredrecord component.menu()Returns the value of themenurecord component.booleanregister()Returns the value of theregisterrecord component.String[]Returns the value of therolesAllowedrecord component.route()Returns the value of therouterecord component.Returns the value of therouteParametersrecord component.title()Returns the value of thetitlerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AvailableViewInfo
public AvailableViewInfo(String title, String[] rolesAllowed, boolean loginRequired, String route, boolean lazy, boolean register, MenuData menu, List<AvailableViewInfo> children, Map<String, RouteParamType> routeParameters, boolean flowLayout, String detail) Creates an instance of aAvailableViewInforecord class.- Parameters:
title- the value for thetitlerecord componentrolesAllowed- the value for therolesAllowedrecord componentloginRequired- the value for theloginRequiredrecord componentroute- the value for therouterecord componentlazy- the value for thelazyrecord componentregister- the value for theregisterrecord componentmenu- the value for themenurecord componentchildren- the value for thechildrenrecord componentrouteParameters- the value for therouteParametersrecord componentflowLayout- the value for theflowLayoutrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
rolesAllowed
Returns the value of therolesAllowedrecord component.- Returns:
- the value of the
rolesAllowedrecord component
-
loginRequired
public boolean loginRequired()Returns the value of theloginRequiredrecord component.- Returns:
- the value of the
loginRequiredrecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
lazy
public boolean lazy()Returns the value of thelazyrecord component.- Returns:
- the value of the
lazyrecord component
-
register
public boolean register()Returns the value of theregisterrecord component.- Returns:
- the value of the
registerrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
routeParameters
Returns the value of therouteParametersrecord component.- Returns:
- the value of the
routeParametersrecord component
-
flowLayout
public boolean flowLayout()Returns the value of theflowLayoutrecord component.- Returns:
- the value of the
flowLayoutrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-