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 information
children
- view childrenrouteParameters
- view parametersflowLayout
- if server layout should be used
- 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)
extends Record
implements Serializable
Represents a view configuration for use with a menu.
- See Also:
-
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) Creates an instance of aAvailableViewInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()
Returns the value of thechildren
record component.boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theflowLayout
record component.int
hashCode()
Returns a hash code value for this object.boolean
lazy()
Returns the value of thelazy
record component.boolean
Returns the value of theloginRequired
record component.menu()
Returns the value of themenu
record component.boolean
register()
Returns the value of theregister
record component.String[]
Returns the value of therolesAllowed
record component.route()
Returns the value of theroute
record component.Returns the value of therouteParameters
record component.title()
Returns the value of thetitle
record 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) Creates an instance of aAvailableViewInfo
record class.- Parameters:
title
- the value for thetitle
record componentrolesAllowed
- the value for therolesAllowed
record componentloginRequired
- the value for theloginRequired
record componentroute
- the value for theroute
record componentlazy
- the value for thelazy
record componentregister
- the value for theregister
record componentmenu
- the value for themenu
record componentchildren
- the value for thechildren
record componentrouteParameters
- the value for therouteParameters
record componentflowLayout
- the value for theflowLayout
record 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 thetitle
record component.- Returns:
- the value of the
title
record component
-
rolesAllowed
Returns the value of therolesAllowed
record component.- Returns:
- the value of the
rolesAllowed
record component
-
loginRequired
public boolean loginRequired()Returns the value of theloginRequired
record component.- Returns:
- the value of the
loginRequired
record component
-
route
Returns the value of theroute
record component.- Returns:
- the value of the
route
record component
-
lazy
public boolean lazy()Returns the value of thelazy
record component.- Returns:
- the value of the
lazy
record component
-
register
public boolean register()Returns the value of theregister
record component.- Returns:
- the value of the
register
record component
-
children
Returns the value of thechildren
record component.- Returns:
- the value of the
children
record component
-
routeParameters
Returns the value of therouteParameters
record component.- Returns:
- the value of the
routeParameters
record component
-
flowLayout
public boolean flowLayout()Returns the value of theflowLayout
record component.- Returns:
- the value of the
flowLayout
record component
-